From:             boro at fixel dot org
Operating system: Slackware Linux 10.0
PHP version:      4.3.8
PHP Bug Type:     IMAP related
Bug description:  When compiled with --with-imap and --with-recode, PHP crashes on 
startup

Description:
------------
PHP 4.3.8 segfaults when compiled with both --with-recode and --with-imap.
Leave out either one and PHP works fine. Used versions Recode 3.6 and
WU-imap 2004a.



Reproduce code:
---------------
Just compile PHP with configure options --with-imap --with-recode
--with-openssl, make and then try running sapi/cli/php.

Expected result:
----------------
PHP should not crash.

Actual result:
--------------
PHP crashes:

(gdb) run
Starting program: /usr/src/php-4.3.8/sapi/cli/php 

Program received signal SIGSEGV, Segmentation fault.
hash_lookup (hashtab=0x825b648, key=0xbffff470
"[EMAIL PROTECTED]@Ȏ%\bȎ%\b����\220�") at misc.c:296
296     {
(gdb) bt
#0  hash_lookup (hashtab=0x825b648, key=0xbffff470
"[EMAIL PROTECTED]@Ȏ%\bȎ%\b����\220�") at misc.c:296
#1  0x400943ec in find_alias (outer=0x825b4c8, name=0x4014aff1 "data",
find_type=13) at names.c:273
#2  0x40096018 in register_all_modules (outer=0x825b4c8) at outer.c:457
#3  0x40096768 in recode_new_outer (auto_abort=false) at outer.c:550
#4  0x080a6ebc in zm_startup_recode (type=1, module_number=5) at
/usr/src/php-4.3.8/ext/recode/recode.c:102
#5  0x0813d083 in zend_startup_module (module=0x8221c40) at
/usr/src/php-4.3.8/Zend/zend_API.c:1005
#6  0x08114ba9 in php_startup_extensions (ptr=0x822b910, count=13) at
/usr/src/php-4.3.8/main/main.c:1044
#7  0x0814b9d2 in php_startup_internal_extensions () at
main/internal_functions_cli.c:67
#8  0x08114f5a in php_module_startup (sf=0x6, additional_modules=0x0,
num_additional_modules=0)
    at /usr/src/php-4.3.8/main/main.c:1216
#9  0x0814ae65 in main (argc=1, argv=0xbffff784) at
/usr/src/php-4.3.8/sapi/cli/php_cli.c:576
(gdb) 

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

Reply via email to