ID: 27629 Updated by: [EMAIL PROTECTED] Reported By: sroussey at network54 dot com -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: Linux 2.4.20 PHP Version: 4.3.5RC3 New Comment:
Please generate a backtrace with a DEBUG version of PHP without heavy optimization flags. Previous Comments: ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ [2004-03-17 19:49:32] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. set CFLAGS to -g, add --enable-debug to your configure and if it still crashes generate a backtrace. ------------------------------------------------------------------------ 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