php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36375 Pear-Installation Segmentation fault
Submitted: 2006-02-13 07:01 UTC Modified: 2006-04-10 21:54 UTC
Votes:4
Avg. Score:4.5 ± 0.9
Reproduced:3 of 3 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: anu at anusoft dot biz Assigned:
Status: Wont fix Package: Reproducible crash
PHP Version: 5CVS-2006-02-13 (snap) OS: Fedora Core 3
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: anu at anusoft dot biz
New email:
PHP Version: OS:

 

 [2006-02-13 07:01 UTC] anu at anusoft dot biz
Description:
------------
error occours when
'make install'


Reproduce code:
---------------
[shell@php5.1-200602130330]$ make install


Actual result:
--------------
Installing PHP SAPI module:       cgi
Installing PHP CGI into: /tmp/test/phptest/bin/
Installing shared extensions:     /tmp/test/phptest/lib/php/extensions/debug-non-zts-20050922/
Installing build environment:     /tmp/test/phptest/lib/php/build/
Installing header files:          /tmp/test/phptest/include/php/
Installing helper programs:       /tmp/test/phptest/bin/
  program: phpize
  program: php-config
Installing man pages:             /tmp/test/phptest/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /tmp/test/phptest/lib/php/
make[1]: *** [install-pear-installer] Segmentation fault
make: *** [install-pear] Error 2

###########################################################
[test@php5.1-200602130330]$ gdb sapi/cli/php
GNU gdb Red Hat Linux (6.1post-1.20040607.41rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run -n -dshort_open_tag=0 -dsafe_mode=0 -derror_reporting=E_ALL -dmemory_limit=-1 -ddetect_unicode=0 pear/install-pear-
Starting program: /tmp/test/php/php5.1-200602130330/sapi/cli/php -n -dshort_open_tag=0 -dsafe_mode=0 -derror_reporting=E_ALL -dmemory_limit=-1 -ddetect_unicode=0 pear/install-pear-

warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
Could not open input file: pear/install-pear-

Program exited with code 01.
(gdb) 
(gdb) nozlib.phar
Undefined command: "nozlib".  Try "help".
(gdb) 
Undefined command: "nozlib".  Try "help".
(gdb) run -n -dshort_open_tag=0 -dsafe_mode=0 -derror_reporting=E_ALL -dmemory_limit=-1 -ddetect_unicode=0 pear/install-pear-nozlib.phar
Starting program: /tmp/test/php/php5.1-200602130330/sapi/cli/php -n -dshort_open_tag=0 -dsafe_mode=0 -derror_reporting=E_ALL -dmemory_limit=-1 -ddetect_unicode=0 pear/install-pear-nozlib.phar
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'
warning: Cannot initialize thread debugging library: unknown thread_db error '22'

Program received signal SIGSEGV, Segmentation fault.
0x0096ce53 in memmove () from /lib/tls/libc.so.6
(gdb) bt
#0  0x0096ce53 in memmove () from /lib/tls/libc.so.6
#1  0xf6f80fe2 in XML_GetBuffer (parser=0xf6f8f510, len=320) at xmlparse.c:840
#2  0xf6f81078 in XML_Parse (parser=0x9170024, 
    s=0x8a81024 "<role version=\"1.0\">\n <releasetypes>php</releasetypes>\n <releasetypes>extsrc</releasetypes>\n <releasetypes>extbin</releasetypes>\n <installable>1</installable>\n <locationconfig>data_dir</locationconfig"..., len=320, isFinal=0)
    at xmlparse.c:810
#3  0x082f7b08 in zif_xml_parse (ht=2, return_value=0x9323e24, return_value_ptr=0x0, this_ptr=0x0, return_value_used=1)
    at /tmp/test/php/php5.1-200602130330/ext/xml/xml.c:1347
#4  0x08357499 in zend_do_fcall_common_helper_SPEC (execute_data=0xfeffa190) at zend_vm_execute.h:192
#5  0x08356e51 in execute (op_array=0x9044224) at zend_vm_execute.h:92
#6  0x08357059 in zend_do_fcall_common_helper_SPEC (execute_data=0xfeffa800) at zend_vm_execute.h:226
#7  0x08356e51 in execute (op_array=0x9044624) at zend_vm_execute.h:92
#8  0x08357059 in zend_do_fcall_common_helper_SPEC (execute_data=0xfeffaa50) at zend_vm_execute.h:226
#9  0x08356e51 in execute (op_array=0x9019324) at zend_vm_execute.h:92
#10 0x08357059 in zend_do_fcall_common_helper_SPEC (execute_data=0xfeffb2c0) at zend_vm_execute.h:226
#11 0x08356e51 in execute (op_array=0x8da4724) at zend_vm_execute.h:92
#12 0x08357059 in zend_do_fcall_common_helper_SPEC (execute_data=0xfeffb520) at zend_vm_execute.h:226
#13 0x08356e51 in execute (op_array=0x8da4424) at zend_vm_execute.h:92
#14 0x08357059 in zend_do_fcall_common_helper_SPEC (execute_data=0xfeffd090) at zend_vm_execute.h:226
#15 0x08356e51 in execute (op_array=0x8a44d24) at zend_vm_execute.h:92
#16 0x0835c883 in ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER (execute_data=0xfeffd3c0) at zend_vm_execute.h:1918
#17 0x08356e51 in execute (op_array=0x89bbe24) at zend_vm_execute.h:92
#18 0x0833d352 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
    at /tmp/test/php/php5.1-200602130330/Zend/zend.c:1101
#19 0x08304990 in php_execute_script (primary_file=0xfefff8e0) at /tmp/test/php/php5.1-200602130330/main/main.c:1719
#20 0x083a8313 in main (argc=8, argv=0xfefff9b4) at /tmp/test/php/php5.1-200602130330/sapi/cli/php_cli.c:1090
###########################################################

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-13 08:50 UTC] sniper@php.net
And your configure line was..?
 [2006-02-13 09:18 UTC] anu at anusoft dot biz
./configure --prefix=/tmp/test/phptest \
--enable-debug \
--x-includes=/usr/lib/X11/ \
--x-libraries=/usr/include/X11/ \
--enable-force-cgi-redirect \
--enable-discard-path \
--enable-safe-mode \
--enable-sigchild \
--enable-magic-quotes \
--enable-dmalloc \
--disable-ipv6 \
--with-libxml=/usr/local/libxml2 \
--with-xmlrpc=/usr/local \
--with-openssl=/usr \
--with-openssl-dir=/usr \
--with-zlib \
--with-zlib-dir=/usr \
--enable-bcmath \
--with-bz2 \
--enable-calendar \
--with-curl \
--with-curlwrappers \
--enable-dba=shared \
--with-gdbm=/usr \
--with-db4 \
--with-dbm \
--with-cdb \
--with-inifile \
--with-flatfile \
--enable-dbase \
--enable-exif \
--enable-filepro \
--enable-ftp \
--with-gd \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-xpm-dir=/usr/X11R6 \
--with-ttf=/usr \
--with-freetype-dir=/usr \
--with-t1lib=/usr/local \
--enable-gd-native-ttf \
--enable-gd-jis-conv \
--with-gettext=/usr \
--with-gmp=/usr \
--with-imap=/usr/local/imap-2005 \
--with-imap-ssl=/usr \
--with-ldap=/usr \
--with-ldap-sasl=/usr/local \
--enable-mbstring \
--with-libmbfl \
--with-mcrypt=/usr \
--with-mhash=/usr/local \
--with-ming=/usr \
--with-mssql \
--with-mysql=/usr \
--with-mysql-sock=/var/lib/mysql/mysql.sock \
--enable-mime-magic \
--with-ncurses \
--enable-pcntl \
--with-pdo-dblib=/usr/local \
--with-pdo-mysql=/usr \
--with-libedit=/usr/local \
--with-readline=/usr \
--with-mm=/usr/local \
--enable-shmop \
--enable-soap \
--enable-sockets \
--enable-sqlite-utf8 \
--enable-sysvmsg --enable-sysvsem --enable-sysvshm \
--with-aspell=/usr/local \
--enable-wddx \
--with-libexpat-dir=/usr/local/expat-php \
--with-tidy=/usr \
--with-iconv-dir=/usr/local \
--with-xsl=/usr/local \
--with-pear \
--enable-memory-limit
 [2006-02-13 10:42 UTC] anu at anusoft dot biz
I've just removed '--with-xmlrpc=/usr/local' and it's working well now.
 [2006-04-10 21:54 UTC] sniper@php.net
We bundle a working xmlrpc library which uses libxml instead. Don't use external xmlrpc if you don't know exactly what you're doing. 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC