From:             neon at neon-line dot net
Operating system: FreeBSD 4.8-stable
PHP version:      5CVS-2003-06-18 (dev)
PHP Bug Type:     Reproducible crash
Bug description:  Segfault with "php-v"

Description:
------------
Segmentation fault with php -v

Reproduce code:
---------------
php -v

Expected result:
----------------
PHP 5.0.0-dev (cli) (built: Jun 18 2003 08:06:52) (DEBUG)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v2.0.0, Copyright (c) 1998-2003 Zend Technologies


Actual result:
--------------
(gdb) run -v
Starting program: /usr/home/neon/php5-200306180930/sapi/cli/php -v

Program received signal SIGSEGV, Segmentation fault.
0x810c437 in zend_hash_find (ht=0x0, arKey=0xbfbfe988 "lwp", nKeyLength=4,
pData=0xbfbfe9c8) at
/usr/home/neon/php5-200306180930/Zend/zend_hash.c:840
840             nIndex = h & ht->nTableMask;
(gdb) bt
#0  0x810c437 in zend_hash_find (ht=0x0, arKey=0xbfbfe988 "lwp",
nKeyLength=4, pData=0xbfbfe9c8) at
/usr/home/neon/php5-200306180930/Zend/zend_hash.c:840
#1  0x8100732 in zend_lookup_class (name=0xbfbfe988 "lwp", name_length=3,
ce=0xbfbfe9c8) at
/usr/home/neon/php5-200306180930/Zend/zend_execute_API.c:703
#2  0x80ff2b8 in zend_get_constant (name=0x81d0880 "LWP::Simple",
name_len=11, result=0xbfbfea00)
    at /usr/home/neon/php5-200306180930/Zend/zend_constants.c:251
#3  0x80f71c8 in zend_ini_get_constant (result=0xbfbfea70,
name=0xbfbfead0) at Zend/zend_ini_parser.c:121
#4  0x80f77a8 in ini_parse () at Zend/zend_ini_parser.c:928
#5  0x80f72ea in zend_parse_ini_file (fh=0xbfbff8f0, unbuffered_errors=1,
ini_parser_cb=0x8091560 <php_browscap_parser_cb>, arg=0x8170e60)
    at Zend/zend_ini_parser.c:176
#6  0x809180c in zm_startup_browscap (type=1, module_number=2) at
/usr/home/neon/php5-200306180930/ext/standard/browscap.c:165
#7  0x808cc6f in zm_startup_basic (type=1, module_number=2) at
/usr/home/neon/php5-200306180930/ext/standard/basic_functions.c:1084
#8  0x8109d46 in zend_startup_module (module=0x8167460) at
/usr/home/neon/php5-200306180930/Zend/zend_API.c:1126
#9  0x80ded27 in php_startup_extensions (ptr=0x816fc88, count=7) at
/usr/home/neon/php5-200306180930/main/main.c:1222
#10 0x812f7b1 in php_startup_internal_extensions () at
main/internal_functions_cli.c:62
#11 0x80df115 in php_module_startup (sf=0x816fbe0, additional_modules=0x0,
num_additional_modules=0) at
/usr/home/neon/php5-200306180930/main/main.c:1387
#12 0x812e8aa in main (argc=2, argv=0xbfbffb88) at
/usr/home/neon/php5-200306180930/sapi/cli/php_cli.c:592


-- 
Edit bug report at http://bugs.php.net/?id=24243&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24243&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24243&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24243&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24243&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24243&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24243&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24243&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24243&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24243&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24243&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24243&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24243&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24243&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24243&r=gnused

Reply via email to