You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Dr. Fredo Sartori" <sa...@spdfraktion.de> on 2000/12/13 09:19:20 UTC

segmentation faults

Apache produces segmentation faults when receiving arbirary 
requests.

I am running apache-1.3.14 with php-4.0.3pl1, mod_ssl-2.7.1 and 
mod_perl-1.24_02 (from the CVS tree) on solaris 2.7. 
The perl version installed is 5.6.0.

According to the backtrace of gdb the problem seems to be
located in mod_perl:

    #0  0x71170 in perl_header_parser (r=0x449040) at mod_perl.c:1021
    #1  0x1b5bcc in run_method (r=0x449040, offset=38, run_all=1) at http_config.c:368
    #2  0x1b5dc0 in ap_header_parse (r=0x449040) at http_config.c:405
    #3  0x1d29fc in process_request_internal (r=0x449040) at http_request.c:1216
    #4  0x1d2f0c in ap_process_request (r=0x449040) at http_request.c:1298
    #5  0x1c6b34 in child_main (child_num_arg=0) at http_main.c:4298
    #6  0x1c6eac in make_child (s=0x3ff040, slot=0, now=976692436) at http_main.c:4466
    #7  0x1c73c0 in perform_idle_server_maintenance () at http_main.c:4630
    #8  0x1c7b30 in standalone_main (argc=4, argv=0xffbefc04) at http_main.c:4862
    #9  0x1c8460 in main (argc=4, argv=0xffbefc04) at http_main.c:5123

It appears that the version of mod_perl ist not the problem: 1.24_01 and 1.23
produce crashes too. 

Has anaybody seen similar effects? Is this a solaris specific problem? 
Is perl 5.6.0 in charge of the trouble?

Any hint is greatly appreciated!

Fredo

--
Dr. Fredo Sartori                        Tel. 030-227-55061
SPD-Fraktion                             FAX  030-227-56169
Platz der Republik                       e-mail: sartori@spdfraktion.de
11011 Berlin

Re: segmentation faults

Posted by Doug MacEachern <do...@covalent.net>.
On Wed, 13 Dec 2000, Dr. Fredo Sartori wrote:

> Apache produces segmentation faults when receiving arbirary 
> requests.
> 
> I am running apache-1.3.14 with php-4.0.3pl1, mod_ssl-2.7.1 and 
> mod_perl-1.24_02 (from the CVS tree) on solaris 2.7. 
> The perl version installed is 5.6.0.
> 
> According to the backtrace of gdb the problem seems to be
> located in mod_perl:
> 
>     #0  0x71170 in perl_header_parser (r=0x449040) at mod_perl.c:1021

this is the uselargefiles bug.
Makefile.PL should have told you:

Your Perl is uselargefiles enabled, but Apache is not, suggestions:
    *) Rebuild Apache with CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
    *) Rebuild Perl with Configure -Uuselargefiles
    *) Let mod_perl build Apache (USE_DSO=1 instead of USE_APXS=1)

#2 is probably the best route, since php+mod_ssl would probably also need
the #1 flags.