Bug #72198 [Com]: PHP built with libconv crashes after iconv() is called
| From: | phpbugs dot ooglek at 0sg dot net | Date: | Thu, 09 May 2019 18:39:05 +0000 |
| Subject: | Bug #72198 [Com]: PHP built with libconv crashes after iconv() is called | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-220803@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72198&edit=1
ID: 72198
Comment by: phpbugs dot ooglek at 0sg dot net
Reported by: marcelo at tpn dot com dot br
Summary: PHP built with libconv crashes after iconv() is
called
Status: Open
Type: Bug
Package: Reproducible crash
Operating System: FreeBSD 10.3
PHP Version: 7.0.6
Block user comment: N
Private report: N
New Comment:
I am experiencing this on FreeBSD 12.0-RELEASE-p3 compiling PHP 7.3.5 from source using
--with-iconv-dir=/usr/local
I've installed libiconv from ports but FreeBSD after 10-CURRENT on 2013-08-13 have iconv
installed as part of the OS. It may be that the configure script, regardless of the value of DIR
(/usr vs /usr/local) may pick up the port rather than the native library in
/usr/lib/i18n/libiconv_std.so.4 vs /usr/local/lib/libiconv.so.2.5.1
I've tried DIR as both /usr and /usr/local without luck, still get the bus error. I'm
going to dig a bit more to see if there is a lingering path issue in my environment, another
./configure var that will fix this on FreeBSD, or if another change is required.
It is still an issue when compiling PHP 7.3 from source on FreeBSD. Along with mysqli and mariadb,
but that's another bug. :-)
Previous Comments:
------------------------------------------------------------------------
[2018-09-30 16:25:04] cmb@php.net
> iconv implementation => libiconv
> [â¦]
> #0 0x00000008022700d1 in __bsd_iconv () from /lib/libc.so.7
This looks wrong.
------------------------------------------------------------------------
[2018-09-30 16:23:07] cmb@php.net
Related To: Bug #71304
------------------------------------------------------------------------
[2017-02-02 23:41:04] nti at w4w dot net
I've compiled phpXX-iconv with
CONFIGURE_ARGS+=--with-iconv=/usr/local
Now it works
------------------------------------------------------------------------
[2017-01-31 10:44:21] cmb@php.net
Related To: Bug #74014
------------------------------------------------------------------------
[2017-01-29 04:05:03] bmueller5 at yahoo dot com
Same Problem. PHP-FPM crashes on FreeBSD 10.3 with PHP 5.6.30 and 7.0.14 if iconv is called
bus error (core dumped) /usr/local/php56/bin/php -r 'echo iconv("UTF-8",
"UTF-8", "Hello, world.\n");
------------------------------------------------------------------------
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=72198
--
Edit this bug report at https://bugs.php.net/bug.php?id=72198&edit=1