From: mfladischer at gmx dot net
Operating system: Redhat 9
PHP version: 5CVS-2003-07-08 (dev)
PHP Bug Type: Compile Failure
Bug description: segfault on redhat9
Description:
------------
Compiled with:
./configure \
--prefix=/usr \
--with-config-file-path=/etc/server \
--with-apxs2=/usr/bin/apxs \
--with-zlib \
--disable-cgi \
--enable-debug \
--disable-all
`make test` results in a segfault.
glibc: glibc-2.3.2
gcc: gcc-3.2.2
Actual result:
--------------
[EMAIL PROTECTED] cli]# gdb ./php
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
Copyright 2003 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-redhat-linux-gnu"...
(gdb) run
Starting program: /home/share/software/linux/devel/php5/sapi/cli/php
Program received signal SIGSEGV, Segmentation fault.
0x08124b72 in _zend_is_inconsistent (ht=0x0, file=0x8170960
"/linux/devel/php5/Zend/zend_hash.c", line=837) at
/linux/devel/php5/Zend/zend_hash.c:53
53 if (ht->inconsistent==HT_OK) {
(gdb) bt
#0 0x08124b72 in _zend_is_inconsistent (ht=0x0, file=0x8170960
"/linux/devel/php5/Zend/zend_hash.c", line=837) at
/linux/devel/php5/Zend/zend_hash.c:53
#1 0x08126d6e in zend_hash_find (ht=0x0, arKey=0xbfffe810 "lwp",
nKeyLength=4, pData=0xbfffe840) at /linux/devel/php5/Zend/zend_hash.c:837
#2 0x081159db in zend_lookup_class (name=0xbfffe810 "lwp", name_length=3,
ce=0xbfffe840) at /linux/devel/php5/Zend/zend_execute_API.c:736
#3 0x0811356b in zend_get_constant (name=0x81d3688 "LWP::Simple",
name_len=11, result=0xbfffe870) at
/linux/devel/php5/Zend/zend_constants.c:251
#4 0x08106882 in zend_ini_get_constant (result=0xbfffe8d0,
name=0xbfffe930) at zend_ini_parser.y:101
#5 0x08107282 in ini_parse () at zend_ini_parser.y:229
#6 0x08106a43 in zend_parse_ini_file (fh=0xbffff7b0, unbuffered_errors=1
'\001', ini_parser_cb=0x807e8e2 <php_browscap_parser_cb>, arg=0x817f960)
at zend_ini_parser.y:156
#7 0x0807ec87 in zm_startup_browscap (type=1, module_number=1) at
/linux/devel/php5/ext/standard/browscap.c:165
#8 0x08077bcb in zm_startup_basic (type=1, module_number=1) at
/linux/devel/php5/ext/standard/basic_functions.c:1069
#9 0x0812311a in zend_startup_module (module=0x8175e20) at
/linux/devel/php5/Zend/zend_API.c:1126
#10 0x080e116f in php_startup_extensions (ptr=0x817ef28, count=2) at
/linux/devel/php5/main/main.c:1222
#11 0x08148df4 in php_startup_internal_extensions () at
main/internal_functions_cli.c:52
#12 0x080e166f in php_module_startup (sf=0x817eea0,
additional_modules=0x0, num_additional_modules=0) at
/linux/devel/php5/main/main.c:1387
#13 0x081479d6 in main (argc=1, argv=0xbffffb04) at
/linux/devel/php5/sapi/cli/php_cli.c:592
#14 0x400bba07 in __libc_start_main () from /lib/i686/libc.so.6
--
Edit bug report at http://bugs.php.net/?id=24530&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24530&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24530&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=24530&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24530&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24530&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24530&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24530&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24530&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24530&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24530&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24530&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24530&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24530&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24530&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24530&r=gnused