Bug #68166 [NEW]: Exception with invalid character causes segfault

From: Date: Mon, 06 Oct 2014 13:47:57 +0000
Subject: Bug #68166 [NEW]: Exception with invalid character causes segfault
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187885@lists.php.net to get a copy of this message
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)

« previous php.bugs (#187885) next »