PHP 5.2.8 crash (segmentation fault 11)

Saifi Khan saifi.khan at twincling.org
Sat Jan 24 00:32:14 PST 2009


Hi all:

Freshly compiled PHP 5.2.8 with PECL and PHP5-extensions support
on FreeBSD 7.1 (i386) seems to be crashing in 

#0  0x28e3e006 in hash_lookup (hashtab=0x29ea2f70, 
    key=0xbfbfea30 "\221Û\222)À{\206)p/ê)ì\r\226)`Qp(") at misc.c:349
349	  for (ret = hashtab->table[hash_index (hashtab,key)]; ret; ret = ret->next)
[New Thread 0x28759400 (LWP 100083)]


The stack frame are shown below.


(gdb) bt
#0  0x28e3e006 in hash_lookup (hashtab=0x29ea2f70, 
    key=0xbfbfea30 "\221Û\222)À{\206)p/ê)ì\r\226)`Qp(") at misc.c:349
#1  0x29867dae in find_alias () from /usr/local/lib/librecode.so.3
#2  0x29869361 in recode_new_outer () from /usr/local/lib/librecode.so.3
#3  0x2981dd6e in zm_startup_recode ()
   from /usr/local/lib/php/20060613-debug/recode.so
#4  0x081c0f65 in zend_startup_module_ex (module=0x287cd100)
    at /usr/ports/lang/php5/work/php-5.2.8/Zend/zend_API.c:1472
#5  0x081c81d2 in zend_hash_apply (ht=0x82f0a80, 
    apply_func=0x81c0dc0 <zend_startup_module_ex>)
    at /usr/ports/lang/php5/work/php-5.2.8/Zend/zend_hash.c:673
#6  0x081c112f in zend_startup_modules ()
    at /usr/ports/lang/php5/work/php-5.2.8/Zend/zend_API.c:1519
#7  0x08166db8 in php_module_startup (sf=0x82ec200, additional_modules=0x0, 
    num_additional_modules=0)
    at /usr/ports/lang/php5/work/php-5.2.8/main/main.c:1843
#8  0x0823abf1 in php_cli_startup (sapi_module=0x82ec200)
    at /usr/ports/lang/php5/work/php-5.2.8/sapi/cli/php_cli.c:357
#9  0x0823b8a6 in main (argc=2, argv=0xbfbfeda8)
    at /usr/ports/lang/php5/work/php-5.2.8/sapi/cli/php_cli.c:716

Anybody pointers as to how to solve this issue ?


thanks
Saifi.


More information about the freebsd-questions mailing list