Bug #68166 [Com]: Exception with invalid character causes segfault
Edit report at https://bugs.php.net/bug.php?id=68166&edit=1
ID: 68166
Comment by: sjon at hortensius dot net
Reported by: sjon at hortensius dot net
Summary: Exception with invalid character causes segfault
Status: Re-Opened
Type: Bug
Package: Reproducible crash
Operating System: archlinux
PHP Version: 5.6.1
Block user comment: N
Private report: N
New Comment:
@samuel_carriere; are you also using fpm? I could never reproduce this through the cli, but fpm was
pretty consistent.
Even with the html-error set, it won't crash on 3v4l either (through cli): http://3v4l.org/fgplv
Previous Comments:
------------------------------------------------------------------------
[2015-02-22 01:34:41] rasmus@php.net
I still can't reproduce this.
I have this script:
<?php
ini_set('html_errors', true);
throw new Exception('société');
I have converted it to iso-8859-1:
$ file test.php
test.php: PHP script, ISO-8859 text
$ php test.php
<br />
<b>Fatal error</b>: in <b>/test/test.php</b> on line
<b>3</b><br />
It is also clean in Valgrind. Can you reproduce this in current releases of PHP 5.5 or 5.6 from the
command line?
------------------------------------------------------------------------
[2015-02-20 09:42:02] samuel_carriere at hotmail dot com
I reproduced this error with php5.6.0 and php5.6.5.
The bug occures only if html_errors is set to true, and the exception is displayed (not catched).
Test script (encoded in iso-8859-1) :
ini_set('html_errors', true);
throw new Exception('société');
------------------------------------------------------------------------
[2014-12-30 10:42:46] php-bugs at lists dot php dot net
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 "Re-Opened". Thank you.
------------------------------------------------------------------------
[2014-10-13 13:23:08] sjon at hortensius dot net
Also; please tail your error-log while testing this; I have confirmed the messages on 2 machines (1
of them it also outputs the exception, but also the exhausted message in the error-log)
------------------------------------------------------------------------
[2014-10-13 12:59:47] sjon at hortensius dot net
Could this depend on php-fpm somehow? That seems to be 100% broken here
------------------------------------------------------------------------
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=68166
--
Edit this bug report at https://bugs.php.net/bug.php?id=68166&edit=1
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