Bug #75654 [Opn->Fbk]: PHP Crash Using PDO ODBC

From: Date: Wed, 13 Dec 2017 03:23:17 +0000
Subject: Bug #75654 [Opn->Fbk]: PHP Crash Using PDO ODBC
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213072@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75654&edit=1 ID: 75654 Updated by: kalle@php.net Reported by: conner dot panarella at teamson dot com Summary: PHP Crash Using PDO ODBC -Status: Open +Status: Feedback Type: Bug Package: Reproducible crash Operating System: Windows Server 2012 PHP Version: 7.2.0 Block user comment: N Private report: N New Comment: Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. Previous Comments: ------------------------------------------------------------------------ [2017-12-08 17:06:38] conner dot panarella at teamson dot com Description: ------------ If I made more than 1 request to the odbc database source using PDO, PHP crashes with the following backtrace: Actual result: -------------- Full Call Stack Function Arg 1 Arg 2 Arg 3 Arg 4 Source ntdll!RtlReportCriticalFailure+8c 202020200000e400 00007fff9bf4ed40 000000d6c9eb0000 006e006f00000000 ntdll!RtlpHeapHandleError+12 000000d6c9eb0000 0000000000000000 0000000000000000 2020202020202000 ntdll!RtlpLogHeapFailure+a4 000000d6c9eb0000 000000d6c9eb43b0 0000000000000000 0000000000000007 ntdll!RtlpAllocateHeap+1b22 000000d6c9eb0000 002e003200000002 0000000000001220 0000000000001230 ntdll!RtlAllocateHeap+17d 0000000000740072 000000d600000003 0000000000000ac2 0000000000000000 ntdll!RtlCreateProcessParametersEx+21c 000000d6c9d78db0 000000d6c9d79130 0000000000000000 0000010400000072 KERNELBASE!BasepCreateProcessParameters+189 0000000000000008 0000000000000001 0000000000000000 0000000000000208 KERNELBASE!CreateProcessInternalW+a4a 0000000000000000 000000000000022c 0000000000000026 00007fff67c648eb KERNELBASE!CreateProcessW+66 0000000000000000 0000000000000000 0000000000000360 00007fff67c88ce8 kernel32!CreateProcessWStub+53 000070b9fd335aaf 00790070006f0044 0000000000000000 0000000000000013 mscorwks!WszCreateProcess+10a 0000000000000000 0000000000000334 0072006100560000 00007fff67b33628 mscorwks!RunWatson+162 0000000000000004 000000d6cbc404d0 000000d688500000 0000000000000364 mscorwks!DoFaultReportWorker+79c 000000d6c9d7a898 0000000000000004 0000000000000000 000000000000022c mscorwks!DoFaultReport+9f 0000000000000000 00007fff6800e930 0000010400001000 0000000000020000 mscorwks!WatsonLastChance+47 0000000000000000 000000d6c5d70000 00007fff00000004 00007fff67c5069a mscorwks!UnmanagedToManagedCallFrame::ExceptionUnwind+25b 000000d6c9d7ab80 0000000000000001 0000002000001000 0000000001000000 mscorwks!InternalUnhandledExceptionFilter+29 0000000000000000 0000000000000001 0000000000000000 0000000000000001 KERNELBASE!UnhandledExceptionFilter+1a2 0000000000000000 00007fff99101dc0 0000000000000000 000000d6c9d7fa30 ntdll!RtlUserThreadStart$filt$0+3e 00007fff9bf4eb20 00007fff9be75e95 ffffffff00000000 00000000b12de70d ntdll!_C_specific_handler+96 0000000000000000 000000d6c9d7acf0 000000d6c9d7b7b0 000000d6c9d7b7b0 ntdll!RtlpExecuteHandlerForException+d 0000000000000001 00007fff9be20000 0000000000000000 00007fff9bf5409c ntdll!RtlDispatchException+197 0000000000000000 0000000000000000 000000d6cbd7219c 0000000000000000 ntdll!KiUserExceptionDispatch+3a 00007fff7203fb58 0000000000000001 00007fff720393cf 000000d6cbbf1001 msvcr120!strncpy+121 0000000000000001 00007fff720393cf 000000d6cbbf1001 00000000ffffffff f:\dd\vctools\crt\crtw32\string\amd64\strncpy.asm @ 138 S23DBC32!SQLFreeStmt+2138 000000d6cbd06050 000000d6c9d7bcd0 0000000000000001 0000000000000009 S23DBC32!SQLError+10ec 0000000000000001 000000d6cbd06050 0000000000000000 00007fff99e11d76 S23DBC32!SQLExecute+1ac 8000000000000000 00007fff72044680 0000000000000002 000000d6c9eaddd0 odbc32!SQLExecute+37e 000000d6cb86fca8 00007fff00000000 8000000000000000 0000000000000000 php_pdo_odbc!odbc_stmt_execute+39 0000000000000000 8000000000000000 000000d6cb8a6700 0000000000000000 c:\php-snap-build\php72\vc15\x64\php-7.2.0\ext\pdo_odbc\odbc_stmt.c @ 173 + e php7!zim_PDOStatement_execute+1fb 0000000000000000 8000000000000000 000000d6cb893a60 000000d6cb868fa8 c:\php-snap-build\php72\vc15\x64\php-7.2.0\ext\pdo\pdo_stmt.c @ 503 + 5 php7!ZEND_DO_FCALL_SPEC_RETVAL_UNUSED_HANDLER+14a 000000d6cb8a9850 00007fff723cf7f0 000000d6cb893a60 000000d6cb81d0c0 c:\php-snap-build\php72\vc15\x64\php-7.2.0\zend\zend_vm_execute.h @ 921 php7!execute_ex+80 00007fff723d8bb0 0000000000000000 000000d6cb87d2a0 0000000000000008 c:\php-snap-build\php72\vc15\x64\php-7.2.0\zend\zend_vm_execute.h @ 59726 + 5 php7!zend_execute+140 000000d6cb865360 000000d6c9d7ed70 0000000000000001 0000000000000008 c:\php-snap-build\php72\vc15\x64\php-7.2.0\zend\zend_vm_execute.h @ 63764 php7!zend_execute_scripts+a9 0000000000000008 0000000000000000 ffffffff00000000 0000000000000000 c:\php-snap-build\php72\vc15\x64\php-7.2.0\zend\zend.c @ 1497 php7!php_execute_script+33b 0000000000000001 0000000000000001 8000000000000000 000000d6cbb46ff8 c:\php-snap-build\php72\vc15\x64\php-7.2.0\main\main.c @ 2592 + 1b php!do_cli+a1f 0000000000000008 000000d6c9d7f930 0000000000000008 000000d6c9d7f930 c:\php-snap-build\php72\vc15\x64\php-7.2.0\sapi\cli\php_cli.c @ 1012 php!main+65e 00007ff6ce93b000 0000000000000000 00007fff737d59f4 00007ff6ce47e000 c:\php-snap-build\php72\vc15\x64\php-7.2.0\sapi\cli\php_cli.c @ 1404 + 11 php!__scrt_common_main_seh+11d 00007ff6ce93b090 00007ff6ce47e000 0000000000000000 0000000000000000 f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl @ 283 + 22 kernel32!BaseThreadInitThunk+22 00007fff99f213b0 0000000000000000 0000000000000000 0000000000000000 ntdll!RtlUserThreadStart+34 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75654&edit=1

« previous php.bugs (#213072) next »