ID:               35009
 Updated by:       [EMAIL PROTECTED]
 Reported By:      glen at delfi dot ee
-Status:           Open
+Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: PLD Linux
-PHP Version:      5CVS-2005-10-28 (snap)
+PHP Version:      5.0.5
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip




Previous Comments:
------------------------------------------------------------------------

[2005-10-28 19:08:22] glen at delfi dot ee

ok. this is quick way to see it, altho the error is different.

$ ./configure --disable-all --with-mysql=shared --enable-maintainer-zts
--enable-debug
$ make
$ ./sapi/cli/php  -i |grep -i safe
$ sudo mkdir -p /usr/local/lib/php/extensions/debug-zts-20041030/
$ sudo chown builder /usr/local/lib/php/extensions/debug-zts-20041030/
$ cp modules/mysql.so
/usr/local/lib/php/extensions/debug-zts-20041030/
$ ./sapi/cli/php  -r 'dl("mysql.so"); mysql_pconnect();'
Warning: mysql_pconnect(): Can't connect to local MySQL server through
socket '/var/lib/mysql/mysql.sock' (2) in Command line code on line 1
/home/builder/rpm/BUILD/p/php5-STABLE-200510281434/Zend/zend_hash.c(678)
: ht=0x9ce4a74 is already destroyed
/home/builder/rpm/BUILD/p/php5-STABLE-200510281434/Zend/zend_hash.c(678)
: ht=0x9ce4a74 is already destroyed
/home/builder/rpm/BUILD/p/php5-STABLE-200510281434/Zend/zend_hash.c(67)
: Bailed out without a bailout address!
$

------------------------------------------------------------------------

[2005-10-28 19:05:48] glen at delfi dot ee

Description:
------------
$ php -r 'mysql_pconnect();'
Segmentation fault

you will need to specify proper auth strings for the connection to
succeed.

bug is present in php 4.4.0, php 5.0.5 with both ZTS enabled. on same
system disabling ZTS with php 4.4.0 the crash didn't occour.

also used php5-STABLE-200510281434 snapshot. and crash was
reproducible.


Reproduce code:
---------------
$ gdb --args php -r 'mysql_pconnect();'
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "--host= --target=i686-pld-linux"...Using
host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run
Starting program: /usr/bin/php -r mysql_pconnect\(\)\;

Program received signal SIGSEGV, Segmentation fault.
0xb7879948 in ?? ()
(gdb) bt
#0  0xb7879948 in ?? ()
#1  0xb7f0d549 in plist_entry_destructor (ptr=0x80dbb00)
    at
/home/builder/rpm/BUILD/php5-STABLE-200510281434/Zend/zend_list.c:210
#2  0xb7f0b53f in zend_hash_apply_deleter (ht=0x8052c60, p=0x80e3f40)
    at
/home/builder/rpm/BUILD/php5-STABLE-200510281434/Zend/zend_hash.c:574
#3  0xb7f0b790 in zend_hash_graceful_reverse_destroy (ht=0x8052c60)
    at
/home/builder/rpm/BUILD/php5-STABLE-200510281434/Zend/zend_hash.c:640
#4  0xb7f0d665 in zend_destroy_rsrc_list (ht=0x8052c60,
tsrm_ls=0x804f0a8)
    at
/home/builder/rpm/BUILD/php5-STABLE-200510281434/Zend/zend_list.c:240
#5  0xb7f0146a in zend_shutdown (tsrm_ls=0x804f0a8) at
/home/builder/rpm/BUILD/php5-STABLE-200510281434/Zend/zend.c:714
#6  0xb7eaa3e3 in php_module_shutdown (tsrm_ls=0x804f0a8)
    at
/home/builder/rpm/BUILD/php5-STABLE-200510281434/main/main.c:1529
#7  0x0804be44 in main (argc=3, argv=0xbfcb04a4)
    at
/home/builder/rpm/BUILD/php5-STABLE-200510281434/sapi/cli/php_cli.c:1058
(gdb)



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35009&edit=1

Reply via email to