Bug #66283 [Opn->Fbk]: Segmentation fault
| From: | krakjoe@php.net | Date: | Fri, 13 Dec 2013 18:14:24 +0000 |
| Subject: | Bug #66283 [Opn->Fbk]: Segmentation fault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-183321@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66283&edit=1
ID: 66283
Updated by: krakjoe@php.net
Reported by: jan dot kahoun at heureka dot cz
Summary: Segmentation fault
-Status: Open
+Status: Feedback
Type: Bug
Package: MySQLi related
Operating System: Centos 6.2
PHP Version: 5.4.22
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.
The reproduce script provided cannot be executed outside of your environment since it contains
custom code, you must provide a script that does not rely on code we cannot use, preferably a script
with no dependencies.
Previous Comments:
------------------------------------------------------------------------
[2013-12-13 10:05:22] jan dot kahoun at heureka dot cz
Modified test script is here http://codepad.org/asoU94b4
It will reproduce the bug. It is not easy to reporduce it, so I do not have shorter code now.
------------------------------------------------------------------------
[2013-12-13 09:27:26] krakjoe@php.net
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.
------------------------------------------------------------------------
[2013-12-13 08:41:20] jan dot kahoun at heureka dot cz
Description:
------------
Using mysqli and multi_query can sometimes lead to Segmentation fault when trying to free the
result.
Test script:
---------------
http://codepad.org/WNxylU8G
Expected result:
----------------
Just PHP Fatal error
Actual result:
--------------
PHP Fatal error: Allowed memory size of 96468992 bytes exhausted (tried to allocate 2 bytes) in
/home/web/index.php on line 45
PHP Stack trace:
PHP 1. {main}() /home/web/index.php:0
PHP 2. mysqli_result->free() /home/web/index.php:45
Fatal error: Allowed memory size of 96468992 bytes exhausted (tried to allocate 2 bytes) in
/home/web/index.php on line 45
Call Stack:
0.0002 239480 1. {main}() /home/web/index.php:0
0.5828 96413160 2. mysqli_result->free() /home/web/index.php:45
Segmentation fault (core dumped)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66283&edit=1