Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Dev

Re: svn commit: r781917 - in /perl/modperl/branches/1.x: Changes src/modules/perl/mod_perl.c

 

 

ModPerl dev RSS feed   Index | Next | Previous | View Threaded


gozer at apache

Jun 5, 2009, 7:15 PM

Post #1 of 2 (787 views)
Permalink
Re: svn commit: r781917 - in /perl/modperl/branches/1.x: Changes src/modules/perl/mod_perl.c

On 05/06/09 01:57 , pgollucci[at]apache.org wrote:
> Author: pgollucci
> Date: Fri Jun 5 05:57:17 2009
> New Revision: 781917
>
> URL: http://svn.apache.org/viewvc?rev=781917&view=rev
> Log:
> Address FreeBSD PR: ports/134749
>
> This is actually a bug in gcc 4.2.1?x where
> the array is optimized incorrectly causing
> sefaults during startup.
>
> Apparently the bug does not exist in FreeBSD 8
> but is an issue in 7.x.
>
> Reported by: Troy <troy[at]twisted.net>
> Submitted by: Tim Zingelman <zingelman[at]fnal.gov>
> Reviewed by: myself
>
>
> Modified:
> perl/modperl/branches/1.x/Changes
> perl/modperl/branches/1.x/src/modules/perl/mod_perl.c
>
> Modified: perl/modperl/branches/1.x/Changes
> URL: http://svn.apache.org/viewvc/perl/modperl/branches/1.x/Changes?rev=781917&r1=781916&r2=781917&view=diff
> ==============================================================================
> --- perl/modperl/branches/1.x/Changes (original)
> +++ perl/modperl/branches/1.x/Changes Fri Jun 5 05:57:17 2009
> @@ -10,6 +10,10 @@
>
> =item 1.32-dev
>
> +Work around a gcc optimization specific bug which
> +cuased seg faults on FreeBSD 7.x during mod_perl startup.
> +[Tim Zingelman <zingelman[at]fnal.gov>]
> +
> =item 1.31 May 11, 2009
>
> Fix static APACI build on Mac OS X. [Gozer]
>
> Modified: perl/modperl/branches/1.x/src/modules/perl/mod_perl.c
> URL: http://svn.apache.org/viewvc/perl/modperl/branches/1.x/src/modules/perl/mod_perl.c?rev=781917&r1=781916&r2=781917&view=diff
> ==============================================================================
> --- perl/modperl/branches/1.x/src/modules/perl/mod_perl.c (original)
> +++ perl/modperl/branches/1.x/src/modules/perl/mod_perl.c Fri Jun 5 05:57:17 2009
> @@ -596,6 +596,7 @@
> void perl_startup (server_rec *s, pool *p)
> {
> char *argv[] = { NULL, NULL, NULL, NULL, NULL, NULL, NULL };
> + char **temp_argv=argv;

Small nit, shouldn't it be :
char **temp_args = argv;

Also, feels like that bit of code needs a warning/comment to explain why
it's there, otherwise, it's tempting to optimize/clean it away.

--
Philippe M. Chiasson GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5
http://gozer.ectoplasm.org/ m/gozer\@(apache|cpan|ectoplasm)\.org/
Attachments: signature.asc (0.18 KB)


pgollucci at p6m7g8

Jun 5, 2009, 7:57 PM

Post #2 of 2 (716 views)
Permalink
Re: svn commit: r781917 - in /perl/modperl/branches/1.x: Changes src/modules/perl/mod_perl.c [In reply to]

> Small nit, shouldn't it be :
> char **temp_args = argv;
>
> Also, feels like that bit of code needs a warning/comment to explain why
> it's there, otherwise, it's tempting to optimize/clean it away.

mumble /me hates 1.3


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe[at]perl.apache.org
For additional commands, e-mail: dev-help[at]perl.apache.org

ModPerl dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.