Bug #66283 [NEW]: Segmentation fault
From: jan dot kahoun at heureka dot cz
Operating system: Centos 6.2
PHP version: 5.4.22
Package: MySQLi related
Bug Type: Bug
Bug description:Segmentation fault
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 bug report at https://bugs.php.net/bug.php?id=66283&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66283&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66283&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66283&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66283&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66283&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66283&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66283&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66283&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66283&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66283&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66283&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66283&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66283&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66283&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66283&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66283&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66283&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66283&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66283&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66283&r=mysqlcfg
Thread (14 messages)
- jan dot kahoun at heureka dot cz
- krakjoe@php.netBug #66283 [Opn->Fbk]: Segmentation fault
- jan dot kahoun at heureka dot czBug #66283 [Fbk->Opn]: Segmentation fault
- krakjoe@php.netBug #66283 [Opn->Fbk]: Segmentation fault
- jan dot kahoun at heureka dot czBug #66283 [Fbk->Opn]: Segmentation fault
- jan dot kahoun at heureka dot czBug #66283 [Com]: Segmentation fault
- laruence@php.netBug #66283 [Opn]: Segmentation fault
- laruence@php.netBug #66283 [Opn]: Segmentation fault
- jan dot kahoun at heureka dot czBug #66283 [Com]: Segmentation fault
- felipe@php.netBug #66283 [Opn->Asn]: Segmentation fault
- johannes@php.netBug #66283 [PATCH]: Segmentation fault
- johannes@php.netBug #66283 [Asn->Fbk]: Segmentation fault
- jan dot kahoun at heureka dot czBug #66283 [Com]: Segmentation fault
- johannes@php.netBug #66283 [Fbk->Csd]: Segmentation fault