Bug #74014 [Dup]: iconv crashes PHP on FreeBSD
| From: | nti at w4w dot net | Date: | Tue, 31 Jan 2017 21:50:50 +0000 |
| Subject: | Bug #74014 [Dup]: iconv crashes PHP on FreeBSD | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-207080@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=74014&edit=1
ID: 74014
User updated by: nti at w4w dot net
Reported by: nti at w4w dot net
Summary: iconv crashes PHP on FreeBSD
Status: Duplicate
Type: Bug
Package: Reproducible crash
Operating System: FreeBSD 10.3
PHP Version: 5.6.30
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Same bug here
https://bugs.php.net/bug.php?id=71374
https://bugs.php.net/bug.php?id=71304
Previous Comments:
------------------------------------------------------------------------
[2017-01-31 10:44:21] cmb@php.net
Duplicate of bug #72198.
------------------------------------------------------------------------
[2017-01-30 13:05:32] nti at w4w dot net
Description:
------------
It's hard to find the reason for this crashes of php-fpm:
"exited on signal 10 (SIGBUS)"
on various circumstances. But's the iconv modul (php 5.6.30 and also 7.0.15) that causes this
on newer FreeBSD versions. Disabling the modul solves the problem.
On the cli you can reproduce the crash with
php -r 'echo iconv("UTF-8", "UTF-8", "Hello, world.\n");'
[1] 36583 bus error (core dumped) php -r 'echo iconv("UTF-8", "UTF-8",
"Hello, world.\n");
Bug 72198 also describes the problem but someone should do something because iconv is not useable on
FreeBSD at present.
Test script:
---------------
php -r 'echo iconv("UTF-8", "UTF-8", "Hello, world.\n");'
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74014&edit=1