Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reproducible PHP process crash #121

Closed
david-garcia-garcia opened this issue Aug 3, 2016 · 4 comments
Closed

Reproducible PHP process crash #121

david-garcia-garcia opened this issue Aug 3, 2016 · 4 comments

Comments

@david-garcia-garcia
Copy link

Yesterday I closed Issue:

#63

because the repro script there worked as expected.

I soon found out that the same problem still happens on other scenarios, but it needed a new repro script as the original one had been fixed.

While building the repro script, I managed to build a script that crashes PHP.

See the script here:

http://pastebin.com/VENbce75

This is PHP 7.0.9 x64 on Windows with sqlsrv 4.1.0.0

This is the crash detail from the system event viewer:

Faulting application name: php-cgi.exe, version: 7.0.9.0, time stamp: 0x578fb9d9
Faulting module name: php7.dll, version: 7.0.9.0, time stamp: 0x578fc24b
Exception code: 0xc0000005
Fault offset: 0x00000000001f726a
Faulting process id: 0x3aa0
Faulting application start time: 0x01d1ed52c8dd0d3a
Faulting application path: D:\php_runtime\php764\php-cgi.exe
Faulting module path: D:\php_runtime\php764\php7.dll
Report Id: d4234854-d6ef-487f-b301-db4ecd4f9872
Faulting package full name:
Faulting package-relative application ID:

If I comment out the followin line from the repro script:

$pdo_options[PDO::ATTR_EMULATE_PREPARES] = TRUE;

then the crash goes away (there are other errors, but the focus of this post is the crash itself).

@ghost
Copy link

ghost commented Aug 3, 2016

Having the same problem here, when disable ATTR_EMULATE_PREPARES the crash goes away.

@meet-bhagdev
Copy link
Contributor

@david-garcia-garcia thanks for the repro script. Let us emulate it and understand what is causing the crash. We will keep you posted.

@meet-bhagdev
Copy link
Contributor

@david-garcia-garcia @Rvdv87 : We believe we closed this issue with our latest release https://github.com/Azure/msphpsql/releases. Can you help us validate?

@david-garcia-garcia
Copy link
Author

Fixed! Thanks, now I can go back to the original issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants