From:             
Operating system: linux
PHP version:      5.3.6
Package:          MySQLi related
Bug Type:         Bug
Bug description:segmentation fault

Description:
------------
I observe a segfault when running a xenforo package in debug mode.



The configuration of the server is Fedora Core 8, MySQL 5.0.45



I recompiled PHP with debug mode and turned off all extensions not from the


standard archive.



I found a way to avoid it by recompiling the mysqli extension with mysqlnd
driver.



I am not really sure if it was worth to open this report as I don't know
how you 

can reproduce it, but at least you'll hear about the issue.

Test script:
---------------
I am not sure I can make a minimal reproducable case. Xenforo is a large
package based on Zend Framework.



any call to the xenforo scripts in debug mode crashes php, both fcgi and
cli

Actual result:
--------------
backtrace:



Core was generated by `php index.php'.

Program terminated with signal 11, Segmentation fault.

#0 0x083ccebc in add_property_string_ex (arg=0xa62c714,

key=0x7a6fb4 "catalog", key_len=8,

str=0x665f696b <Address 0x665f696b out of bounds>, duplicate=1)

at /usr/src/web/php-5.3.6/Zend/zend_API.c:1524

1524 ZVAL_STRING(tmp, str, duplicate);

(gdb) bt

#0 0x083ccebc in add_property_string_ex (arg=0xa62c714,

key=0x7a6fb4 "catalog", key_len=8,

str=0x665f696b <Address 0x665f696b out of bounds>, duplicate=1)

at /usr/src/web/php-5.3.6/Zend/zend_API.c:1524

#1 0x00799f0c in php_add_field_properties (value=0xa62c714,
field=0xa2aea28)

at /usr/src/web/php-5.3.6/ext/mysqli/mysqli_api.c:1056

#2 0x0079a29b in zif_mysqli_fetch_fields (ht=0, return_value=0xa4b8584,

return_value_ptr=0x0, this_ptr=0xa5c9ca0, return_value_used=1)

at /usr/src/web/php-5.3.6/ext/mysqli/mysqli_api.c:1114

#3 0x083f3f03 in zend_do_fcall_common_helper_SPEC (execute_data=0xa055c50)

at /usr/src/web/php-5.3.6/Zend/zend_vm_execute.h:316

#4 0x083f4b3f in ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(execute_data=0xa055c50)

at /usr/src/web/php-5.3.6/Zend/zend_vm_execute.h:421

#5 0x083f32d2 in execute (op_array=0xa2743b4)

at /usr/src/web/php-5.3.6/Zend/zend_vm_execute.h:107

#6 0x083c7718 in zend_execute_scripts (type=8, retval=0x0, file_count=3)

at /usr/src/web/php-5.3.6/Zend/zend.c:1194

#7 0x0835bd0c in php_execute_script (primary_file=0xbf889e14)

at /usr/src/web/php-5.3.6/main/main.c:2268

#8 0x0849121c in main (argc=2, argv=0xbf889f74)

at /usr/src/web/php-5.3.6/sapi/cli/php_cli.c:1193

Missing separate debuginfos, use: debuginfo-install keyutils.i386

(gdb)

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

Reply via email to