Edit report at http://bugs.php.net/bug.php?id=54646&edit=1

 ID:                 54646
 Updated by:         paj...@php.net
 Reported by:        public at grik dot net
 Summary:            segmentation fault
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            MySQLi related
 Operating System:   linux
 PHP Version:        5.3.6
 Block user comment: N
 Private report:     N

 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.




Previous Comments:
------------------------------------------------------------------------
[2011-05-01 14:26:47] public at grik dot net

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 this bug report at http://bugs.php.net/bug.php?id=54646&edit=1

Reply via email to