Bug #17058 Updated: child pid XXX exit signal Segmentation Fault (11)
| From: | mfischer@php.net | Date: | Wed, 08 May 2002 20:04:38 +0000 |
| Subject: | Bug #17058 Updated: child pid XXX exit signal Segmentation Fault (11) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-7264@lists.php.net to get a copy of this message | ||
ID: 17058
Updated by: mfischer@php.net
Reported By: karyn.joseph@teradyne.com
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Solaris 2.7
PHP Version: 4.2.0
New Comment:
The line
#0 0xfed00178 in ?? () from /opt/apache_1.3_64/libexec/libphp4.so
tells me the debugger can't find the symbols which means that this
binary doesn't have the debug symbols which are normally generated when
compiling with --enable-debug
Have you made sure the right binary is installed and loaded in the
debugger?
Previous Comments:
------------------------------------------------------------------------
[2002-05-08 16:00:36] karyn.joseph@teradyne.com
It was compiled with --enable-debug.
Here's the config. Did I do something
incorrectly?:
cat config.nice
#! /bin/sh
#
# Created by configure
"./configure" \
"--with-mysql" \
"--prefix=/opt/php-4ORC1" \
"--enable-debug" \
"--with-apxs=/opt/apache/bin/apxs" \
"$@"
Thank you for the help.
Karyn
------------------------------------------------------------------------
[2002-05-08 15:57:38] mfischer@php.net
Now that we know it crashes in libphp4.so you need to recompile PHP
with --enable-debug in other to get more information where it exactly
crashed.
------------------------------------------------------------------------
[2002-05-08 15:43:56] karyn.joseph@teradyne.com
Backtrace information ... I hope this is right:
binder# gdb ../bin/httpd
GNU gdb 4.18
Copyright 1998 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 "sparc-sun-solaris2.7"...
(gdb) run -X
Starting program: /opt/apache_1.3_64/conf/../bin/httpd -X
Program received signal SIGSEGV, Segmentation fault.
0xfed00178 in ?? () from /opt/apache_1.3_64/libexec/libphp4.so
(gdb) exit
Undefined command: "exit". Try "help".
(gdb) bye
Undefined command: "bye". Try "help".
(gdb) exit
Undefined command: "exit". Try "help".
(gdb) quit
The program is running. Exit anyway? (y or n) n
Not confirmed.
(gdb) bt
#0 0xfed00178 in ?? () from /opt/apache_1.3_64/libexec/libphp4.so
#1 0x86bd0 in ap_invoke_handler ()
#2 0xa3518 in process_request_internal ()
#3 0xa3a38 in ap_internal_redirect ()
#4 0x75fe8 in handle_dir ()
#5 0x86bd0 in ap_invoke_handler ()
#6 0xa3518 in process_request_internal ()
#7 0xa359c in ap_process_request ()
#8 0x96fe4 in child_main ()
#9 0x97278 in make_child ()
#10 0x97494 in startup_children ()
#11 0x97e84 in standalone_main ()
#12 0x98a90 in main ()
(gdb) quit
------------------------------------------------------------------------
[2002-05-07 02:59:17] derick@php.net
You can get the source from gnu.org, or a binary from:
http://www.sunfreeware.com/programlistsparc7.html#gdb
(sparc)
or
http://www.sunfreeware.com/programlistintel7.html#gdb
(Intel)
Derick
------------------------------------------------------------------------
[2002-05-06 21:12:41] karyn.joseph@teradyne.com
Installed PHP 4.2.0 on Solaris 2.7 server running Apache 1.3.12. (Also
removed this install and tried PHP 4.ORC1 with same results.)
configure, make, and make install worked no problem, but then when I
run '/path/to/apache/bin/apachectl start' it looks like apache runs,
but the child processes are crashing with a Segmentation Fault (11),
and no pages, .html or otherwise are being served.
If I go back to the httpd.conf file and comment out the php specific
lines, the web pages are again being served correctly.
I would run a a gdb backtrace, but I have to admit I don't know where
the gdb command can be found.
Any help you can offer would be greatly appreciated.
Thank you,
Karyn
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17058&edit=1