Ask a Question related to PHP Bugs, Design and Development.
-
pegasus at nerv dot eu dot org #1
#40589 [Opn]: mysqli can't handle a reconnect, crashes
ID: 40589
User updated by: pegasus at nerv dot eu dot org
Reported By: pegasus at nerv dot eu dot org
Status: Open
Bug Type: Reproducible crash
Operating System: Linux
PHP Version: 5.2.1
New Comment:
Forgot to mention that this only happens when using prepared
statements.
Previous Comments:
------------------------------------------------------------------------
[2007-02-22 08:55:01] pegasus at nerv dot eu dot org
Description:
------------
If you set mysql timeouts (in my.cnf) to some short times, like:
set-variable = connect_timeout=3
set-variable = interactive_timeout=5
set-variable = wait_timeout=10
And then have a script, that opens mysql connection via mysqli, sleeps
for 20 seconds and then tries to do something with that connection, php
crashes.
Reproduce code:
---------------
Simple enough to reproduce from the comment above
Actual result:
--------------
Segfault:
#0 0xb7638542 in net_clear () from /usr/lib/./libmysqlclient.so.15
#1 0xb7613df3 in cli_stmt_execute () from
/usr/lib/./libmysqlclient.so.15
#2 0xb76142b3 in mysql_stmt_execute () from
/usr/lib/./libmysqlclient.so.15
#3 0x081e806c in zif_mysqli_stmt_execute ()
#4 0x0842a8ea in execute ()
#5 0x0842ada6 in execute ()
#6 0x0842a516 in execute ()
#7 0x0840c9da in zend_execute_scripts ()
#8 0x083ca2f4 in php_execute_script ()
#9 0x0846c701 in main ()
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=40589&edit=1[/url]
pegasus at nerv dot eu dot org Guest
-
#40589 [NEW]: mysqli can't handle a reconnect, crashes
From: pegasus at nerv dot eu dot org Operating system: Linux PHP version: 5.2.1 PHP Bug Type: Reproducible crash Bug... -
#40032 [NEW]: mysql_ping does not reconnect
From: federico at galassi dot net Operating system: Gentoo linux PHP version: 5.2.0 PHP Bug Type: MySQL related Bug... -
no reconnect at logon
Using Windows XP Pro on start up the machine will connect to LAN server but not WAN. The box is checked to "reconnect at logon" but continue to... -
Could not reconnect all network drives
Hi, Thanks in advance for your help. I have a user using windows XP pro. On a restart I get in task bar : Could not reconnect all network drives... -
XP Pro - dial-up cannot reconnect to net after disconnect
Since reformatting my hard disk and reinstalling all software recently, I often cannot reconnect to the internet after disconnecting my modem...



Reply With Quote

