php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28365 make install-pear fails, segmentation faut
Submitted: 2004-05-12 07:34 UTC Modified: 2004-11-13 01:00 UTC
Votes:9
Avg. Score:4.7 ± 0.5
Reproduced:9 of 9 (100.0%)
Same Version:5 (55.6%)
Same OS:2 (22.2%)
From: php dot wayne at ptaff dot ca Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 4.3.6 OS: GNU/Linux Mandrake Cooker
Private report: No CVE-ID: None
 [2004-05-12 07:34 UTC] php dot wayne at ptaff dot ca
Description:
------------
Downloaded php-4.3.6, un-tarred, ./configure, make, make install.  Tried with the latest snapshot, same result, failure on "make install"


The make install fails on PEAR installation:

Installing PEAR environment:      /usr/local/stow/php-4.3.6//lib/php/
make[1]: *** [install-pear-installer] Segmentation fault (core dumped)


The command producing the segfault is:

/home/ptaff/src/php/php4-STABLE-200405120430/sapi/cli/php -n -dshort_open_tag=0 -dsafe_mode=0 /home/ptaff/src/php/php4-STABLE-200405120430/pear/install-pear.php -d /usr/local/stow/php-4.3.6//lib/php -b /usr/local/stow/php-4.3.6//bin /home/ptaff/src/php/php4-STABLE-200405120430/pear/package-Archive_Tar.xml


backtracing, we have:

[Thread debugging using libthread_db enabled]
[New Thread 1084061408 (LWP 7178)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1084061408 (LWP 7178)]
0x0823200d in call_overloaded_function (T=0x67b9e57c, arg_count=1, return_value=0x8376684) at /home/ptaff/src/php/php4-STABLE-200405120430/Zend/zend_execute.c:990
990             ce = Z_OBJCE_P(T->EA.data.overloaded_element.object);
(gdb) bt
#0  0x0823200d in call_overloaded_function (T=0x67b9e57c, arg_count=1, return_value=0x8376684) at /home/ptaff/src/php/php4-STABLE-200405120430/Zend/zend_execute.c:990
#1  0x0823566b in execute (op_array=0x853444c) at /home/ptaff/src/php/php4-STABLE-200405120430/Zend/zend_execute.c:1701
#2  0x082353e0 in execute (op_array=0x8538cec) at /home/ptaff/src/php/php4-STABLE-200405120430/Zend/zend_execute.c:1679
#3  0x082353e0 in execute (op_array=0x8374fe4) at /home/ptaff/src/php/php4-STABLE-200405120430/Zend/zend_execute.c:1679
#4  0x08222c31 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/ptaff/src/php/php4-STABLE-200405120430/Zend/zend.c:886
#5  0x081ee00d in php_execute_script (primary_file=0xbfffea50) at /home/ptaff/src/php/php4-STABLE-200405120430/main/main.c:1731
#6  0x08248cfc in main (argc=12, argv=0xbfffeb14) at /home/ptaff/src/php/php4-STABLE-200405120430/sapi/cli/php_cli.c:822
(gdb) frame 1
#1  0x0823566b in execute (op_array=0x853444c) at /home/ptaff/src/php/php4-STABLE-200405120430/Zend/zend_execute.c:1701
1701                                                    call_overloaded_function(&EX(Ts)[EX(fbc)->overloaded_function.var], EX(opline)->extended_value, EX(Ts)[EX(opline)->result.u.var].var.ptr TSRMLS_CC);


I tried a clean ./configure (without any options), a clean CFLAGS, still I get the same error.  I also tried --disable-overload as a wild guess.

Versions used:
gcc: 3.3.2
glibc: 2.3.3 (NPTL)
kernel: 2.6.5

I'm out of ideas here, what should I try next?


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-10 11:33 UTC] paul at vanbrouwershaven dot com
Same problem with PHP 4.3.7 Fedora C1

kernel 2.4.22
gcc 3.3.2
 [2004-07-26 21:16 UTC] michael at obster dot org
Same on a standard Debian Woody with PHP 4.3.8.

A solution is urgently needed!
 [2004-07-26 21:57 UTC] michael at obster dot org
PHP 4.3.5 and 4.3.2 also segfaulting. Looks like this is not a PHP problem. Any help would be good or better an autoconf-check for a specific version check of the buggy package...
 [2004-07-27 10:07 UTC] michael at obster dot org
Please test if you get a running php with --without-pear. If PHP also segfaults perhaps it is the same reason I have had.

Do you compile with --with-db4? Or s.th similar? Because my PHP is running with PEAR now, after leaving the configure switch out.
 [2004-11-13 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 17:01:32 2024 UTC