ID: 34012
Updated by: [EMAIL PROTECTED]
Reported By: bjorn dot malmberg at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: MySQL related
Operating System: Debian Sarge 3.1
PHP Version: 4.4.0
New Comment:
1) What compiler are you using?
2) Where did you get MySQL?
Previous Comments:
------------------------------------------------------------------------
[2005-08-05 19:52:10] bjorn dot malmberg at gmail dot com
No I can't... This is the only machine I have with Linux on.
I upgraded this machine from Debian 3.0 to 3.1, unfortunately I also
upgraded PHP (4.3.11-4.4.0), MySQL (4.0.12?-4.1.13) and Apache
(1.3.29-1.3.31) at the same time, so I can't be 100% sure that the
cause is the upgrade to Sarge.
Both Apache and MySQL by themselves works as expected.
For now I could "downgrade" this machine to 3.0 again, but that
wouldn't solve the problem for others with 3.1...
------------------------------------------------------------------------
[2005-08-05 19:36:28] [EMAIL PROTECTED]
Could you test it on another machine (that uses something different
than Sarge)? That would answer your question, obviuosly.
------------------------------------------------------------------------
[2005-08-05 19:20:56] bjorn dot malmberg at gmail dot com
Description:
------------
PHP segfaults on my Debian 3.1 machine when trying to connect to
MySQL.
MySQL version: 4.1.13-standard
Apache version: 1.3.31
PHP version: 4.4.0
PHP configline:
./configure --with-mysql=/usr/local/mysql --enable-track-vars
--enable-xslt --with-xslt-sablot --enable-mbstring
--with-apxs=/etc/apache/bin/apxs --with-gettext=/usr/bin
--enable-sockets --with-gd --with-jpeg-dir=/usr/lib
--with-zlib-dir=/usr/include --with-imagick --enable-exif
--enable-sockets --enable-posix --with-iconv
Backtrace:
#0 0x4010139b in mallopt () from /lib/libc.so.6
#1 0x4010015f in free () from /lib/libc.so.6
#2 0x4033179c in _efree (ptr=0x812ec1c) at
/usr/src/php/php-4.4.0/Zend/zend_alloc.c:265
#3 0x40290e27 in _close_mysql_link (rsrc=0x812f344) at
/usr/src/php/php-4.4.0/ext/mysql/php_mysql.c:297
#4 0x40343434 in list_entry_destructor (ptr=0x812f344) at
/usr/src/php/php-4.4.0/Zend/zend_list.c:177
#5 0x403423c9 in zend_hash_apply_deleter (ht=0x40632680, p=0x812a73c)
at /usr/src/php/php-4.4.0/Zend/zend_hash.c:611
#6 0x403424ef in zend_hash_graceful_reverse_destroy (ht=0x40632680) at
/usr/src/php/php-4.4.0/Zend/zend_hash.c:677
#7 0x40343535 in zend_destroy_rsrc_list (ht=0x40632680) at
/usr/src/php/php-4.4.0/Zend/zend_list.c:233
#8 0x40336d93 in shutdown_executor () at
/usr/src/php/php-4.4.0/Zend/zend_execute_API.c:211
#9 0x4033e5cd in zend_deactivate () at
/usr/src/php/php-4.4.0/Zend/zend.c:693
#10 0x40319085 in php_request_shutdown (dummy=0x0) at
/usr/src/php/php-4.4.0/main/main.c:997
#11 0x40356475 in apache_php_module_main (r=0x8125b6c,
display_source_mode=0)
at /usr/src/php/php-4.4.0/sapi/apache/sapi_apache.c:60
#12 0x40356e02 in send_php (r=0x8125b6c, display_source_mode=0,
filename=0x0)
at /usr/src/php/php-4.4.0/sapi/apache/mod_php4.c:627
#13 0x40356e51 in send_parsed_php (r=0x8125b6c) at
/usr/src/php/php-4.4.0/sapi/apache/mod_php4.c:642
#14 0x0807aad9 in ap_invoke_handler ()
#15 0x080912bc in process_request_internal ()
#16 0x08091326 in ap_process_request ()
#17 0x080879a0 in child_main ()
#18 0x08087b51 in make_child ()
#19 0x08087ccc in startup_children ()
#20 0x080883ed in standalone_main ()
#21 0x08088c5c in main ()
I guess this means that PHP doesn't like the version of libc that Sarge
is using huh?
Reproduce code:
---------------
<?php
$link = mysql_connect('localhost', 'root', '');
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34012&edit=1