The funny part is that in our case we also get Segmentation fault from time to
time but there's no coredump file. I even tried to attach gdb to apache child
and wait for Segfault. I got it but I'm not sure I could understand it. Please
see below for examples.

The only thing I can say here that after we drastically reduced usage of
module Carp.pm the Segmentation faults almost disappeared. (I mean it. Before
the change we had Segfaults 5-6 times every minute. Now we have it once in
20-30 minutes). Please note that Carp::croak was used by Mason object in
method 'abort' so we had to stop using it.

Andrei

--------------------------------------------------------------
Program received signal SIGSEGV, Segmentation fault.
0x406041ec in Perl_sv_setsv () from /etc/httpd/modules/libperl.so
(gdb) bt
#0  0x406041ec in Perl_sv_setsv () from /etc/httpd/modules/libperl.so
#1  0x405fa329 in Perl_pp_sassign () from /etc/httpd/modules/libperl.so
#2  0x405f9f0a in Perl_runops_standard () from /etc/httpd/modules/libperl.so
#3  0x405ba456 in S_call_body () from /etc/httpd/modules/libperl.so
#4  0x405ba028 in perl_call_sv () from /etc/httpd/modules/libperl.so
#5  0x405ef71f in Perl_vdie () from /etc/httpd/modules/libperl.so
#6  0x405ef859 in Perl_die () from /etc/httpd/modules/libperl.so
#7  0x406231f6 in Perl_pp_die () from /etc/httpd/modules/libperl.so
#8  0x405f9f0a in Perl_runops_standard () from /etc/httpd/modules/libperl.so
#9  0x405ba456 in S_call_body () from /etc/httpd/modules/libperl.so
#10 0x405ba231 in perl_call_sv () from /etc/httpd/modules/libperl.so
#11 0x4059c225 in perl_call_handler () from /etc/httpd/modules/libperl.so
#12 0x4059ba6b in perl_run_stacked_handlers () from
/etc/httpd/modules/libperl.so
#13 0x4059a1c8 in perl_handler () from /etc/httpd/modules/libperl.so
#14 0x08054ead in ap_invoke_handler () at eval.c:41
#15 0x0806704c in ap_some_auth_required () at eval.c:41
#16 0x080670c3 in ap_process_request () at eval.c:41
#17 0x0805f6d7 in ap_child_terminate () at eval.c:41
#18 0x0805f919 in ap_child_terminate () at eval.c:41
#19 0x0805fc6b in ap_child_terminate () at eval.c:41
#20 0x080601ac in ap_child_terminate () at eval.c:41
#21 0x080608a3 in main () at eval.c:41
#22 0x40141177 in __libc_start_main (main=0x8060420 <main>, argc=3,
ubp_av=0xbffffb3c,
    init=0x804fa50 <_init>, fini=0x808a570 <_fini>, rtld_fini=0x4000e184
    <_dl_fini>,
        stack_end=0xbffffb2c) at ../sysdeps/generic/libc-start.c:129

(gdb) info frame
 Stack level 0, frame at 0xbffff418:
 eip = 0x406041ec in Perl_sv_setsv; saved eip 0x405fa329
 called by frame at 0xbffff448
 Arglist at 0xbffff418, args:
 Locals at 0xbffff418, Previous frame's sp is 0x0
 Saved registers:
   ebx at 0xbffff40c, ebp at 0xbffff418, esi at 0xbffff410, edi at 0xbffff414,
   eip at 0xbffff41c
-----------------------------------------------------------------------------

(gdb) bt
#0  0x406059be in Perl_sv_clear () from /etc/httpd/modules/libperl.so
#1  0x40605d6f in Perl_sv_free () from /etc/httpd/modules/libperl.so
#2  0x405f8afd in Perl_av_clear () from /etc/httpd/modules/libperl.so
#3  0x40618ea9 in Perl_leave_scope () from /etc/httpd/modules/libperl.so
#4  0x4061758c in Perl_pop_scope () from /etc/httpd/modules/libperl.so
#5  0x4061c535 in Perl_die_where () from /etc/httpd/modules/libperl.so
#6  0x405efb5a in Perl_vcroak () from /etc/httpd/modules/libperl.so
#7  0x405efbf9 in Perl_croak () from /etc/httpd/modules/libperl.so
#8  0x406039a5 in Perl_sv_setsv () from /etc/httpd/modules/libperl.so
#9  0x405fbd47 in Perl_pp_aassign () from /etc/httpd/modules/libperl.so
#10 0x405f9f0a in Perl_runops_standard () from /etc/httpd/modules/libperl.so
#11 0x405ba456 in S_call_body () from /etc/httpd/modules/libperl.so
#12 0x405ba028 in perl_call_sv () from /etc/httpd/modules/libperl.so
#13 0x405ef71f in Perl_vdie () from /etc/httpd/modules/libperl.so
#14 0x405ef859 in Perl_die () from /etc/httpd/modules/libperl.so
#15 0x406231f6 in Perl_pp_die () from /etc/httpd/modules/libperl.so
#16 0x405f9f0a in Perl_runops_standard () from /etc/httpd/modules/libperl.so
#17 0x405ba456 in S_call_body () from /etc/httpd/modules/libperl.so
#18 0x405ba231 in perl_call_sv () from /etc/httpd/modules/libperl.so
#19 0x4059c225 in perl_call_handler () from /etc/httpd/modules/libperl.so
#20 0x4059ba6b in perl_run_stacked_handlers () from /etc/httpd/modules/libperl.so
#21 0x4059a1c8 in perl_handler () from /etc/httpd/modules/libperl.so
#22 0x08054ead in ap_invoke_handler () at eval.c:41
#23 0x0806704c in ap_some_auth_required () at eval.c:41
#24 0x080670c3 in ap_process_request () at eval.c:41
#25 0x0805f6d7 in ap_child_terminate () at eval.c:41
#26 0x0805f919 in ap_child_terminate () at eval.c:41
#27 0x0805fc6b in ap_child_terminate () at eval.c:41
#28 0x080601ac in ap_child_terminate () at eval.c:41
#29 0x080608a3 in main () at eval.c:41
#30 0x40141177 in __libc_start_main (main=0x8060420 <main>, argc=3, ubp_av=0xbffffb3c,
    init=0x804fa50 <_init>, fini=0x808a570 <_fini>, rtld_fini=0x4000e184 <_dl_fini>,
    stack_end=0xbffffb2c) at ../sysdeps/generic/libc-start.c:129
(gdb) info frame
Stack level 0, frame at 0xbffff288:
 eip = 0x406059be in Perl_sv_clear; saved eip 0x40605d6f
 called by frame at 0xbffff2a8
 Arglist at 0xbffff288, args:
 Locals at 0xbffff288, Previous frame's sp is 0x0
 Saved registers:
  ebx at 0xbffff27c, ebp at 0xbffff288, esi at 0xbffff280, edi at 0xbffff284, eip at 
0xbffff28c
-----------------------------------------------------------------------


On Thu, Sep 20, 2001 at 01:02:43AM +0800, Stas Bekman wrote:
> [EMAIL PROTECTED] wrote:
> 
> > Hi All,
> > 
> > We are rigorously testing our application and trying to refresh the page
> > continously... I know the customer will be a nerd to do this but still a
> > possibility.
> > Interestingly after some repeated attempts we get the following error in our
> > log file.
> > 
> > [Wed Sep 19 13:56:02 2001] [notice] child pid 1041 exit signal Segmentation
> > fault (11)
> > 
> > Highly appreciated if anyone can throw some light.....
> 
> 
> You have to send the backtrace. See the SUPPORT file for more details. 
> Make sure to setup your enviroment so it'll dump core on segv. In bash run:
> 
> % ulimit -c unlimited
> 
> before starting the server (from the same console).
> 
> _____________________________________________________________________
> Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
> http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
> mailto:[EMAIL PROTECTED]   http://apachetoday.com http://eXtropia.com/
> http://singlesheaven.com http://perl.apache.org http://perlmonth.com/

Reply via email to