[PHP-DEV] Error in php3_hash / memory manager? From: Andreas Karajannis (Andreas.Karajannis <email protected>)
Date: 06/26/98

While debugging the ora_bind function that causes a coredump on request
shutdown,
I found the following entries in the apache (1.3) error log:

[Fri Jun 26 13:15:52 1998] [notice] Apache/1.3.0 (Unix) PHP/3.01-dev
configured -- resuming normal operations
[Fri Jun 26 13:16:40 1998] [error] Possible PHP3 memory leak detected
(harmless): 7 bytes from php3_hash.c:951
[Fri Jun 26 13:16:40 1998] [error] Possible PHP3 memory leak detected
(harmless): 7 bytes from php3_hash.c:951
[Fri Jun 26 13:16:40 1998] [error] Possible PHP3 memory leak detected
(harmless): 6 bytes from php3_hash.c:951
[Fri Jun 26 13:16:40 1998] [error] Possible PHP3 memory leak detected
(harmless): 6 bytes from php3_hash.c:951
[Fri Jun 26 13:16:40 1998] [error] Possible PHP3 memory leak detected
(harmless): 7 bytes from php3_hash.c:951
[Fri Jun 26 13:16:40 1998] [error] Possible PHP3 memory leak detected
(harmless): 7 bytes from php3_hash.c:951
[Fri Jun 26 13:16:40 1998] [error] Possible PHP3 memory leak detected
(harmless): 1428392 bytes from :1508864
[Fri Jun 26 13:16:41 1998] [notice] httpd: child pid 18113 exit signal
Segmentation Fault (11), possible coredump in /akela_home/kara/httpd

backtrace:

Core was generated by `/akela_home/kara/httpd/sbin/httpd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libsocket.so.1...done.
Reading symbols from /usr/lib/libnsl.so.1...done.
Reading symbols from /usr/lib/libresolv.so.2...done.
Reading symbols from /usr/lib/libm.so.1...done.
Reading symbols from /usr/lib/libdl.so.1...done.
Reading symbols from
/oracle7/oracle/product/733/lib/libclntsh.so.1.0...done.
Reading symbols from /usr/lib/libposix4.so.1...done.
Reading symbols from
/oracle7/oracle/product/733/lib/libsunmath.so.1...done.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/lib/libintl.so.1...done.
Reading symbols from /usr/lib/libmp.so.1...done.
Reading symbols from /usr/lib/libw.so.1...done.
Reading symbols from /usr/lib/nss_files.so.1...done.
Reading symbols from /usr/lib/nss_nisplus.so.1...done.
Reading symbols from /usr/lib/nss_dns.so.1...done.
#0 shutdown_memory_manager () at alloc.c:362
362 snprintf(memory_leak_buf,512,"Possible
PHP3 memory leak detected (harmless): %d bytes from
%s:%d",t->size,t->filename,t->lineno);
(gdb) bt
#0 shutdown_memory_manager () at alloc.c:362
#1 0x3c308 in php3_request_shutdown (dummy=0x0) at main.c:784
#2 0x72470 in run_cleanups (c=0x122e10) at alloc.c:1439
#3 0x70a98 in ap_clear_pool (a=0x122158) at alloc.c:475
#4 0x70b28 in ap_destroy_pool (a=0x122158) at alloc.c:505
#5 0x70a80 in ap_clear_pool (a=0x10a2b0) at alloc.c:472
#6 0x84bb4 in child_main (child_num_arg=0) at http_main.c:3390
#7 0x85480 in make_child (s=0xf90c0, slot=0, now=898859752) at
http_main.c:3743
#8 0x85584 in startup_children (number_to_start=5) at http_main.c:3770
#9 0x85e80 in standalone_main (argc=1, argv=0xeffffc74) at
http_main.c:4048
#10 0x86814 in main (argc=1, argv=0xeffffc74) at http_main.c:4294

OS is Solaris 2.51.

Any clues what's going on here?

-Andreas

-- 
Andreas Karajannis
GMD National Research Center for Information Technology
Schloss Birlinghoven, D-53754 Sankt Augustin
Phone +49 2241 142948