Bug #74014 [NEW]: iconv crashes PHP on FreeBSD
From: nti at w4w dot net
Operating system: FreeBSD 10.3
PHP version: 5.6.30
Package: Reproducible crash
Bug Type: Bug
Bug description:iconv crashes PHP on FreeBSD
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 bug report at https://bugs.php.net/bug.php?id=74014&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74014&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74014&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74014&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74014&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74014&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74014&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74014&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74014&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74014&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74014&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74014&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74014&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74014&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74014&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74014&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74014&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74014&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74014&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74014&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74014&r=mysqlcfg
Thread (5 messages)
- nti at w4w dot net