|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-04-24 22:27 UTC] phpclub_ru at bougakov dot com
Description: ------------ PHP 4.4.3.3 from snaps.php.net (php4-STABLE-200604220230), as well as 'official' PHP 4.4.2 available in the 'Downloads' section of php.net crashes with the following message: ####################### cut here ################################# AppName: php.exe AppVer: 4.4.3.3 ModName: ntdll.dll ModVer: 5.1.2600.2180 Offset: 00010f2b Unhandled exception at 0x7c910f2b in php.exe: 0xC0000005: Access violation reading location 0x0009000d. ####################### / cut here ################################# My system is XP Home SP2, Apache 1.3.33 Bug reproduces all times when I open one PHP script (can't reproduce it here since it is a part of large obfuscated project of other developer; you can download it here: http://e2.ilyabirman.ru/download/e2_oranda_te_v1454_distr.zip, 126Kb). Doesn't reproduce on PHP 4.3.11. mod_php is affected as well as CGI version. Crash is caused by the wrong setting in php.ini: valid example: include_path = ".;c:/path/with/some/cyrillic/letters/" example that causes PHP to crash: include_path = "c:/path/with/some/cyrillic/letters/" Reproduce code: --------------- Code that demonstrates the crash: http://e2.ilyabirman.ru/download/e2_oranda_te_v1454_distr.zip, 126Kb Expected result: ---------------- PHP should report or just ignore the wrong setting, not to crash. Actual result: -------------- MS Visual Studio 2003 EA debugger displays the following: ####################### cut here ################################# malloc.c, line 212: #ifndef _WIN64 if (__active_heap != __SYSTEM_HEAP) size = (size + BYTES_PER_PARA - 1) & ~(BYTES_PER_PARA - 1); #endif /* _WIN64 */ return HeapAlloc(_crtheap, 0, size); } // <== THIS IS LINE 212 #else /* WINHEAP */ /* try to find a big enough free block */ ####################### / cut here ################################# Call stack: ####################### cut here ################################# --> ntdll.dll!7c910f2b() ntdll.dll!7c910d5c() php.exe!004024d9() php.exe!004024d9() php4ts.dll!100b68f0() php4ts.dll!100042fa() ntdll.dll!7c91056d() php4ts.dll!100b64ec() php4ts.dll!100c6810() php.exe!004024d9() php.exe!004024d9() php.exe!004024d9() php.exe!004024d9() php.exe!004024d9() php.exe!004024d9() php.exe!004024d9() php.exe!00402c6e() ntdll.dll!7c9106eb() > msvcr71.dll!_heap_alloc(unsigned int size=1) Line 212 C msvcr71.dll!_setargv() Line 143 C ####################### / cut here ################################# Autos: ####################### cut here ################################# _crtheap 0x00380000 void * size 1 unsigned int ####################### / cut here ################################# PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 15:00:01 2025 UTC |
STOP POSTING AUTOMATED REPLIES JUST FOR CHANGING BUGs STATUS FROM 'open', WITHOUT CARING TO READ IT FIRST! I can not generate backtrace: - the debug build from emini.dk is broken - it simply doesn't work - the source package from php.net (latest .bz2 file for version 4.4.2) doesn't compile - it breaks on c:\php\php-4.4.2\ext\pcre\pcrelib\pcre_internal.h(219) : fatal error C1189: #error : LINK_SIZE must be either 2, 3, or 4 Anyway the bug reproduces on two different machines with official PHP 4.4.2 binary from your website. Don't want to check it out for yourselves with the official binaries ("my version from some cvs works" is not the answer)? Then give me the sources that will compile, or compiled binary that actually runs.