Michael A Musta wrote:

I am getting sporadic segmentation faults with mod_perl 1.27.
A look at the core dump always shows:
Any chance you can set your debugger to show the real arguments and not only the addresses? That might help to see where the problem is. e.g., mod_perl_sent_header expects only two args.

for example here is a snippet from another core dump, generated with gdb:
#0 0x40750515 in mpxs_Apache__RequestRec_send_http_header (r=0x8156490,
type=0x0)
at /mnt/tmpfs/modperl-2.0/xs/Apache/Response/Apache__Response.h:26
#1 0x40751de3 in XS_Apache__RequestRec_send_http_header (my_perl=0x80c9ce8,
cv=0x81a5160) at Response.xs:137


-----------------  lwp# 1 / thread# 1  --------------------
 0008b37c mod_perl_sent_header (360fc0, 997ec, 599394, 326c00, 0, 0) + 18
 00241c14 Perl_pp_entersub (31c800, 4a3d60, 4, 1, 0, ff00) + 568
 00239dc8 Perl_runops_standard (326c00, 1a, c0, 328c00, 37fd08, 59bba0) +
30
 001e8928 S_call_body (ffbef078, 0, 326c00, 40, 81010100, ff00) + 5c
 001e8398 Perl_call_sv (599394, 4d2cd4, 18, 392ed0, 326c00, 557178) + 250
 001e8138 Perl_call_method (2e9790, 0, 0, 329000, 64, 4d2cd4) + 18
 0023b720 Perl_pp_print (4d2cd0, 0, 4d2cd0, 1, 4d2cdc, 4d2cd8) + 1cc
 00239dc8 Perl_runops_standard (326c00, 326c00, ffbef2dc, 1, 0, 5af328) +
30
 001e8928 S_call_body (ffbef358, 0, 326400, 35e598, 326c00, ff00) + 5c
 001e8624 Perl_call_sv (0, 4d2cd0, 326c00, 2b6580, 0, 2d) + 4dc
 0008d760 perl_call_handler (3b73dc, 55cea8, 0, 2b6538, 0, ff00) + 5bc
 0008cf4c perl_run_stacked_handlers (2b5b30, 55cea8, 38a384, 0, 0, 425078)
+ 1d0
 0008c1bc perl_access (55cea8, 8c0f4, 323684, f72cc, 0, 424c98) + c8
 000f2c00 run_method (55cea8, 1b, 1, 0, 2f575354, 2f636769) + 88
 000f2cf0 ap_check_access (55cea8, 2cdf70, 2cdc00, 2cc1c1, 45, 65) + 1c
 00112750 process_request_internal (55cea8, 0, 2c0, 0, effffc00, 1) + 2dc
 00112be0 ap_process_request (55cea8, c8, 55cea8, ffbef738, ffbef748, 0) +
3c
 00105674 child_main (0, 1034c4, 103400, ff13b1e0, ff135910, ff12efc0) +
978
 00105a28 make_child (32b378, 0, 3e4282ab, 0, 10, ff02b404) + 1a4
 00105b4c startup_children (1, 0, 1, 307000, 6c6f6700, 6c6f6700) + b4
 00106580 standalone_main (2, ffbef9fc, 0, 0, ff23b01c, 2cbb68) + 2fc
 001071f4 main     (2, ffbef9fc, ffbefa08, 326464, 0, 0) + 548
 0004599c _start   (0, 0, 0, 0, 0, 0) + 5c

So, it is always happening at the 'mod_perl_sent_header'.
Sometimes it can take hours before a segmention fault occurs.
Sometimes it is immediate.  Every time I get the core dump,
the location is the same--mod_perl_sent_header.

--


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Reply via email to