Summary: | dev-lang/php-5.1.1 cli segmentation faults | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Erik Zeek <zeekec> |
Component: | New packages | Assignee: | PHP Bugs <php-bugs> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://bugs.php.net/bug.php?id=36182 | ||
Whiteboard: | watch-php-bugzilla | ||
Package list: | Runtime testing required: | --- |
Description
Erik Zeek
2006-01-24 10:18:16 UTC
That gdb output is pretty much useless, please read http://www.gentoo.org/doc/en/bugzilla-howto.xml to learn how to compile php with debugging symbols and attach a backtrace then. (In reply to comment #1) > That gdb output is pretty much useless, please read > http://www.gentoo.org/doc/en/bugzilla-howto.xml to learn how to compile php > with debugging symbols and attach a backtrace then. > Hmm... Followed those directions and it didn't get much better. Is there another library I should install with nostrip? Emerging with: CFLAGS="-O0 -pipe -g -ggdb" CXXFLAGS="-O0 -pipe -g -ggdb" FEATURES="nostrip" emerge -av dev-lang/php yielded: gdb --args php -v GNU gdb 6.4 Copyright 2005 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 "i686-pc-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1". (gdb) run Starting program: /usr/bin/php -v [Thread debugging using libthread_db enabled] [New Thread -1209125184 (LWP 2738)] PHP 5.1.1-gentoo (cli) (built: Jan 24 2006 13:59:03) (DEBUG) Copyright (c) 1997-2005 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2005 Zend Technologies Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1209125184 (LWP 2738)] 0xb7b427d6 in ?? () (gdb) bt #0 0xb7b427d6 in ?? () #1 0x0821aa2d in tsrm_shutdown () at /home/gentoo/tmp/portage/php-5.1.1/work/php-5.1.1/TSRM/TSRM.c:180 #2 0x08317fe2 in main (argc=2, argv=0xbfb137a4) at /home/gentoo/tmp/portage/php-5.1.1/work/php-5.1.1/sapi/cli/php_cli.c:1152 (gdb) Just discovered that this problem is due to the tidy extension in php. If you remove /etc/php/cli-php5/ext-active/tidy.ini you should be able to issue 'php -v' without being bounced by a segfault error. This is possible, of course, if you don't use any tidy function in your php pages... Please note that the segfault trouble impaired the installation of dev-php/PEAR-DB-1.7.6-r1 until I disabled tidy, so I would like to leave this bug opened 'till the gentoo staff fixes the tidy problem. OK, please recompile without USE="threads" (you'll need to recompile apache as well) and test whether it still segfaults... (In reply to comment #3) > If you remove /etc/php/cli-php5/ext-active/tidy.ini you should be able to issue > 'php -v' without being bounced by a segfault error. > This fixed the segfault. (In reply to comment #4) > OK, please recompile without USE="threads" (you'll need to recompile apache as > well) and test whether it still segfaults... > This also fixed the segfault. We don't support USE=threads in php (for reasons such as this one), please report this upstream (bugs.php.net) and post the URL here. It's most likely not fixed in 5.1.2 either, since the relevant code hasn't changed there. Closing UPSTREAM, thanks for reporting back. (In reply to comment #7) > We don't support USE=threads in php (for reasons such as this one), please > report this upstream (bugs.php.net) and post the URL here. It's most likely not > fixed in 5.1.2 either, since the relevant code hasn't changed there. > Already reported in: http://bugs.php.net/bug.php?id=36182 |