From: clewis at myfonts dot com
Operating system: RedHat Enterprise 3
PHP version: 5.0.3
PHP Bug Type: Reproducible crash
Bug description: mb_get_info causes seg fault
Description:
------------
Calling the mb_get_info() function causes segmentation fault. This
happens both as Apache module and CLI.
The other mb_* functions work fine, it's just the info that causes a
problem.
Compiled with:
'./configure' '--prefix=/usr/local' '--with-apache=../apache'
'--with-mysql=/usr/local/mysql' '--with-curl=/usr/local' '--with-gd'
'--with-mcrypt=/usr/local' '--enable-mbstring' '--with-zlib'
'--with-iconv' '--with-pspell=/usr/local' '--with-curlwrappers'
'--enable-soap' '--with-libxml-dir=/usr/local' '--without-sqlite'
Reproduce code:
---------------
<?php
var_dump(mb_get_info());
?>
Expected result:
----------------
Multi-byte string library info.
Actual result:
--------------
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1218546240 (LWP 11950)]
0x00aa7f38 in strcasecmp () from /lib/tls/libc.so.6
(gdb) bt
#0 0x00aa7f38 in strcasecmp () from /lib/tls/libc.so.6
#1 0x080b9f0d in zif_mb_get_info (ht=0, return_value=0xb62898,
this_ptr=0x0,
return_value_used=1) at
/usr/local/src/currentstuff/php-5.0.3/ext/mbstring/mbstring.c:3219
#2 0x081d04d6 in zend_do_fcall_common_helper (execute_data=0xbfffb150,
opline=0x9d69d9c,
op_array=0x9d65c4c) at
/usr/local/src/currentstuff/php-5.0.3/Zend/zend_execute.c:2711
#3 0x081cdad2 in execute (op_array=0x9d65c4c)
at /usr/local/src/currentstuff/php-5.0.3/Zend/zend_execute.c:1400
#4 0x081b3c77 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
at /usr/local/src/currentstuff/php-5.0.3/Zend/zend.c:1069
#5 0x08186a73 in php_execute_script (primary_file=0xbfffd510)
at /usr/local/src/currentstuff/php-5.0.3/main/main.c:1628
#6 0x081d6c64 in main (argc=2, argv=0xbfffd5d4)
at /usr/local/src/currentstuff/php-5.0.3/sapi/cli/php_cli.c:943
--
Edit bug report at http://bugs.php.net/?id=31732&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31732&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=31732&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=31732&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31732&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31732&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31732&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31732&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31732&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31732&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31732&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=31732&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=31732&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31732&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31732&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31732&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31732&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31732&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31732&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31732&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31732&r=mysqlcfg