You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "MARK, STU (SBCSI)" <sm...@att.com> on 2006/06/06 21:01:13 UTC
Mod perl with IHS 1.3.28 on AIX core dump on first server request
Bear with me this is the first time I've ever used a mailing
list.
I've searched the mod perl archives and found nothing, hopefully
somebody has seen this before.
I'm trying to run mod perl 1.29 on IHS 1 on AIX 5.2.0.0
The server starts up but the first time I make a request of the
server I get a core dump that says this:
Segmentation fault in sig_coredump at 0x100043d8 ($t1)
0x100043d8 (sig_coredump+0x3c) 80410014 lwz r2,0x14(r1)
(dbx) where
sig_coredump() at 0x100043d8
perl_header_parser(0x2018c480), line 1017 in "mod_perl.c"
run_method() at 0x1002111c
process_request_internal() at 0x10045444
ap_process_request() at 0x1004685c
child_main() at 0x10002dc0
make_child() at 0x10002688
startup_children() at 0x10002498
standalone_main() at 0x100019f0
main() at 0x100014ec
Looking at the source...
#ifdef PERL_HEADER_PARSER
int PERL_HEADER_PARSER_HOOK(request_rec *r)
{
dSTATUS;
dPPDIR;
#ifdef PERL_INIT
PERL_CALLBACK("PerlInitHandler", <-- this is line 1017
cld->PerlInitHandler);
#endif
PERL_CALLBACK("PerlHeaderParserHandler",
cld->PerlHeaderParserHandler);
return status;
}
#endif
>perl -v
This is perl, v5.6.1 built for aix
>httpd -v
Server version: IBM_HTTP_SERVER/1.3.28.1-PK16139 Apache/1.3.28 (Unix)
Server built: Dec 8 2005 17:14:08
Before this I was trying to get embedded perl to run, and it was
blowing up too, in boot_embperl or some such. I spent a lot more time on
that, and after weeding through many macros, it was blowing up trying to
reference a symbol defined in libperl.so, specifically this line:
SV **sp = PL_stack_sp;
PL_stack_sp is a global symbol as far as I can tell in
libperl.so. At the moment I'm blaming the linker or the dynaloader. To
test my theory I made a global variable in both mod_perl.c and embperl.c
rebuilt everything and from embperl was able to access my embperl.c
global variable, but got the same segfault when I made a reference to
the variable I put libperl.so. This is kinda where my low level
expertise ends. It seems to me at the point of dynaloading the
libperl.so any DATA segments (or whatever they call them nowadays)
defined in the library should be allocated and all the external
references are linked up. That's my understanding anyway. Mind you, it
wasn't the dereference of the pointer that was the problem, it was the
reference to the pointer itself.
Anyway, this was all in embperl, and has no direct bearing here
except that my guess is that the problem is related. But that's just a
guess. I asked on the embperl list and they suggested writing about the
modperl problem here because there's a lot more readers with lots of
experience. So here I am.
Switching to IHS 2 is not really an option because of other
complications it causes, so does anybody have any idea why the segfault
may be occurring or other things to try?
If there's any more versioning information I can include, do
tell.
Thanks.