From: robert at interjinn dot com
Operating system: Mandrake 9.0
PHP version: 5CVS-2003-12-12 (dev)
PHP Bug Type: Reproducible crash
Bug description: Segmentation fault
Description:
------------
No idea why script crashes. I'm including my compile information and the
backtrace.
export PHP_VERSION_DIR=php5-200312120830
make clean
rm config.cache
./configure \
--disable-all \
--with-mysql \
--enable-carnagemath \
--enable-carnagexml \
--enable-carnageutilities \
--enable-interjinn \
--enable-ctype \
--with-zlib \
--enable-ftp \
--enable-sockets \
--with-ncurses \
--enable-pcntl \
--with-pcre-regex \
--enable-exif \
--with-jpeg-dir=/usr/lib \
--with-png-dir=/usr/lib \
--with-tiff-dir=/usr/lib \
--with-gif-dir=/usr/lib \
--with-gd \
--prefix=/usr/local/php/${PHP_VERSION_DIR}/installation \
--exec-prefix=/usr/local/php/${PHP_VERSION_DIR}/installation
make
make install
--------------------------------------------------------
Program received signal SIGSEGV, Segmentation fault.
zend_do_declare_property (var_name=0xbffed0e0, value=0xbffed110,
access_type=256)
at /usr/local/php/php5-200312120830/Zend/zend_compile.c:2442
2442 if (CG(active_class_entry)->ce_flags & ZEND_ACC_INTERFACE)
{
(gdb) bt
#0 zend_do_declare_property (var_name=0xbffed0e0, value=0xbffed110,
access_type=256)
at /usr/local/php/php5-200312120830/Zend/zend_compile.c:2442
#1 0x08121b3a in zendparse () at Zend/zend_language_parser.c:2545
#2 0x0812371e in compile_file (file_handle=0xbffee4e0, type=2) at
Zend/zend_language_scanner.c:3139
#3 0x08155ad1 in zend_include_or_eval_handler (execute_data=0xbfff0ad0,
op_array=0x0)
at /usr/local/php/php5-200312120830/Zend/zend_execute.c:3355
#4 0x08151442 in execute (op_array=0x4032039c) at
/usr/local/php/php5-200312120830/Zend/zend_execute.c:1277
#5 0x0815407a in zend_do_fcall_common_helper (execute_data=0xbfff5180,
op_array=0x40315e44)
at /usr/local/php/php5-200312120830/Zend/zend_execute.c:2580
#6 0x081542c9 in zend_do_fcall_by_name_handler (execute_data=0x0,
op_array=0x40315e44)
at /usr/local/php/php5-200312120830/Zend/zend_execute.c:2666
#7 0x08151442 in execute (op_array=0x40315e44) at
/usr/local/php/php5-200312120830/Zend/zend_execute.c:1277
#8 0x0815407a in zend_do_fcall_common_helper (execute_data=0xbfff9e30,
op_array=0x40282c04)
at /usr/local/php/php5-200312120830/Zend/zend_execute.c:2580
#9 0x081542c9 in zend_do_fcall_by_name_handler (execute_data=0x0,
op_array=0x40282c04)
at /usr/local/php/php5-200312120830/Zend/zend_execute.c:2666
#10 0x08151442 in execute (op_array=0x40282c04) at
/usr/local/php/php5-200312120830/Zend/zend_execute.c:1277
#11 0x08155b55 in zend_include_or_eval_handler (execute_data=0xbfffbbc0,
op_array=0x0)
at /usr/local/php/php5-200312120830/Zend/zend_execute.c:3403
#12 0x08151442 in execute (op_array=0x402796b4) at
/usr/local/php/php5-200312120830/Zend/zend_execute.c:1277
#13 0x08155b55 in zend_include_or_eval_handler (execute_data=0xbfffc000,
op_array=0x0)
at /usr/local/php/php5-200312120830/Zend/zend_execute.c:3403
#14 0x08151442 in execute (op_array=0x40278a5c) at
/usr/local/php/php5-200312120830/Zend/zend_execute.c:1277
#15 0x08139c32 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
at /usr/local/php/php5-200312120830/Zend/zend.c:1016
#16 0x0810d368 in php_execute_script (primary_file=0xbfffe370)
at /usr/local/php/php5-200312120830/main/main.c:1638
#17 0x0815ac57 in main (argc=3, argv=0xbfffe404) at
/usr/local/php/php5-200312120830/sapi/cgi/cgi_main.c:1564
#18 0x40154082 in __libc_start_main () from /lib/i686/libc.so.6
--
Edit bug report at http://bugs.php.net/?id=26598&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26598&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26598&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26598&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26598&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26598&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26598&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26598&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26598&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26598&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26598&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26598&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26598&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26598&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26598&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26598&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26598&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26598&r=float