Bug #68166 [NEW]: Exception with invalid character causes segfault
From: sjon at hortensius dot net
Operating system: archlinux
PHP version: 5.6.1
Package: Reproducible crash
Bug Type: Bug
Bug description:Exception with invalid character causes segfault
Description:
------------
Since 5.6; we have problems with segfaults that are reducible to a
single line.
Test script:
---------------
throw new Exception(iconv('utf-8', 'iso-8859-1', 'Ã'), 0);
Actual result:
--------------
child 13790 said into stderr: "[Mon Oct 6 15:39:37 2014] Script:
'/srv/crash.php'"
child 13790 said into stderr: "---------------------------------------"
child 13790 said into stderr: "/root/php/src/php-5.6.1/main/main.c(1166)
: Block 0x7fffd3054b78 status:"
child 13790 said into stderr: "Invalid pointer: ((size=0x0002b5a5) !=
(next.prev=0xd30800e800000000))"
child 13790 said into stderr: "Invalid pointer: ((prev=0x00000001) !=
(prev.size=0x0002b5a5))"
child 13790 said into stderr: "---------------------------------------"
child 13790 said into stderr: "/srv/crash.php(2) : Fatal error -
Uncaught exception 'Exception' with message '�' in /srv/crash.php:2"
child 13790 said into stderr: "Stack trace:"
child 13790 said into stderr: "#0 {main}"
child 13790 said into stderr: " thrown"
--
Edit bug report at https://bugs.php.net/bug.php?id=68166&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68166&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68166&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68166&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68166&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68166&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68166&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68166&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68166&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68166&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68166&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68166&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68166&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68166&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68166&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68166&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68166&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68166&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68166&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68166&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68166&r=mysqlcfg
Thread (13 messages)
- sjon at hortensius dot net
- sjon at hortensius dot netBug #68166 [Opn]: Exception with invalid character causes segfault
- bwoebi@php.netBug #68166 [Opn->Fbk]: Exception with invalid character causes segfault
- sjon at hortensius dot netBug #68166 [Com]: Exception with invalid character causes segfault
- sjon at hortensius dot netBug #68166 [Com]: Exception with invalid character causes segfault
- php-bugs at lists dot php dot netBug #68166 [Fbk->NoF]: Exception with invalid character causes segfault
- samuel_carriere at hotmail dot comBug #68166 [Com]: Exception with invalid character causes segfault
- requinix@php.netBug #68166 [NoF->ReO]: Exception with invalid character causes segfault
- rasmus@php.netBug #68166 [ReO]: Exception with invalid character causes segfault
- sjon at hortensius dot netBug #68166 [Com]: Exception with invalid character causes segfault
- rasmus@php.netBug #68166 [ReO->Csd]: Exception with invalid character causes segfault
- nauruhn at autoaid dot deBug #68166 [Com]: Exception with invalid character causes segfault
- theutzk at gmx dot deBug #68166 [Com]: Exception with invalid character causes segfault