Re: Segmentation Fault when running pear install

From: Date: Thu, 25 Sep 2003 03:27:48 +0000
Subject: Re: Segmentation Fault when running pear install
References: 1 2 3 4 5  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8028@lists.php.net to get a copy of this message
Hi Mike, This is odd. Since you've compiled --with-debug, could you grab a backtrace and post the results to php.internals against current PHP_4_3 branch snapshot? They are better equipped to deal with this bug. You will need to tell them the output from php -v, and your OS version, and so on. They'll tell you if you leave anything out. Greg Mike Anderson wrote:
Greg, Both of those segfaulted: pear -vvv upgrade Archive_Tar + tmp dir created at /tmp/tmpZok69v downloading Archive_Tar-1.1.tgz ... ...done: 14,232 bytes + tmp dir created at /tmp/tmpMwBFLA Segmentation fault pear -vvv upgrade PEAR + tmp dir created at /tmp/tmpwPniMd downloading PEAR-1.2.1.tgz ... ...done: 83,126 bytes + tmp dir created at /tmp/tmpZKndJk Segmentation fault I checked the tmp directories listed above. For Archive_Tar, the first directory contains Archive_Tar-1.1.tgz, but the second directory is empty. I also did a -vvv install on Text_Password, which was successful, and it looks like it was able to write to the tmp directories. I'm not sure if that means anything: pear -vvv install Text_Password + tmp dir created at /tmp/tmpu4fSeh downloading Text_Password-1.0.tgz ... ...done: 3,707 bytes + tmp dir created at /tmp/tmpB9Afra + cp /tmp/tmpB9Afra/Text_Password-1.0/Password.php /usr/local/lib/php/Text/.tmpPassword.php md5sum ok: /usr/local/lib/php/Text/Password.php adding to transaction: chmod 644 /usr/local/lib/php/Text/.tmpPassword.php adding to transaction: rename /usr/local/lib/php/Text/.tmpPassword.php /usr/local/lib/php/Text/Password.php + cp /tmp/tmpB9Afra/Text_Password-1.0/tests/01-text-password.phpt /usr/local/lib/php/test/Text_Password/tests/.tmp01-text-password.phpt md5sum ok: /usr/local/lib/php/test/Text_Password/tests/01-text-password.phpt adding to transaction: chmod 644 /usr/local/lib/php/test/Text_Password/tests/.tmp01-text-password.phpt adding to transaction: rename /usr/local/lib/php/test/Text_Password/tests/.tmp01-text-password.phpt /usr/local/lib/php/test/Text_Password/tests/01-text-password.phpt about to commit 4 file operations + chmod 644 /usr/local/lib/php/Text/.tmpPassword.php + mv /usr/local/lib/php/Text/.tmpPassword.php /usr/local/lib/php/Text/Password.php + chmod 644 /usr/local/lib/php/test/Text_Password/tests/.tmp01-text-password.phpt + mv /usr/local/lib/php/test/Text_Password/tests/.tmp01-text-password.phpt /usr/local/lib/php/test/Text_Password/tests/01-text-password.phpt successfully commited 4 file operations install ok: Text_Password 1.0 Greg Beaver wrote:
Hi Mike, Try pear upgrade Archive_Tar and pear upgrade PEAR see if that gets through without a segfault. It's possible that your PHP version is segfaulting when it attempts to create a file in the tmp directory, and so these two upgrades should fail if that is the case. Greg Mike Anderson wrote:
Thanks for the reply. Here's the output you requested: pear -vvv install Var_Dump + tmp dir created at /tmp/tmpZGn6mS downloading Var_Dump-0.4.tgz ... ...done: 7,209 bytes + tmp dir created at /tmp/tmpVAkB87 Segmentation fault
    and
pear list Installed packages: =================== +----------------+---------+--------+
| Package        | Version | State  |
| Archive_Tar    | 0.9     | stable |
| Console_Getopt | 1.0     | stable |
| DB             | 1.3     | stable |
| HTTP           | 1.2     | stable |
| Image_Color    | 0.4     | stable |
| Mail           | 1.0.1   | stable |
| Net_SMTP       | 1.0     | stable |
| Net_Socket     | 1.0.1   | stable |
| PEAR           | 1.0b3   | stable |
| Text_Password  | 1.0     | stable |
| XML_Parser     | 1.0     | stable |
| XML_RPC        | 1.0.4   | stable |
+----------------+---------+--------+ Greg Beaver wrote:
Hi Mike, Could you show the output from pear -vvv install Var_Dump as well as the output from pear list Thanks, Greg Mike Anderson wrote:
I am currently running PHP 4.3.1 and have just tried installing a few PEAR packages. When I run pear install <package>, it works for some and has a segmentation fault for others. For example: pear install PhpDocumentor downloading PhpDocumentor-1.2.2.1.tgz ... ...done: 2,659,966 bytes Segmentation fault pear install Image_Color downloading Image_Color-0.4.tgz ... ...done: 7,517 bytes install ok: Image_Color 0.4 pear install Var_Dump downloading Var_Dump-0.4.tgz ... ...done: 7,209 bytes Segmentation fault pear install Text_Password downloading Text_Password-1.0.tgz ... ...done: 3,707 bytes install ok: Text_Password 1.0 I originally was just trying to install PhpDocumentor, but then tried random packages to see what would happen with them. I have also tried installing php 4.3.3 and the latest php from snaps.php.net, but neither cleared up the problem. Has anyone run into this before? Here is my configure command, if that's any help: ./configure '--with-mysql' '--with-apxs=/usr/local/apache/bin/apxs' '--with-gd' '--with-zlib-dir=/usr/lib' '--with-jpeg-dir=/usr/local/jpeg-6b' '--enable-debug' Thanks, Mike Anderson


« previous php.pear.general (#8028) next »