Edit report at https://bugs.php.net/bug.php?id=49937&edit=1
ID: 49937
Updated by: php-bugs@lists.php.net
Reported by: basantk@php.net
Summary: [PATCH] Race condition in PDOStatement
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: PDO related
Operating System: Linux
PHP Version: 5.2.11
Assigned To: basantk
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2010-09-28 08:12:36] basantk@php.net
kkaminski, I am not sure why it is crashing but it seems to me that crash is happening at the same
place (pdo_stmt_construct). I can't help much unless I can reproduce it.
------------------------------------------------------------------------
[2010-09-23 08:34:34] kkaminski at itens dot pl
I confirm that basantk's patch fixes issue reported here.
But as I said before, I hit very similar problem in different place - PDOStatement::prepare. I think
it is related to queryString written in prepare().
basantk: I have patched correctly PHP's source, your new function does not show up in crash
dump, because prepare() does not use it.
Best regards
------------------------------------------------------------------------
[2010-09-23 01:11:13] basantk@php.net
The following patch has been added/updated:
Patch Name: pdo_race_condition_fix_53.patch
Revision: 1285197073
URL: http://bugs.php.net/patch-display.php?bug=49937&patch=pdo_race_condition_fix_53.patch&revision=1285197073
------------------------------------------------------------------------
[2010-09-23 01:06:58] basantk@php.net
kkaminski, I am not sure if you have applied the patch and compiled correctly. I have not seen the
crash after the fix. I had ran the benchmark test under stress for hours after this patch without
any issue. Also it has been confirmed by one of the olio user.
------------------------------------------------------------------------
[2010-09-21 15:12:55] pajoye@php.net
What's the status on this patch? Does it fix the issue shown in kkaminski at itens dot
pl's last backtrace?
Does it apply to 5.3 as well? If yes, please provide against 5.3+.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=49937--
Edit this bug report at https://bugs.php.net/bug.php?id=49937&edit=1