#49716 [Fbk->Opn]: unable to fork using passthru, exec, system when executing page through iis
ID: 49716 User updated by: jbreiding at Hotmail dot com Reported By: jbreiding at Hotmail dot com -Status: Feedback +Status: Open Bug Type: IIS related Operating System: windows server 2008 x64 PHP Version: 5.3.0 Assigned To: pajoye New Comment: unfortunately this is a production system now and i cannot test this at the moment. i was hoping others had stumbled across this problem. my future plans are just to move this entire system to a redhat box. Previous Comments: [2009-09-29 21:09:32] paj...@php.net Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ [2009-09-29 20:54:10] jbreiding at Hotmail dot com Description: i am no longer running this configuration as i found that moving back to 5.2.11 solved this problem. php 5.3.2 (x86 fastcgi) windows server 2k8 (x64) I have spent a good few days googling around and trying things so let me give you the current state. cmd.exe copied to php folder, all instances of cmd.exe, including syswow64, given read execute permissions to domain users, local users, iis_iusrs, network service in addition to the defaults from my users command prompt i can execute php c:\inetpub\wwwroot\forktest.php, as well the same with php-cgi -f c:\inetpub\wwwroot\forktest.php system() is giving a return_val of -1 in procmon.exe i can actually see the create call succeed. the application being executed has also been given the same permissions as cmd.exe, however it is not in the php folder but the full path has been given. my application pool, default setup, runs under network service. here is a snippet that is failing from forktest.php output: Warning: system() [function.system]: Unable to fork [echo %PATH%] in C:\inetpub\wwwroot\forktest.php on line 25 return value is -1 output string is i went ahead and deleted the cmd.exe in my php folder and in procmon i am seeing exactly what should be happening, c:\windows\syswow64\cmd.exe. it seems my problem is actually executing cmd.exe, not the application i am attempting to execute. Reproduce code: --- -- Edit this bug report at http://bugs.php.net/?id=49716&edit=1
#49716 [NEW]: unable to fork using passthru, exec, system when executing page through iis
From: jbreiding at Hotmail dot com Operating system: windows server 2008 x64 PHP version: 5.3.0 PHP Bug Type: IIS related Bug description: unable to fork using passthru, exec, system when executing page through iis Description: i am no longer running this configuration as i found that moving back to 5.2.11 solved this problem. php 5.3.2 (x86 fastcgi) windows server 2k8 (x64) I have spent a good few days googling around and trying things so let me give you the current state. cmd.exe copied to php folder, all instances of cmd.exe, including syswow64, given read execute permissions to domain users, local users, iis_iusrs, network service in addition to the defaults from my users command prompt i can execute php c:\inetpub\wwwroot\forktest.php, as well the same with php-cgi -f c:\inetpub\wwwroot\forktest.php system() is giving a return_val of -1 in procmon.exe i can actually see the create call succeed. the application being executed has also been given the same permissions as cmd.exe, however it is not in the php folder but the full path has been given. my application pool, default setup, runs under network service. here is a snippet that is failing from forktest.php output: Warning: system() [function.system]: Unable to fork [echo %PATH%] in C:\inetpub\wwwroot\forktest.php on line 25 return value is -1 output string is i went ahead and deleted the cmd.exe in my php folder and in procmon i am seeing exactly what should be happening, c:\windows\syswow64\cmd.exe. it seems my problem is actually executing cmd.exe, not the application i am attempting to execute. Reproduce code: --- -- Edit bug report at http://bugs.php.net/?id=49716&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49716&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49716&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49716&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49716&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49716&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49716&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49716&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49716&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49716&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49716&r=support Expected behavior: http://bugs.php.net/fix.php?id=49716&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49716&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49716&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49716&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49716&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=49716&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49716&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49716&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49716&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49716&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49716&r=mysqlcfg
#49626 [Com]: Access violation in php.exe
ID: 49626 Comment by: jbreiding at hotmail dot com Reported By: jbreiding at hotmail dot com Status: Feedback Bug Type: Reproducible crash Operating System: windows server 2008 x64 PHP Version: 5.3.0 New Comment: looks like this was due to missing extensions that were referenced in the ini file. thanks for the help. shouldnt this have shown itself in a more helpful error? or at least died when the extension was attempting to load? Previous Comments: [2009-09-22 17:22:53] jbreiding at hotmail dot com ok that worked, here are my extensions below: [PHP_LDAP] extension=php_ldap.dll [PHP_MYSQL] extension=php_mysql.dll [PHP_PDO] extension=php_pdo.dll [PHP_PDO_MYSQL] extension=php_pdo_mysql.dll [PHP_CURL] extension=php_curl.dll [PHP_BZ2] extension=php_bz2.dll [PHP_FDF] extension=php_fdf.dll [PHP_MCRYPT] extension=php_mcrypt.dll [PHP_MHASH] extension=php_mhash.dll [PHP_SHMOP] extension=php_shmop.dll [PHP_ZIP] extension=php_zip.dll [PHP_GD2] extension=php_gd2.dll [PHP_OPENSSL] extension=php_openssl.dll [PHP_GETTEXT] extension=php_gettext.dll [2009-09-22 17:15:44] paj...@php.net Most likely yes, I can't reproduce it, no matter which SAPI I use. fastcgi, apache or CLI. Which one do you use? Can you try using CLI and then using your server without any extension loaded (no php.ini either, be sure that no php.ini are in windows\ or common directories). [2009-09-22 17:12:31] jbreiding at hotmail dot com nogo, same problem. am i possibly missing some configuration? [2009-09-22 16:56:57] paj...@php.net Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ [2009-09-22 16:41:25] jbreiding at hotmail dot com adding exception analysis from windbg: FAULTING_IP: php5ts!guess_timezone+20 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\date\php_date.c @ 843] 100f3d20 8b4204 mov eax,dword ptr [edx+4] EXCEPTION_RECORD: -- (.exr 0x) ExceptionAddress: 100f3d20 (php5ts!guess_timezone+0x0020) ExceptionCode: c005 (Access violation) ExceptionFlags: NumberParameters: 2 Parameter[0]: Parameter[1]: 180050ac Attempt to read from address 180050ac FAULTING_THREAD: 11a8 DEFAULT_BUCKET_ID: INVALID_POINTER_READ PROCESS_NAME: php.exe ERROR_CODE: (NTSTATUS) 0xc005 - The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s. EXCEPTION_CODE: (NTSTATUS) 0xc005 - The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s. EXCEPTION_PARAMETER1: EXCEPTION_PARAMETER2: 180050ac READ_ADDRESS: 180050ac FOLLOWUP_IP: php5ts!guess_timezone+20 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\date\php_date.c @ 843] 100f3d20 8b4204 mov eax,dword ptr [edx+4] NTGLOBALFLAG: 70 APPLICATION_VERIFIER_FLAGS: 0 PRIMARY_PROBLEM_CLASS: INVALID_POINTER_READ BUGCHECK_STR: APPLICATION_FAULT_INVALID_POINTER_READ LAST_CONTROL_TRANSFER: from 100f3f1e to 100f3d20 STACK_TEXT: 00c0f9e0 100f3f1e 0001 02ebfe68 0020 php5ts!guess_timezone+0x20 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\date\php_date.c @ 843] 00c0f9f0 100f4c1b 02ab1250 02ab1250 0003 php5ts!get_timezone_info+0x1e [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\date\php_date.c @ 928] 00c0fa00 100bda11 1036a294 000b 4ab8fb18 php5ts!php_format_date+0x1b [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\date\php_date.c @ 1179] 00c0fa2c 100be4e4 02c42850 02ab1250 00c0fa74 php5ts!php_log_err+0xa1 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\main.c @ 542] 00c0fa88 10002909 0020 1035b924 php5ts!php_error_cb+0x354 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\main.c @ 952] 00c0fad4 100be066 0020 1035b99c 02c42600 php5ts!zend_error+0x4d9 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\zend\zend.c @ 1020] 00c0fb20 100be0d3 10520bcf 0020 php5ts!php_verror+0x566 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\main.c @ 780] 00c0fb3c 101cd357 02ab1250 0020 php5ts!php_error_docref0+0x23 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\main.c @ 791] 00c0fb74 100c5825 02c4f398 0001 php5ts!php_load_extension+0x1e7 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\standard\dl.c @ 212] 00c0fb88 100a950c 02e536c0 02ab1250 000a php5ts!php_load_php_extension_cb+0x15 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\php_ini.c @ 330] 00c0fba0 100c6115 1054c7e8 100c5810 02ab1250 php5ts!zend_llist_apply+0x1c [d:\php-sdk\snap_5_3\vc
#49626 [Com]: Access violation in php.exe
ID: 49626 Comment by: jbreiding at hotmail dot com Reported By: jbreiding at hotmail dot com Status: Feedback Bug Type: Reproducible crash Operating System: windows server 2008 x64 PHP Version: 5.3.0 New Comment: ok that worked, here are my extensions below: [PHP_LDAP] extension=php_ldap.dll [PHP_MYSQL] extension=php_mysql.dll [PHP_PDO] extension=php_pdo.dll [PHP_PDO_MYSQL] extension=php_pdo_mysql.dll [PHP_CURL] extension=php_curl.dll [PHP_BZ2] extension=php_bz2.dll [PHP_FDF] extension=php_fdf.dll [PHP_MCRYPT] extension=php_mcrypt.dll [PHP_MHASH] extension=php_mhash.dll [PHP_SHMOP] extension=php_shmop.dll [PHP_ZIP] extension=php_zip.dll [PHP_GD2] extension=php_gd2.dll [PHP_OPENSSL] extension=php_openssl.dll [PHP_GETTEXT] extension=php_gettext.dll Previous Comments: [2009-09-22 17:15:44] paj...@php.net Most likely yes, I can't reproduce it, no matter which SAPI I use. fastcgi, apache or CLI. Which one do you use? Can you try using CLI and then using your server without any extension loaded (no php.ini either, be sure that no php.ini are in windows\ or common directories). [2009-09-22 17:12:31] jbreiding at hotmail dot com nogo, same problem. am i possibly missing some configuration? [2009-09-22 16:56:57] paj...@php.net Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ [2009-09-22 16:41:25] jbreiding at hotmail dot com adding exception analysis from windbg: FAULTING_IP: php5ts!guess_timezone+20 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\date\php_date.c @ 843] 100f3d20 8b4204 mov eax,dword ptr [edx+4] EXCEPTION_RECORD: -- (.exr 0x) ExceptionAddress: 100f3d20 (php5ts!guess_timezone+0x0020) ExceptionCode: c005 (Access violation) ExceptionFlags: NumberParameters: 2 Parameter[0]: Parameter[1]: 180050ac Attempt to read from address 180050ac FAULTING_THREAD: 11a8 DEFAULT_BUCKET_ID: INVALID_POINTER_READ PROCESS_NAME: php.exe ERROR_CODE: (NTSTATUS) 0xc005 - The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s. EXCEPTION_CODE: (NTSTATUS) 0xc005 - The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s. EXCEPTION_PARAMETER1: EXCEPTION_PARAMETER2: 180050ac READ_ADDRESS: 180050ac FOLLOWUP_IP: php5ts!guess_timezone+20 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\date\php_date.c @ 843] 100f3d20 8b4204 mov eax,dword ptr [edx+4] NTGLOBALFLAG: 70 APPLICATION_VERIFIER_FLAGS: 0 PRIMARY_PROBLEM_CLASS: INVALID_POINTER_READ BUGCHECK_STR: APPLICATION_FAULT_INVALID_POINTER_READ LAST_CONTROL_TRANSFER: from 100f3f1e to 100f3d20 STACK_TEXT: 00c0f9e0 100f3f1e 0001 02ebfe68 0020 php5ts!guess_timezone+0x20 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\date\php_date.c @ 843] 00c0f9f0 100f4c1b 02ab1250 02ab1250 0003 php5ts!get_timezone_info+0x1e [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\date\php_date.c @ 928] 00c0fa00 100bda11 1036a294 000b 4ab8fb18 php5ts!php_format_date+0x1b [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\date\php_date.c @ 1179] 00c0fa2c 100be4e4 02c42850 02ab1250 00c0fa74 php5ts!php_log_err+0xa1 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\main.c @ 542] 00c0fa88 10002909 0020 1035b924 php5ts!php_error_cb+0x354 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\main.c @ 952] 00c0fad4 100be066 0020 1035b99c 02c42600 php5ts!zend_error+0x4d9 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\zend\zend.c @ 1020] 00c0fb20 100be0d3 10520bcf 0020 php5ts!php_verror+0x566 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\main.c @ 780] 00c0fb3c 101cd357 02ab1250 0020 php5ts!php_error_docref0+0x23 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\main.c @ 791] 00c0fb74 100c5825 02c4f398 0001 php5ts!php_load_extension+0x1e7 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\standard\dl.c @ 212] 00c0fb88 100a950c 02e536c0 02ab1250 000a php5ts!php_load_php_extension_cb+0x15 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\php_ini.c @ 330] 00c0fba0 100c6115 1054c7e8 100c5810 02ab1250 php5ts!zend_llist_apply+0x1c [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\zend\zend_llist.c @ 193] 00c0fbc0 100c0d61 02ab1250 00c0fbf0 php5ts!php_ini_register_extensions+0x25 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\php_ini.c @ 720] 00c0fdc8 004014bf 00407010 php5ts!php_module_startup+0x8e1 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\main.c @ 1992] 00c0fdd8 00401cb3 004
#49626 [Com]: Access violation in php.exe
ID: 49626 Comment by: jbreiding at hotmail dot com Reported By: jbreiding at hotmail dot com Status: Feedback Bug Type: Reproducible crash Operating System: windows server 2008 x64 PHP Version: 5.3.0 New Comment: nogo, same problem. am i possibly missing some configuration? Previous Comments: [2009-09-22 16:56:57] paj...@php.net Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ [2009-09-22 16:41:25] jbreiding at hotmail dot com adding exception analysis from windbg: FAULTING_IP: php5ts!guess_timezone+20 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\date\php_date.c @ 843] 100f3d20 8b4204 mov eax,dword ptr [edx+4] EXCEPTION_RECORD: -- (.exr 0x) ExceptionAddress: 100f3d20 (php5ts!guess_timezone+0x0020) ExceptionCode: c005 (Access violation) ExceptionFlags: NumberParameters: 2 Parameter[0]: Parameter[1]: 180050ac Attempt to read from address 180050ac FAULTING_THREAD: 11a8 DEFAULT_BUCKET_ID: INVALID_POINTER_READ PROCESS_NAME: php.exe ERROR_CODE: (NTSTATUS) 0xc005 - The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s. EXCEPTION_CODE: (NTSTATUS) 0xc005 - The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s. EXCEPTION_PARAMETER1: EXCEPTION_PARAMETER2: 180050ac READ_ADDRESS: 180050ac FOLLOWUP_IP: php5ts!guess_timezone+20 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\date\php_date.c @ 843] 100f3d20 8b4204 mov eax,dword ptr [edx+4] NTGLOBALFLAG: 70 APPLICATION_VERIFIER_FLAGS: 0 PRIMARY_PROBLEM_CLASS: INVALID_POINTER_READ BUGCHECK_STR: APPLICATION_FAULT_INVALID_POINTER_READ LAST_CONTROL_TRANSFER: from 100f3f1e to 100f3d20 STACK_TEXT: 00c0f9e0 100f3f1e 0001 02ebfe68 0020 php5ts!guess_timezone+0x20 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\date\php_date.c @ 843] 00c0f9f0 100f4c1b 02ab1250 02ab1250 0003 php5ts!get_timezone_info+0x1e [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\date\php_date.c @ 928] 00c0fa00 100bda11 1036a294 000b 4ab8fb18 php5ts!php_format_date+0x1b [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\date\php_date.c @ 1179] 00c0fa2c 100be4e4 02c42850 02ab1250 00c0fa74 php5ts!php_log_err+0xa1 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\main.c @ 542] 00c0fa88 10002909 0020 1035b924 php5ts!php_error_cb+0x354 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\main.c @ 952] 00c0fad4 100be066 0020 1035b99c 02c42600 php5ts!zend_error+0x4d9 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\zend\zend.c @ 1020] 00c0fb20 100be0d3 10520bcf 0020 php5ts!php_verror+0x566 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\main.c @ 780] 00c0fb3c 101cd357 02ab1250 0020 php5ts!php_error_docref0+0x23 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\main.c @ 791] 00c0fb74 100c5825 02c4f398 0001 php5ts!php_load_extension+0x1e7 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\standard\dl.c @ 212] 00c0fb88 100a950c 02e536c0 02ab1250 000a php5ts!php_load_php_extension_cb+0x15 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\php_ini.c @ 330] 00c0fba0 100c6115 1054c7e8 100c5810 02ab1250 php5ts!zend_llist_apply+0x1c [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\zend\zend_llist.c @ 193] 00c0fbc0 100c0d61 02ab1250 00c0fbf0 php5ts!php_ini_register_extensions+0x25 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\php_ini.c @ 720] 00c0fdc8 004014bf 00407010 php5ts!php_module_startup+0x8e1 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\main.c @ 1992] 00c0fdd8 00401cb3 00407010 0040742c 0001 php!php_cli_startup+0xf [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\sapi\cli\php_cli.c @ 399] 00c0ff44 00402e5a 0002 02ab2f38 02ab1ac0 php!main+0x363 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\sapi\cli\php_cli.c @ 771] 00c0ff88 75f0eccb 7efde000 00c0ffd4 77c7d24d php!__tmainCRTStartup+0x10f [f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c @ 586] 00c0ff94 77c7d24d 7efde000 684dc29c kernel32!BaseThreadInitThunk+0xe 00c0ffd4 77c7d45f 00402fa2 7efde000 ntdll32!__RtlUserThreadStart+0x23 00c0ffec 00402fa2 7efde000 ntdll32!_RtlUserThreadStart+0x1b FAULTING_SOURCE_CODE: 839: { 840: char *env; 841: 842: /* Checking configure timezone */ > 843: if (DATEG(timezone) && (strlen(DATEG(timezone)) > 0)) { 844: return DATEG(timezone); 845: } 846: /* Check environment variable */ 847: env = getenv("TZ"); 848: if (env && *env && timelib_timezone_id_is_valid(env, tzdb)) { SYMB
#49626 [Com]: Access violation in php.exe
ID: 49626 Comment by: jbreiding at hotmail dot com Reported By: jbreiding at hotmail dot com Status: Open Bug Type: Reproducible crash Operating System: windows server 2008 x64 PHP Version: 5.3.0 New Comment: adding exception analysis from windbg: FAULTING_IP: php5ts!guess_timezone+20 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\date\php_date.c @ 843] 100f3d20 8b4204 mov eax,dword ptr [edx+4] EXCEPTION_RECORD: -- (.exr 0x) ExceptionAddress: 100f3d20 (php5ts!guess_timezone+0x0020) ExceptionCode: c005 (Access violation) ExceptionFlags: NumberParameters: 2 Parameter[0]: Parameter[1]: 180050ac Attempt to read from address 180050ac FAULTING_THREAD: 11a8 DEFAULT_BUCKET_ID: INVALID_POINTER_READ PROCESS_NAME: php.exe ERROR_CODE: (NTSTATUS) 0xc005 - The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s. EXCEPTION_CODE: (NTSTATUS) 0xc005 - The instruction at 0x%08lx referenced memory at 0x%08lx. The memory could not be %s. EXCEPTION_PARAMETER1: EXCEPTION_PARAMETER2: 180050ac READ_ADDRESS: 180050ac FOLLOWUP_IP: php5ts!guess_timezone+20 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\date\php_date.c @ 843] 100f3d20 8b4204 mov eax,dword ptr [edx+4] NTGLOBALFLAG: 70 APPLICATION_VERIFIER_FLAGS: 0 PRIMARY_PROBLEM_CLASS: INVALID_POINTER_READ BUGCHECK_STR: APPLICATION_FAULT_INVALID_POINTER_READ LAST_CONTROL_TRANSFER: from 100f3f1e to 100f3d20 STACK_TEXT: 00c0f9e0 100f3f1e 0001 02ebfe68 0020 php5ts!guess_timezone+0x20 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\date\php_date.c @ 843] 00c0f9f0 100f4c1b 02ab1250 02ab1250 0003 php5ts!get_timezone_info+0x1e [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\date\php_date.c @ 928] 00c0fa00 100bda11 1036a294 000b 4ab8fb18 php5ts!php_format_date+0x1b [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\date\php_date.c @ 1179] 00c0fa2c 100be4e4 02c42850 02ab1250 00c0fa74 php5ts!php_log_err+0xa1 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\main.c @ 542] 00c0fa88 10002909 0020 1035b924 php5ts!php_error_cb+0x354 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\main.c @ 952] 00c0fad4 100be066 0020 1035b99c 02c42600 php5ts!zend_error+0x4d9 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\zend\zend.c @ 1020] 00c0fb20 100be0d3 10520bcf 0020 php5ts!php_verror+0x566 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\main.c @ 780] 00c0fb3c 101cd357 02ab1250 0020 php5ts!php_error_docref0+0x23 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\main.c @ 791] 00c0fb74 100c5825 02c4f398 0001 php5ts!php_load_extension+0x1e7 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\standard\dl.c @ 212] 00c0fb88 100a950c 02e536c0 02ab1250 000a php5ts!php_load_php_extension_cb+0x15 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\php_ini.c @ 330] 00c0fba0 100c6115 1054c7e8 100c5810 02ab1250 php5ts!zend_llist_apply+0x1c [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\zend\zend_llist.c @ 193] 00c0fbc0 100c0d61 02ab1250 00c0fbf0 php5ts!php_ini_register_extensions+0x25 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\php_ini.c @ 720] 00c0fdc8 004014bf 00407010 php5ts!php_module_startup+0x8e1 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\main.c @ 1992] 00c0fdd8 00401cb3 00407010 0040742c 0001 php!php_cli_startup+0xf [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\sapi\cli\php_cli.c @ 399] 00c0ff44 00402e5a 0002 02ab2f38 02ab1ac0 php!main+0x363 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\sapi\cli\php_cli.c @ 771] 00c0ff88 75f0eccb 7efde000 00c0ffd4 77c7d24d php!__tmainCRTStartup+0x10f [f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c @ 586] 00c0ff94 77c7d24d 7efde000 684dc29c kernel32!BaseThreadInitThunk+0xe 00c0ffd4 77c7d45f 00402fa2 7efde000 ntdll32!__RtlUserThreadStart+0x23 00c0ffec 00402fa2 7efde000 ntdll32!_RtlUserThreadStart+0x1b FAULTING_SOURCE_CODE: 839: { 840: char *env; 841: 842: /* Checking configure timezone */ > 843: if (DATEG(timezone) && (strlen(DATEG(timezone)) > 0)) { 844: return DATEG(timezone); 845: } 846: /* Check environment variable */ 847: env = getenv("TZ"); 848: if (env && *env && timelib_timezone_id_is_valid(env, tzdb)) { SYMBOL_STACK_INDEX: 0 SYMBOL_NAME: php5ts!guess_timezone+20 FOLLOWUP_NAME: MachineOwner MODULE_NAME: php5ts IMAGE_NAME: php5ts.dll DEBUG_FLR_IMAGE_TIMESTAMP: 4a4929bb STACK_COMMAND: ~0s ; kb FAILURE_BUCKET_ID: INVALID_POINTER_READ_c005_php5ts.dll!guess_timezone BUCKET_ID: X64_APPLICATION_FAULT_INVALID_POINTER_READ_php5ts!guess_timezone+20 WATSON_IBUCKET: 1347127945 WATSON_IBUCKETTABLE: 1 WATSON_STAGEONE_URL: http://watson.microso
#49626 [NEW]: Access violation in php.exe
From: jbreiding at hotmail dot com Operating system: windows server 2008 x64 PHP version: 5.3.0 PHP Bug Type: Reproducible crash Bug description: Access violation in php.exe Description: (b64.11a8): Access violation - code c005 (first chance) First chance exceptions are reported before any exception handling. This exception may be expected and handled. php5ts!guess_timezone+0x20: 100f3d20 8b4204 mov eax,dword ptr [edx+4] ds:002b:180050ac= Reproduce code: --- Expected result: phpinfo output Actual result: -- call stack: 00c0f9e0 100f3f1e 0001 02ebfe68 0020 php5ts!guess_timezone+0x20 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\date\php_date.c @ 843] 00c0f9f0 100f4c1b 02ab1250 02ab1250 0003 php5ts!get_timezone_info+0x1e [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\date\php_date.c @ 928] 00c0fa00 100bda11 1036a294 000b 4ab8fb18 php5ts!php_format_date+0x1b [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\date\php_date.c @ 1179] 00c0fa2c 100be4e4 02c42850 02ab1250 00c0fa74 php5ts!php_log_err+0xa1 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\main.c @ 542] 00c0fa88 10002909 0020 1035b924 php5ts!php_error_cb+0x354 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\main.c @ 952] 00c0fad4 100be066 0020 1035b99c 02c42600 php5ts!zend_error+0x4d9 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\zend\zend.c @ 1020] 00c0fb20 100be0d3 10520bcf 0020 php5ts!php_verror+0x566 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\main.c @ 780] 00c0fb3c 101cd357 02ab1250 0020 php5ts!php_error_docref0+0x23 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\main.c @ 791] 00c0fb74 100c5825 02c4f398 0001 php5ts!php_load_extension+0x1e7 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\ext\standard\dl.c @ 212] 00c0fb88 100a950c 02e536c0 02ab1250 000a php5ts!php_load_php_extension_cb+0x15 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\php_ini.c @ 330] 00c0fba0 100c6115 1054c7e8 100c5810 02ab1250 php5ts!zend_llist_apply+0x1c [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\zend\zend_llist.c @ 193] 00c0fbc0 100c0d61 02ab1250 00c0fbf0 php5ts!php_ini_register_extensions+0x25 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\php_ini.c @ 720] 00c0fdc8 004014bf 00407010 php5ts!php_module_startup+0x8e1 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\main\main.c @ 1992] 00c0fdd8 00401cb3 00407010 0040742c 0001 php!php_cli_startup+0xf [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\sapi\cli\php_cli.c @ 399] 00c0ff44 00402e5a 0002 02ab2f38 02ab1ac0 php!main+0x363 [d:\php-sdk\snap_5_3\vc9\x86\php-5.3.0\sapi\cli\php_cli.c @ 771] 00c0ff88 75f0eccb 7efde000 00c0ffd4 77c7d24d php!__tmainCRTStartup+0x10f [f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c @ 586] 00c0ff94 77c7d24d 7efde000 684dc29c kernel32!BaseThreadInitThunk+0xe 00c0ffd4 77c7d45f 00402fa2 7efde000 ntdll32!__RtlUserThreadStart+0x23 00c0ffec 00402fa2 7efde000 ntdll32!_RtlUserThreadStart+0x1b -- Edit bug report at http://bugs.php.net/?id=49626&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49626&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49626&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49626&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49626&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49626&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49626&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49626&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49626&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49626&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49626&r=support Expected behavior: http://bugs.php.net/fix.php?id=49626&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49626&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49626&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49626&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49626&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=49626&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49626&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49626&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49626&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49626&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49626&r=mysqlcfg