ID: 27629
User updated by: sroussey at network54 dot com
Reported By: sroussey at network54 dot com
-Status: Feedback
+Status: Closed
Bug Type: Reproducible crash
Operating System: Linux 2.4.20
PHP Version: 4.3.5RC3
New Comment:
Must have been a gcc issue. Restarted machine and unpacked a fresh
tar.gz and it works fine. Soory to waste any time.
Previous Comments:
------------------------------------------------------------------------
[2004-03-18 08:45:41] [EMAIL PROTECTED]
Please generate a backtrace with a DEBUG version of PHP
without heavy optimization flags.
------------------------------------------------------------------------
[2004-03-17 20:31:39] sroussey at network54 dot com
BTW: I have an strace (from the version that crashes -- that is,
without the debug option)
# tail trace_file -n 50
lstat64("/root/webserver_software_tmp", {st_mode=S_IFDIR|0755,
st_size=4096, ...}) = 0
lstat64("/root/webserver_software_tmp/php-4.3.5RC3",
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64("/root/webserver_software_tmp/php-4.3.5RC3/pear",
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64("/root/webserver_software_tmp/php-4.3.5RC3/pear/PEAR",
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64("/root/webserver_software_tmp/php-4.3.5RC3/pear/PEAR/Registry.php",
{st_mode=S_IFREG|0664, st_size=15079, ...}) = 0
open("/root/webserver_software_tmp/php-4.3.5RC3/pear/PEAR/Registry.php",
O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0664, st_size=15079, ...}) = 0
fstat64(3, {st_mode=S_IFREG|0664, st_size=15079, ...}) = 0
lseek(3, 0, SEEK_CUR) = 0
lseek(3, 0, SEEK_SET) = 0
read(3, "<?php\n//\n// +-------------------"..., 8192) = 8192
read(3, " return $err;\n "..., 8192) = 6887
brk(0) = 0x847e000
brk(0x8482000) = 0x8482000
brk(0) = 0x8482000
brk(0x8485000) = 0x8485000
brk(0) = 0x8485000
brk(0x8487000) = 0x8487000
brk(0) = 0x8487000
brk(0x8488000) = 0x8488000
read(3, "", 8192) = 0
close(3) = 0
stat64("/root/webserver_software_tmp/php-4.3.5RC3/pear/System.php",
{st_mode=S_IFREG|0664, st_size=17972, ...}) = 0
getcwd("/root/webserver_software_tmp/php-4.3.5RC3", 4096) = 42
lstat64("/root", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat64("/root/webserver_software_tmp", {st_mode=S_IFDIR|0755,
st_size=4096, ...}) = 0
lstat64("/root/webserver_software_tmp/php-4.3.5RC3",
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64("/root/webserver_software_tmp/php-4.3.5RC3/pear",
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64("/root/webserver_software_tmp/php-4.3.5RC3/pear/System.php",
{st_mode=S_IFREG|0664, st_size=17972, ...}) = 0
open("/root/webserver_software_tmp/php-4.3.5RC3/pear/System.php",
O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0664, st_size=17972, ...}) = 0
fstat64(3, {st_mode=S_IFREG|0664, st_size=17972, ...}) = 0
lseek(3, 0, SEEK_CUR) = 0
lseek(3, 0, SEEK_SET) = 0
close(3) = 0
stat64("/root/webserver_software_tmp/php-4.3.5RC3/pear/PEAR.php",
{st_mode=S_IFREG|0664, st_size=29746, ...}) = 0
getcwd("/root/webserver_software_tmp/php-4.3.5RC3", 4096) = 42
lstat64("/root", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
lstat64("/root/webserver_software_tmp", {st_mode=S_IFDIR|0755,
st_size=4096, ...}) = 0
lstat64("/root/webserver_software_tmp/php-4.3.5RC3",
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64("/root/webserver_software_tmp/php-4.3.5RC3/pear",
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64("/root/webserver_software_tmp/php-4.3.5RC3/pear/PEAR.php",
{st_mode=S_IFREG|0664, st_size=29746, ...}) = 0
open("/root/webserver_software_tmp/php-4.3.5RC3/pear/PEAR.php",
O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0664, st_size=29746, ...}) = 0
fstat64(3, {st_mode=S_IFREG|0664, st_size=29746, ...}) = 0
lseek(3, 0, SEEK_CUR) = 0
lseek(3, 0, SEEK_SET) = 0
close(3) = 0
--- SIGILL (Illegal instruction) ---
+++ killed by SIGILL +++
------------------------------------------------------------------------
[2004-03-17 20:28:35] sroussey at network54 dot com
Well, that was the backtrace before I did a debug version. When I
changed the CFLAGS to add -g as you suggested and added --enable-debug
then it no longer crashes.
------------------------------------------------------------------------
[2004-03-17 20:28:27] [EMAIL PROTECTED]
What this backtrace generated with debug build of PHP?
The backtrace should've been more detailed if it was.
------------------------------------------------------------------------
[2004-03-17 20:19:21] sroussey at network54 dot com
The line in the Makefile gets expanded to this:
/root/webserver_software_tmp/php-4.3.5RC3/sapi/cli/php -n
-dshort_open_tag=0 -dsafe_mode=0
/root/webserver_software_tmp/php-4.3.5RC3/pear/install-pear.php -d
"/usr/local/lib/php" -b "/usr/local/bin"
/root/webserver_software_tmp/php-4.3.5RC3/pear/package-*.xml
gdb on the above has a bt of:
Starting program:
/root/webserver_software_tmp/php-4.3.5RC3/sapi/cli/php -n
-dshort_open_tag=0 -dsafe_mode=0
/root/webserver_software_tmp/php-4.3.5RC3/pear/install-pear.php -d
"/usr/local/lib/php" -b "/usr/local/bin"
/root/webserver_software_tmp/php-4.3.5RC3/pear/package-*.xml
Program received signal SIGILL, Illegal instruction.
0x08160493 in sub_function ()
(gdb) bt
#0 0x08160493 in sub_function ()
#1 0x0816e7f2 in execute ()
#2 0x081711be in execute ()
#3 0x081711be in execute ()
#4 0x08164547 in zend_execute_scripts ()
#5 0x0813cf2e in php_execute_script ()
#6 0x08174801 in main ()
#7 0x42015967 in __libc_start_main () from /lib/i686/libc.so.6
------------------------------------------------------------------------
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/27629
--
Edit this bug report at http://bugs.php.net/?id=27629&edit=1