php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61875 mbsring frequently crashing httpd.exe
Submitted: 2012-04-28 09:55 UTC Modified: 2013-02-18 00:35 UTC
Votes:4
Avg. Score:4.5 ± 0.5
Reproduced:4 of 4 (100.0%)
Same Version:1 (25.0%)
Same OS:3 (75.0%)
From: robertassaf1 at gmail dot com Assigned:
Status: No Feedback Package: Apache2 related
PHP Version: 5.3.11 OS: Windows 2003 R2 SP2 32bits
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2012-04-28 09:55 UTC] robertassaf1 at gmail dot com
Description:
------------
We are facing frequent httpd.exe crashes reported in Windows 2003 event manager.
It happens at least 4 to 10 times a day at random. The cause of the issue is unknown. 

The event manager reports the following: "Faulting application httpd.exe, version 2.2.21.0, faulting module php_mbstring.dll, version 5.3.10.0, fault address 0x0002c94c."



Test script:
---------------
Unfortunately we don't have any script to reproduce the issue as we don't know what is causing it.

Actual result:
--------------
Type of Analysis Performed   Crash Analysis 
Machine Name   INTRASRV1 
Operating System   Windows Server 2003 Service Pack 2 
Number Of Processors   4 
Process ID   3236 
Process Image   C:\wamp\bin\apache\apache2.2.21\bin\httpd.exe 
System Up-Time   9 day(s) 16:05:13 
Process Up-Time   1 day(s) 21:20:02 


Thread 107 - System ID 4544
Entry point   msvcr90!_threadstartex 
Create time   4/26/2012 9:44:34 AM 
Time spent in user mode   0 Days 0:0:51.890 
Time spent in kernel mode   0 Days 0:0:21.843 


Full Call Stack

Function     Arg 1     Arg 2     Arg 3     Arg 4   Source 
php_mbstring!node_new_str+c     375b82af     375b82b0     03a4e8e0     00000003   c:\php-sdk\snap_5_3\vc9\x86\php-5.3.11-ts\ext\mbstring\oniguruma\regparse.c @ 1463 + c 
php_mbstring!parse_exp+79a     00000000     03a4e940     375b8378     03a4e968   c:\php-sdk\snap_5_3\vc9\x86\php-5.3.11-ts\ext\mbstring\oniguruma\regparse.c @ 4835 + c 
php_mbstring!parse_branch+94     03a4e908     00000000     03a4e940     375b8378   c:\php-sdk\snap_5_3\vc9\x86\php-5.3.11-ts\ext\mbstring\oniguruma\regparse.c @ 5181 + 1d 
php_mbstring!parse_subexp+b2     05eff5b0     03a4e908     00000000     03a4e940   c:\php-sdk\snap_5_3\vc9\x86\php-5.3.11-ts\ext\mbstring\oniguruma\regparse.c @ 5223 + 12 
php_mbstring!onig_parse_make_tree+c1     03a4e958     375b82a0     375b8378     375b82b0   c:\php-sdk\snap_5_3\vc9\x86\php-5.3.11-ts\ext\mbstring\oniguruma\regparse.c @ 5279 + 3e 
php_mbstring!onig_compile+87     20074780     375b82a0     375b8378     03a4ea2c   c:\php-sdk\snap_5_3\vc9\x86\php-5.3.11-ts\ext\mbstring\oniguruma\regcomp.c @ 5169 
php_mbstring!onig_new+4c     03a4ea1c     375b82a0     375b8378     0000000d   c:\php-sdk\snap_5_3\vc9\x86\php-5.3.11-ts\ext\mbstring\oniguruma\regcomp.c @ 5399 + 14 
php_mbstring!php_mbregex_compile_pattern+ba     0000000d     01794440     00000001     16cb4568   c:\php-sdk\snap_5_3\vc9\x86\php-5.3.11-ts\ext\mbstring\php_mbregex.c @ 458 + 25 
php_mbstring!_php_mb_regex_ereg_replace_exec+239     00000003     00000001     00df756a     00000003   c:\php-sdk\snap_5_3\vc9\x86\php-5.3.11-ts\ext\mbstring\php_mbregex.c @ 857 + 27 
php_mbstring!zif_mb_eregi_replace+14     00000003     375b7fa0     00000000     00000000   c:\php-sdk\snap_5_3\vc9\x86\php-5.3.11-ts\ext\mbstring\php_mbregex.c @ 980 + 14 
php5ts!execute_internal+3a     12296958     00000001     16cd77d8     00000003   c:\php-sdk\snap_5_3\vc9\x86\php-5.3.11-ts\zend\zend_execute.c @ 1273 + 2c 
php_xdebug_2_1_2_5_3_vc9!get_module+205c     00000000     00000000     00000000     00000000    



Exception Information
PHP_MBSTRING!NODE_NEW_STR+CIn httpd__PID__3236__Date__04_28_2012__Time_07_04_35AM__700__First Chance Access Violation.dmp the assembly instruction at php_mbstring!node_new_str+c in c:\wamp\bin\php\php5.3.11\ext\php_mbstring.dll from The PHP Group has caused an access violation exception (0xC0000005) when trying to read from memory location 0x00000100 on thread 107


Module Information 
Image Name: c:\wamp\bin\php\php5.3.11\ext\php_mbstring.dll   Symbol Type:  PDB 
Base address: 0x00905a4d   Time Stamp:  Wed Apr 25 02:20:45 2012  
Checksum: 0x31000000   Comments:  Thanks to Tsukada Takuya, Rui Hirokawa 
COM DLL: False   Company Name:  The PHP Group 
ISAPIExtension: False   File Description:  Multibyte String Functions 
ISAPIFilter: False   File Version:  5.3.11 
Managed DLL: False   Internal Name:  MBSTRING extension 
VB DLL: False   Legal Copyright:  Copyright © 1997-2010 The PHP Group 
Loaded Image Name:  php_mbstring.dll   Legal Trademarks:  PHP 
Mapped Image Name:     Original filename:  php_mbstring.dll 
Module name:  php_mbstring   Private Build:   
Single Threaded:  False   Product Name:  PHP 
Module Size:  1.98 MBytes   Product Version:  5.3.11 
Symbol File Name:  c:\wamp\bin\php\php-debug-pack-5.3.11\php_mbstring.pdb   Special Build:  & 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-04-28 10:02 UTC] pajoye@php.net
Please try to increase the apache stack (httpd.conf or changing the binary default 
stack).
 [2012-04-28 10:02 UTC] pajoye@php.net
-Status: Open +Status: Feedback
 [2012-04-29 12:38 UTC] robertassaf1 at gmail dot com
Hello,

I increased the ThreadStackSize to 2097152 (2M) in httpd-mpm.conf but the error still occurs.

I tried also to increase the same parameter to 8M but Apache and PHP became unstable, athough the server is running on VMWare and has alot of memory (4 GB) it seems that the kernel for some reason is not fully using the memory allocated.

Regards,
Robert
 [2012-05-03 09:37 UTC] robertassaf1 at gmail dot com
I have increased the stack to 8MB but httpd.exe is still crashing on mbstring dll.

Thanks in advance
 [2013-02-18 00:35 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 03:01:29 2024 UTC