php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62407 Segfault when var_dump or strack trace applies to sphinxclient
Submitted: 2012-06-25 10:18 UTC Modified: 2012-06-25 11:26 UTC
From: antoine at pmg dot se Assigned: tony2001 (profile)
Status: Closed Package: sphinx (PECL)
PHP Version: 5.4.4 OS: OS X lion 10.7.4
Private report: No CVE-ID: None
 [2012-06-25 10:18 UTC] antoine at pmg dot se
Description:
------------
Doing a var_dump or if an exception is called and a stacktrace contains sphinx 
generates a seg fault.

GDB backtrace


Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000004
0x00000001011fec8d in _zend_hash_add_or_update ()
(gdb) bt
#0  0x00000001011fec8d in _zend_hash_add_or_update ()
#1  0x0000000101a10aa3 in php_sphinx_client_get_properties ()
#2  0x00000001019e456a in xdebug_var_export ()
#3  0x00000001019e489f in xdebug_array_element_export ()
#4  0x00000001011fdcbf in zend_hash_apply_with_arguments ()
#5  0x00000001019e4526 in xdebug_var_export ()
#6  0x00000001019e4ad4 in xdebug_object_element_export ()
#7  0x00000001011fdcbf in zend_hash_apply_with_arguments ()
#8  0x00000001019e4609 in xdebug_var_export ()
#9  0x00000001019e4ad4 in xdebug_object_element_export ()
#10 0x00000001011fdcbf in zend_hash_apply_with_arguments ()
#11 0x00000001019e4609 in xdebug_var_export ()
#12 0x00000001019e4ad4 in xdebug_object_element_export ()
#13 0x00000001011fdcbf in zend_hash_apply_with_arguments ()
#14 0x00000001019e4609 in xdebug_var_export ()
#15 0x00000001019e4ba6 in xdebug_get_zval_value ()
#16 0x00000001019e0087 in xdebug_append_printable_stack ()
#17 0x00000001019d2eae in xdebug_throw_exception_hook ()
#18 0x00000001012084e3 in zend_throw_exception_internal ()
#19 0x000000010124c86c in ZEND_THROW_SPEC_VAR_HANDLER ()
#20 0x000000010127b301 in execute ()
#21 0x00000001019d2520 in xdebug_execute ()
#22 0x000000010127abb2 in zend_do_fcall_common_helper_SPEC ()
#23 0x000000010127b301 in execute ()
#24 0x00000001019d2520 in xdebug_execute ()
#25 0x000000010127abb2 in zend_do_fcall_common_helper_SPEC ()
#26 0x000000010127b301 in execute ()
#27 0x00000001019d2520 in xdebug_execute ()
#28 0x000000010127abb2 in zend_do_fcall_common_helper_SPEC ()
#29 0x000000010127b301 in execute ()
#30 0x00000001019d2520 in xdebug_execute ()
#31 0x00000001011e5b55 in zend_call_function ()
#32 0x0000000101114d10 in zif_call_user_func ()
#33 0x00000001019d27b6 in xdebug_execute_internal ()
#34 0x000000010127aa81 in zend_do_fcall_common_helper_SPEC ()
#35 0x000000010127b301 in execute ()
#36 0x00000001019d2520 in xdebug_execute ()
#37 0x000000010127abb2 in zend_do_fcall_common_helper_SPEC ()
#38 0x000000010127b301 in execute ()
#39 0x00000001019d2520 in xdebug_execute ()
#40 0x000000010127abb2 in zend_do_fcall_common_helper_SPEC ()
#41 0x000000010127b301 in execute ()
#42 0x00000001019d2520 in xdebug_execute ()
#43 0x000000010127abb2 in zend_do_fcall_common_helper_SPEC ()
#44 0x000000010127b301 in execute ()
#45 0x00000001019d2520 in xdebug_execute ()
#46 0x000000010127abb2 in zend_do_fcall_common_helper_SPEC ()
#47 0x000000010127b301 in execute ()
#48 0x00000001019d2520 in xdebug_execute ()
#49 0x000000010127abb2 in zend_do_fcall_common_helper_SPEC ()
#50 0x000000010127b301 in execute ()
#51 0x00000001019d2520 in xdebug_execute ()
#52 0x000000010127abb2 in zend_do_fcall_common_helper_SPEC ()
#53 0x000000010127b301 in execute ()
#54 0x00000001019d2520 in xdebug_execute ()
#55 0x00000001011e5b55 in zend_call_function ()
#56 0x000000010120598e in zend_call_method ()
#57 0x000000010120ffc1 in zend_std_call_user_call ()
#58 0x00000001019d27b6 in xdebug_execute_internal ()
#59 0x000000010127aa81 in zend_do_fcall_common_helper_SPEC ()
#60 0x000000010127b301 in execute ()
#61 0x00000001019d2520 in xdebug_execute ()
#62 0x0000000101236b67 in ZEND_INCLUDE_OR_EVAL_SPEC_VAR_HANDLER ()
#63 0x000000010127b301 in execute ()
#64 0x00000001019d2520 in xdebug_execute ()
#65 0x000000010127abb2 in zend_do_fcall_common_helper_SPEC ()
#66 0x000000010127b301 in execute ()
#67 0x00000001019d2520 in xdebug_execute ()
#68 0x000000010127abb2 in zend_do_fcall_common_helper_SPEC ()
#69 0x000000010127b301 in execute ()
#70 0x00000001019d2520 in xdebug_execute ()
#71 0x000000010127abb2 in zend_do_fcall_common_helper_SPEC ()
#72 0x000000010127b301 in execute ()
#73 0x00000001019d2520 in xdebug_execute ()
#74 0x000000010127abb2 in zend_do_fcall_common_helper_SPEC ()
#75 0x000000010127b301 in execute ()
#76 0x00000001019d2520 in xdebug_execute ()
#77 0x00000001011e5b55 in zend_call_function ()
#78 0x0000000101114d10 in zif_call_user_func ()
#79 0x00000001019d27b6 in xdebug_execute_internal ()
#80 0x000000010127aa81 in zend_do_fcall_common_helper_SPEC ()
#81 0x000000010127b301 in execute ()
#82 0x00000001019d2520 in xdebug_execute ()
#83 0x000000010127abb2 in zend_do_fcall_common_helper_SPEC ()
#84 0x000000010127b301 in execute ()
#85 0x00000001019d2520 in xdebug_execute ()
#86 0x000000010127abb2 in zend_do_fcall_common_helper_SPEC ()
#87 0x000000010127b301 in execute ()
#88 0x00000001019d2520 in xdebug_execute ()
#89 0x000000010127abb2 in zend_do_fcall_common_helper_SPEC ()
#90 0x000000010127b301 in execute ()
#91 0x00000001019d2520 in xdebug_execute ()
#92 0x000000010127abb2 in zend_do_fcall_common_helper_SPEC ()
#93 0x000000010127b301 in execute ()
#94 0x00000001019d2520 in xdebug_execute ()
#95 0x00000001011f0548 in zend_execute_scripts ()
#96 0x0000000101194762 in php_execute_script ()
#97 0x000000010127c050 in php_handler ()
#98 0x0000000100001cd6 in ap_invoke_handler ()
#99 0x00000001000213b6 in ap_internal_redirect ()
#100 0x00000001010096d4 in handler_redirect ()
#101 0x0000000100001cd6 in ap_invoke_handler ()
#102 0x0000000100021433 in ap_process_request ()
#103 0x000000010001eb50 in ap_process_http_connection ()
#104 0x000000010000da28 in ap_process_connection ()
#105 0x0000000100027219 in child_main ()
#106 0x000000010002696a in make_child ()
#107 0x000000010002600b in ap_mpm_run ()
#108 0x0000000100007139 in main ()



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-06-25 10:54 UTC] tony2001@php.net
Fixed in SVN some time ago.
 [2012-06-25 10:54 UTC] tony2001@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: tony2001
 [2012-06-25 11:19 UTC] antoine at pmg dot se
$ svn co http://svn.php.net/viewvc/pecl/sphinx/trunk/
svn: E195019: Redirect cycle detected for URL 
'http://svn.php.net/viewvc/pecl/sphinx/trunk'
 [2012-06-25 11:26 UTC] tony2001@php.net
viewvc is just a web interface to SVN, here is the correct command:
svn co http://svn.php.net/repository/pecl/sphinx/trunk sphinx_trunk
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC