From:             pegasus at nerv dot eu dot org
Operating system: Linux
PHP version:      5.2.1
PHP Bug Type:     Reproducible crash
Bug description:  mysqli can't handle a reconnect, crashes

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 bug report at http://bugs.php.net/?id=40589&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40589&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40589&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40589&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40589&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40589&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40589&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40589&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40589&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40589&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40589&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40589&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40589&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40589&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40589&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40589&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40589&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40589&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40589&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40589&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40589&r=mysqlcfg

Reply via email to