From: vlada at mysh dot cz
Operating system: Debian etch
PHP version: 5.2.5
PHP Bug Type: Apache2 related
Bug description: *** glibc detected *** double free or corruption
Description:
------------
I've compiled latest PHP 5.2.5 on newly installed Debian Etch with libc6
version 2.3.6.ds1-13etch5
Problem is, that almost randomly serves blank page. Mostly this problem
occurs while using phpmyadmin (tested different versions with same result)
In error_log of apache is:
*** glibc detected *** double free or corruption (out): 0x084471f0 ***
[Thu Mar 27 21:45:34 2008] [notice] child pid 29274 exit signal Aborted
(6)
I also tried to run backtrace, i put it here. Strace gives loads of data.
I could also put it here.
When i tried downgrade to php 5.1.6, same error is in error_log, but on
the other hand, blank page never occured.
Reproduce code:
---------------
problem occures on random phpmyadmin page, mostly with mysql connection.
Actual result:
--------------
Starting program: /usr/local/apache/bin/httpd -X
[Thread debugging using libthread_db enabled]
[New Thread -1211000608 (LWP 29696)]
*** glibc detected *** double free or corruption (out): 0x08439bf0 ***
Program received signal SIGABRT, Aborted.
[Switching to Thread -1211000608 (LWP 29696)]
0xb7d42947 in raise () from /lib/tls/libc.so.6
(gdb) bt
#0 0xb7d42947 in raise () from /lib/tls/libc.so.6
#1 0xb7d440c9 in abort () from /lib/tls/libc.so.6
#2 0xb7d786ba in __fsetlocking () from /lib/tls/libc.so.6
#3 0xb7d7ff7f in mallopt () from /lib/tls/libc.so.6
#4 0xb7d80022 in free () from /lib/tls/libc.so.6
#5 0xb7787e3b in zend_hash_apply_deleter (ht=0x8302420, p=0x841b0f0)
at /install/php-5.2.5/Zend/zend_hash.c:614
#6 0xb7788341 in zend_hash_reverse_apply (ht=0x8302420,
apply_func=0xb776bb28 <clean_non_persistent_function>)
at /install/php-5.2.5/Zend/zend_hash.c:760
#7 0xb776c257 in shutdown_executor ()
at /install/php-5.2.5/Zend/zend_execute_API.c:290
#8 0xb777b43a in zend_deactivate () at
/install/php-5.2.5/Zend/zend.c:860
#9 0xb77299d4 in php_request_shutdown (dummy=0x0)
at /install/php-5.2.5/main/main.c:1485
#10 0xb77f4821 in php_apache_request_dtor (r=0x83fd1f8)
at /install/php-5.2.5/sapi/apache2handler/sapi_apache2.c:471
#11 0xb77f510f in php_handler (r=0x83fd1f8)
at /install/php-5.2.5/sapi/apache2handler/sapi_apache2.c:643
#12 0x08074547 in ap_run_handler (r=0x83fd1f8) at config.c:157
#13 0x08077637 in ap_invoke_handler (r=0x83fd1f8) at config.c:372
#14 0x080824e8 in ap_process_request (r=0x83fd1f8) at http_request.c:258
#15 0x0807f74e in ap_process_http_connection (c=0x83f31b0) at
http_core.c:190
#16 0x0807b4d7 in ap_run_process_connection (c=0x83f31b0) at
connection.c:43
#17 0x080868d4 in child_main (child_num_arg=<value optimized out>)
at prefork.c:640
#18 0x08086b34 in make_child (s=0x80a9f98, slot=0) at prefork.c:680
#19 0x080878dc in ap_mpm_run (_pconf=0x80a80a8, plog=0x80d6160,
s=0x80a9f98)
at prefork.c:956
#20 0x08061f8f in main (argc=134897824, argv=0x83f0fd8) at main.c:730
(gdb)
--
Edit bug report at http://bugs.php.net/?id=44554&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=44554&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=44554&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=44554&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44554&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=44554&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44554&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44554&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44554&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44554&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44554&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=44554&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=44554&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44554&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44554&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44554&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44554&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44554&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44554&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44554&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44554&r=mysqlcfg