From:             felipe
Operating system: Linux
PHP version:      5.3SVN-2010-03-07 (SVN)
Package:          MySQLi related
Bug Type:         Bug
Bug description:mysqli::connect crashes

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

Reply via email to