Bug #51231 [Asn->Fbk]: mysqli::connect() crashes
| From: | andrey@php.net | Date: | Wed, 07 Apr 2010 16:36:47 +0000 |
| Subject: | Bug #51231 [Asn->Fbk]: mysqli::connect() crashes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-149369@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51231&edit=1
ID: 51231
Updated by: andrey@php.net
Reported by: felipe@php.net
Summary: mysqli::connect() crashes
-Status: Assigned
+Status: Feedback
Type: Bug
Package: MySQLi related
Operating System: Linux
PHP Version: 5.3SVN-2010-03-07 (SVN)
Assigned To: mysql
New Comment:
I can't reproduce it anymore. Felipe, do you can?
Previous Comments:
------------------------------------------------------------------------
[2010-03-07 23:02:46] felipe@php.net
Description:
------------
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb75376d0 (LWP 14083)]
0xb763b38b in strlen () from /lib/i686/cmov/libc.so.6
(gdb) bt
#0 0xb763b38b in strlen () from /lib/i686/cmov/libc.so.6
#1 0x081f0e69 in php_mysqli_close (mysql=0x9e3a7c4, close_type=0,
tsrm_ls=0x9ccd070) at /home/felipe/dev/php5/ext/mysqli/mysqli_api.c:562
#2 0x081ea033 in mysqli_link_free_storage (object=0x9e394f4,
tsrm_ls=0x9ccd070) at /home/felipe/dev/php5/ext/mysqli/mysqli.c:225
Test script:
---------------
$x = new mysqli;
$x->connect();
Expected result:
----------------
No crash.
Actual result:
--------------
Warning: mysqli::connect(): (HY000/2002): Can't connect to local MySQL
server through socket '/var/run/mysqld/mysqld.sock' (2) in Command line
code on line 1
Segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51231&edit=1