PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » PEAR » PEAR » Bug #6739

segfault running "config-show"

Details

Submitted2006-02-09 20:53 UTC
Fromjam at zoidtechnologies dot com
StatusBogus
PackagePEAR
PHP Version5.0.4
OSFC4
Roadmaps(Not assigned)

Comments

[2006-02-09 20:53 UTC] jam at zoidtechnologies dot com

Description:
------------
when I run 'pear config-show' as a non-root user, I get a segfault. if I run 'pear config-show' as the root user, I get a segfault. I had previously opened a ticket on this, #6029. this time, I've added some additional information.

[~] [3:47pm] [jam@toast] % pear -V
PEAR Version: 1.4.6
PHP Version: 5.0.4
Zend Engine Version: 2.0.4-dev
Running on: Linux toast.zoidtechnologies.com 2.6.14-1.1644_FC4 #1 Sun Nov 27 03:25:11 EST 2005 i686

Expected result:
----------------
config-show should show the pear configuration.

Actual result:
--------------
(gdb) bt
#0 0x00ec0ac5 in xdebug_build_fname (tmp=0x88211c0, edata=0xbfd39bc0) at /tmp/tmpc7sRjE/xdebug-1.3.2/xdebug.c:539
#1 0x00ec1225 in add_stack_frame (zdata=0xbfd39bc0, op_array=0x859a040, type=2) at /tmp/tmpc7sRjE/xdebug-1.3.2/xdebug.c:625
#2 0x00ec1825 in xdebug_execute (op_array=0x859a040) at /tmp/tmpc7sRjE/xdebug-1.3.2/xdebug.c:786
#3 0x0816aa8a in zend_call_function ()
#4 0x0816b3dc in call_user_function_ex ()
#5 0x08174797 in zend_error ()
#6 0x0819dce3 in zend_fetch_dim_tmp_var_handler ()
#7 0x0819e8c8 in zend_fetch_dim_r_handler ()
#8 0x08191d37 in execute ()
#9 0x00ec1936 in xdebug_execute (op_array=0x881a6bc) at /tmp/tmpc7sRjE/xdebug-1.3.2/xdebug.c:828
#10 0x08193d95 in zend_do_fcall_common_helper ()
#11 0x08191d37 in execute ()
#12 0x00ec1936 in xdebug_execute (op_array=0x8825374) at /tmp/tmpc7sRjE/xdebug-1.3.2/xdebug.c:828
#13 0x08193d95 in zend_do_fcall_common_helper ()
#14 0x08191d37 in execute ()
#15 0x00ec1936 in xdebug_execute (op_array=0x858c5ac) at /tmp/tmpc7sRjE/xdebug-1.3.2/xdebug.c:828
#16 0x08173d2a in zend_execute_scripts ()
#17 0x0813ea30 in php_execute_script ()
#18 0x081a880e in main ()
(gdb) frame 8
#8 0x08191d37 in execute ()

(gdb) print (char *)(executor_globals.function_state_ptr->function)->common.function_name
$1 = 0x859aac4 "error_handler"

(gdb) print (char *)executor_globals.active_op_array->function_name
$2 = 0x859aac4 "error_handler"

(gdb) print (char *)executor_globals.active_op_array->filename
$3 = 0x85906b4 "/usr/share/pear/pearcmd.php"