Bug #68166 [ReO->Csd]: Exception with invalid character causes segfault

From: Date: Sun, 22 Feb 2015 16:27:37 +0000
Subject: Bug #68166 [ReO->Csd]: Exception with invalid character causes segfault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190892@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68166&edit=1

 ID:                 68166
 Updated by:         rasmus@php.net
 Reported by:        sjon at hortensius dot net
 Summary:            Exception with invalid character causes segfault
-Status:             Re-Opened
+Status:             Closed
 Type:               Bug
 Package:            Reproducible crash
 Operating System:   archlinux
 PHP Version:        5.6.1
 Block user comment: N
 Private report:     N

 New Comment:

Automatic comment on behalf of rasmus@lerdorf.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=a9ba407ce16809a2a70724bcd481b64ba8bd550b
Log: Fix bug #68166 We can't always efree here php_escape_html_entities can return an
interned_empty_string


Previous Comments:
------------------------------------------------------------------------
[2015-02-22 10:18:43] sjon at hortensius dot net

@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

------------------------------------------------------------------------
[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)

------------------------------------------------------------------------


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)

« previous php.bugs (#190892) next »