ID:               34307
 User updated by:  michael at zend dot com
 Reported By:      michael at zend dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         Reproducible crash
 Operating System: Linux x86
 PHP Version:      5.1.0RC1
 New Comment:

Backtrace:
--------------
(gdb) r -c ./ -q test.php 
Starting program: /home/michael/phprepos/php-5.1.0/sapi/cli/php -c ./
-q test.php

Program received signal SIGSEGV, Segmentation fault.
0x08101649 in _php_mb_encoding_handler_ex (info=0xbfffce40, arg=0x0,
res=0x8616854 "1")
    at /home/michael/phprepos/php-5.1.0/ext/mbstring/mb_gpc.c:223
223                     for (s2=info->separator; *s2 != '\0'; s2++) {
(gdb) bt
#0  0x08101649 in _php_mb_encoding_handler_ex (info=0xbfffce40,
arg=0x0, res=0x8616854 "1")
    at /home/michael/phprepos/php-5.1.0/ext/mbstring/mb_gpc.c:223
#1  0x080f9f67 in zif_mb_parse_str (ht=1, return_value=0x862336c,
return_value_ptr=0x0, this_ptr=0x0, return_value_used=0)
    at /home/michael/phprepos/php-5.1.0/ext/mbstring/mbstring.c:1396
#2  0x082f5bf9 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfffcf50) at zend_vm_execute.h:184
#3  0x082f8c09 in ZEND_DO_FCALL_SPEC_CONST_HANDLER
(execute_data=0xbfffcf50) at zend_vm_execute.h:1586
#4  0x082f587a in execute (op_array=0x8623bcc) at zend_vm_execute.h:87
#5  0x082caa35 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /home/michael/phprepos/php-5.1.0/Zend/zend.c:1078
#6  0x08280d98 in php_execute_script (primary_file=0xbffff3c0) at
/home/michael/phprepos/php-5.1.0/main/main.c:1672
#7  0x083430e4 in main (argc=5, argv=0xbffff494) at
/home/michael/phprepos/php-5.1.0/sapi/cli/php_cli.c:1039

Configuration:
----------------
'./configure' \
'--enable-mbstring' \
'--disable-cgi' \
'--enable-debug' \
'--without-pear'


Previous Comments:
------------------------------------------------------------------------

[2005-08-30 14:26:41] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


"configure line" and "backtrace" are missing

------------------------------------------------------------------------

[2005-08-30 14:24:12] michael at zend dot com

Description:
------------
mbstring crashes when arg_separator.input == ""

Reproduce code:
---------------
<?PHP
        mb_parse_str("1");
?>

Actual result:
--------------
[EMAIL PROTECTED] [~/phprepos/php-5.1.0]--> ./sapi/cli/php -c ./ -q
test.php
Segmentation fault

[EMAIL PROTECTED] [~/phprepos/php-5.1.0]--> cat php.ini
arg_separator.input=



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=34307&edit=1

Reply via email to