Bug #74014 [Com]: iconv crashes PHP on FreeBSD

From: Date: Wed, 12 Apr 2017 15:40:26 +0000
Subject: Bug #74014 [Com]: iconv crashes PHP on FreeBSD
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-208493@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
 Comment by:         ypnow at 163 dot com
 Reported by:        nti at w4w dot net
 Summary:            iconv crashes PHP on FreeBSD
 Status:             Closed
 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:

There is a patch can fix this problem for php-5.x, see: https://bugs.php.net/bug.php?id=72198

But not for php-7.x.

This bug only happend on FreeBSD, not for linux.


Previous Comments:
------------------------------------------------------------------------
[2017-02-02 23:38:01] nti at w4w dot net

I've installed multiple PHP versions with --prefix=/usr/local/phpXX

Under this circumstance libiconv seems not be correctly linked

With "CONFIGURE_ARGS+=--with-iconv=/usr/local"

it woks now

------------------------------------------------------------------------
[2017-01-31 21:50:50] nti at w4w dot net

Same bug here
https://bugs.php.net/bug.php?id=71374
https://bugs.php.net/bug.php?id=71304

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


Thread (5 messages)

« previous php.bugs (#208493) next »