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

From: Date: Thu, 10 Mar 2016 17:13:12 +0000
Subject: Bug #68166 [Com]: Exception with invalid character causes segfault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-199741@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
 Comment by:         nauruhn at autoaid dot de
 Reported by:        sjon at hortensius dot net
 Summary:            Exception with invalid character causes segfault
 Status:             Closed
 Type:               Bug
 Package:            Reproducible crash
 Operating System:   archlinux
 PHP Version:        5.6.1
 Block user comment: N
 Private report:     N

 New Comment:

Getting same error in 5.6.17-0+deb8u1.

Environment
------------
System: Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u4 (2016-02-29) x86_64

PHP: PHP Version 5.6.17-0+deb8u1
PHP Modules:
/etc/php5/apache2/conf.d/05-apcu.ini, /etc/php5/apache2/conf.d/05-opcache.ini,
/etc/php5/apache2/conf.d/10-mysqlnd.ini, /etc/php5/apache2/conf.d/10-pdo.ini,
/etc/php5/apache2/conf.d/20-apcu.ini, /etc/php5/apache2/conf.d/20-curl.ini,
/etc/php5/apache2/conf.d/20-imagick.ini, /etc/php5/apache2/conf.d/20-intl.ini,
/etc/php5/apache2/conf.d/20-json.ini, /etc/php5/apache2/conf.d/20-mcrypt.ini,
/etc/php5/apache2/conf.d/20-mysql.ini, /etc/php5/apache2/conf.d/20-mysqli.ini,
/etc/php5/apache2/conf.d/20-pdo_mysql.ini, /etc/php5/apache2/conf.d/20-readline.ini,
/etc/php5/apache2/conf.d/20-twig.ini, /etc/php5/apache2/conf.d/20-xdebug.ini

Default Charset: UTF-8

Apache: Apache/2.4.10 (Debian)
Apache Modules: 
core mod_so mod_watchdog http_core mod_log_config mod_logio mod_version mod_unixd mod_access_compat
mod_alias mod_auth_basic mod_authn_core mod_authn_file mod_authz_core mod_authz_host mod_authz_user
mod_autoindex mod_cgi mod_deflate mod_dir mod_env mod_fcgid mod_filter mod_headers mod_mime prefork
mod_negotiation mod_php5 mod_proxy mod_proxy_fcgi mod_rewrite mod_setenvif mod_socache_shmcb mod_ssl
mod_status



Test
------------
<?php

throw new Exception(iconv(ini_get('default_charset'), 'ISO-8859-1',
'ß'));


Apache Log
------------
[Thu Mar 10 17:06:32.162353 2016] [core:notice] [pid 865] AH00052: child pid 2033 exit signal
Segmentation fault (11)


Previous Comments:
------------------------------------------------------------------------
[2015-02-22 20:55:41] bukka@php.net

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

------------------------------------------------------------------------
[2015-02-22 20:55:40] bukka@php.net

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

------------------------------------------------------------------------
[2015-02-22 20:36:00] bukka@php.net

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

------------------------------------------------------------------------
[2015-02-22 16:27:52] rasmus@php.net

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

------------------------------------------------------------------------
[2015-02-22 16:27:36] rasmus@php.net

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

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


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 (#199741) next »