#24457 [Com]: Segfault when executing a script
ID: 24457
Comment by: dm at zamang dot co dot uk
Reported By: s dot vanvelthem at ibelgique dot com
Status: No Feedback
Bug Type: Reproducible crash
Operating System: Sco OpenServer 5.05
PHP Version: 4.3.3RC1
New Comment:
Just tried PHP 4.3.3RC4 without the patch and the problem still
occured.
I applied the patch manually, did a make distclean and recompiled. I
didn't include the 'ifdef SCO' commands as I'm only ever going to
compile on SCO - and wanted to be 100% certain that the other changes
took effect.
The patch worked and fixed the problem. It also fixed the problem I was
having with PHP segfaulting when _no_ script was passed to it.
Previous Comments:
------------------------------------------------------------------------
[2003-07-28 05:33:56] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2003-07-23 12:16:51] iliaa@php.net
According to avaliable documentation, the problem is a result of a bug
in SCO OpenServer 5.05. Below is a url to a patch that is hopefuly a
work around this bug, please try it and reply with the result.
http://bb.prohost.org/sco.txt
------------------------------------------------------------------------
[2003-07-22 03:07:03] s dot vanvelthem at ibelgique dot com
That's what I've done (???). I followed the
(http://bugs.php.net/bugs-generating-backtrace.php) document. Maybe I'm
doing wrong?
How to call gdb?
I typed
gdb /usr/local/bin/php ./core
Is this correct for CLI usage? The better thing to do is to document it
in bugs-generating-backtrace.php (all options...). But i'll try to
re-compile it with --enable-cli to be sure.
------------------------------------------------------------------------
[2003-07-21 17:04:07] iliaa@php.net
Could you please compile your PHP with --enable-debug, this should
result in a more detailed backtrace.
------------------------------------------------------------------------
[2003-07-03 04:51:15] s dot vanvelthem at ibelgique dot com
Here's the trace (with the latest STABLE release
php4-STABLE-200307030930.tar.gz)
bash-2.03# /opt/K/SKUNK2000/Gdb/5.0/usr/local/bin/gdb
/usr/local/bin/php /u/too
ls/printps/core
GNU gdb 5.0
Copyright 2000 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-pc-sco3.2v5.0.5"...
Core was generated by `printps.php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libsocket.so.1...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
#0 0x80021602 in getcwd () from /usr/lib/libc.so.1
(gdb)bt
#0 0x80021602 in getcwd () from /usr/lib/libc.so.1
#1 0x8007ffe0 in pathcanon () from /usr/lib/libsocket.so.1
#2 0x800802c0 in realpath () from /usr/lib/libsocket.so.1
#3 0x8129570 in php_execute_script (primary_file=0x8047c54)
at /seb/php4-STABLE-200307030930/main/main.c:1652
#4 0x817570f in main (argc=2, argv=0x8047c90)
at /seb/php4-STABLE-200307030930/sapi/cli/php_cli.c:818
#5 0x805ff5b in _start ()
(gdb)
Thanks
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24457
--
Edit this bug report at http://bugs.php.net/?id=24457&edit=1
Thread (9 messages)