ID: 26893
Updated by: [EMAIL PROTECTED]
Reported By: liz at xcalibur dot demon dot co dot uk
-Status: Open
+Status: Analyzed
Bug Type: Reproducible crash
Operating System: Linux 2.4.20
PHP Version: 5.0.0b3 (beta3)
New Comment:
The problem is due to the browcap extension init
running before the EG(class_table) is created.
This is caused by a line in your browscap containing
the text "LWP::Simple" and this is interpreted by
out ini parser as a class constant.
We probably shouldn't look for class constants in our
ini parser.
As a workaround, you can comment out that line from
your browscap.ini.
Previous Comments:
------------------------------------------------------------------------
[2004-01-13 07:50:28] liz at xcalibur dot demon dot co dot uk
bt output as requested
#0 0x81537f3 in zend_hash_find (ht=0x0, arKey=0xbfffe7b4 "lwp",
nKeyLength=4, pData=0xbfffe864)
at /usr/src/web/php5-200401121630/Zend/zend_hash.c:844
#1 0x8146513 in zend_lookup_class (name=0xbfffe824 "LWP",
name_length=3, ce=0xbfffe864)
at /usr/src/web/php5-200401121630/Zend/zend_execute_API.c:794
#2 0x8144c59 in zend_get_constant (name=0x830d290 "LWP::Simple",
name_len=8, result=0xbfffe89c)
at /usr/src/web/php5-200401121630/Zend/zend_constants.c:254
#3 0x813c828 in zend_ini_get_constant (result=0xbfffe90c,
name=0xbfffe96c) at Zend/zend_ini_parser.c:121
#4 0x813cde6 in ini_parse () at Zend/zend_ini_parser.c:926
#5 0x813c952 in zend_parse_ini_file (fh=0xbffff78c,
unbuffered_errors=1, ini_parser_cb=0x80d42d0 <php_browscap_parser_cb>,
arg=0x81de3a0) at Zend/zend_ini_parser.c:176
#6 0x80d4589 in zm_startup_browscap (type=1, module_number=3) at
/usr/src/web/php5-200401121630/ext/standard/browscap.c:165
#7 0x80cf307 in zm_startup_basic (type=1, module_number=3) at
/usr/src/web/php5-200401121630/ext/standard/basic_functions.c:996
#8 0x815071a in zend_startup_module (module=0x81d2b80) at
/usr/src/web/php5-200401121630/Zend/zend_API.c:1179
#9 0x812258f in php_startup_extensions (ptr=0x81dbd68, count=11) at
/usr/src/web/php5-200401121630/main/main.c:1290
#10 0x8185eb5 in php_startup_internal_extensions () at
main/internal_functions_cli.c:64
#11 0x8122995 in php_module_startup (sf=0x81dbcc0,
additional_modules=0x0, num_additional_modules=0)
at /usr/src/web/php5-200401121630/main/main.c:1458
#12 0x8184f4e in main (argc=1, argv=0xbffffa94) at
/usr/src/web/php5-200401121630/sapi/cli/php_cli.c:607
#13 0x401a72eb in __libc_start_main (main=0x8184dec <main>, argc=1,
ubp_av=0xbffffa94, init=0x806d4b0 <_init>,
fini=0x818e24c <_fini>, rtld_fini=0x4000c130 <_dl_fini>,
stack_end=0xbffffa8c) at ../sysdeps/generic/libc-start.c:129
------------------------------------------------------------------------
[2004-01-13 07:25:15] [EMAIL PROTECTED]
Can you please also use the "bt" command from GDB to display the full
callstack after the segfault?
------------------------------------------------------------------------
[2004-01-13 07:08:22] liz at xcalibur dot demon dot co dot uk
Description:
------------
Having tried many compile variations even a simple
./configure
make
make install
php
causes seg fault - I removed all my options to check to see if it was
related.
I removed any reference to Zend optimizer in php.ini, so its not that
Reproduce code:
---------------
None required. I Cant get any code to run.
Expected result:
----------------
Anything other than seg fault.
Actual result:
--------------
(gdb) run
Starting program: /usr/local/bin/php
[New Thread 1024 (LWP 18459)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 18459)]
0x814fb53 in zend_hash_find (ht=0x0, arKey=0xbfffe804 "lwp",
nKeyLength=4, pData=0xbfffe8b4)
at /usr/src/web/php-5.0.0b3/Zend/zend_hash.c:844
844 nIndex = h & ht->nTableMask;
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26893&edit=1