Hi,
After building apache with --shared-module=max and building mod_perl using
apxs, I get some strange behavior. I've also built my perl with -g
-DDEBUGGING.
On starting the web server, I get a bunch of "Bad free() ignored."
messages that seem to occur at the end of every block of perl code (ie.
scripts, loaded modules, etc.). Then the server segfaults. Using httpd -X
and gdb I've found that it cores when trying to do a dlclose() on the
mod_perl shared library.
Does anyone have an insights as to what might be happening? Backtrace
below.
Thanks,
-Saar Picker
Backtrace:
(gdb) bt
#0 0x401f4624 in ?? ()
#1 0x4009d0c0 in dlclose_doit (handle=0x80b5fb0) at dlclose.c:26
#2 0x4000a12b in _dl_catch_error (errstring=0x4009ed00,
operate=0x4009d0a8 <dlclose_doit>, args=0x80b5fb0) at dl-error.c:141
#3 0x4009d608 in _dlerror_run (operate=0x4009d0a8 <dlclose_doit>,
args=0x80b5fb0) at dlerror.c:122
#4 0x4009d08e in dlclose (handle=0x80b5fb0) at dlclose.c:32
#5 0x806f590 in ap_os_dso_unload (handle=0x80b5fb0) at os.c:130
#6 0x804f280 in unload_module (modi=0x80ad2d4) at mod_so.c:181
#7 0x805102e in run_cleanups (c=0x80ae05c) at alloc.c:1706
#8 0x804f85d in ap_clear_pool (a=0x80ad0dc) at alloc.c:531
#9 0x805f803 in standalone_main (argc=4, argv=0xbffff954) at
http_main.c:4469
#10 0x8060093 in main (argc=4, argv=0xbffff954) at http_main.c:4830
#11 0x400b7cb3 in __libc_start_main (main=0x805fd5c <main>, argc=4,
argv=0xbffff954, init=0x804e890 <_init>, fini=0x8093d6c <_fini>,
rtld_fini=0x4000a350 <_dl_fini>, stack_end=0xbffff94c)
at ../sysdeps/generic/libc-start.c:78