php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31732 mb_get_info causes seg fault
Submitted: 2005-01-28 01:23 UTC Modified: 2005-01-28 02:58 UTC
From: clewis at myfonts dot com Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 5.0.3 OS: RedHat Enterprise 3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: clewis at myfonts dot com
New email:
PHP Version: OS:

 

 [2005-01-28 01:23 UTC] clewis at myfonts dot com
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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-28 01:33 UTC] clewis at myfonts dot com
Only happens when no argument is given.  According to the manual, this case should behave as if the argument is 'all'.
 [2005-01-28 02:58 UTC] tony2001@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 12:01:29 2024 UTC