Hello,
I tried to Load PHP5 module to httpd.conf
When I try to start HTTPD it aborts without displaying any
error in error logs.
On debugging I found that apr_pool_clear calls run_cleanups
on pool which in turn calls the functions registered at the time of loading.
The call to dlclose aborts the whole process.
Please suggest why this happens and how important is the
role of dso_cleanup in de registering a module.
The OS being used is linux 2.6 from ELDK.
Here is the back trace of abort.
Program received signal SIGABRT, Aborted.
[Switching to Thread 16384 (LWP 25158)]
0x0fa800a8 in kill () from /lib/libc.so.6
(gdb) bt
#0 0x0fa800a8 in kill () from /lib/libc.so.6
#1 0x0fbccc70 in pthread_kill () from /lib/libpthread.so.0
#2 0x0fbcd03c in raise () from /lib/libpthread.so.0
#3 0x0fa7fea4 in raise () from /lib/libc.so.6
#4 0x0fa81414 in abort () from /lib/libc.so.6
#5 0x0fb50828 in __deregister_frame_info_bases () from /lib/libc.so.6
#6 0x0fb508a8 in __deregister_frame_info () from /lib/libc.so.6
#7 0x0f556318 in __do_global_dtors_aux ()
from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so
#8 0x0f556318 in __do_global_dtors_aux ()
from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so
#9 0x0f556318 in __do_global_dtors_aux ()
from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so
#10 0x0f556318 in __do_global_dtors_aux ()
from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so
#11 0x0f556318 in __do_global_dtors_aux ()
from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so
#12 0x0f556318 in __do_global_dtors_aux ()
from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so
#13 0x0f556318 in __do_global_dtors_aux ()
from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so
#14 0x0f556318 in __do_global_dtors_aux ()
from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so
---Type <return> to continue, or q <return> to quit---
#15 0x0f556318 in __do_global_dtors_aux ()
from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so
#16 0x0f556318 in __do_global_dtors_aux ()
from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so
#17 0x0f556318 in __do_global_dtors_aux ()
from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so
#18 0x0f556318 in __do_global_dtors_aux ()
from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so
#19 0x0f556318 in __do_global_dtors_aux ()
from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so
#20 0x0f556318 in __do_global_dtors_aux ()
from /home/msingh/httpd-2.2.3/usr/local/modules/libphp5.so
Previous frame inner to this frame (corrupt stack?)
.
Please suggest.
TIA