php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71128 iconv generates Bus error
Submitted: 2015-12-15 15:11 UTC Modified: 2015-12-16 09:19 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: erwin at houtsmabedrijfsadvies dot nl Assigned:
Status: Closed Package: ICONV related
PHP Version: 7.0.0 OS: FreeBSD 10.2-RELEASE-p7
Private report: No CVE-ID: None
 [2015-12-15 15:11 UTC] erwin at houtsmabedrijfsadvies dot nl
Description:
------------
I've build PHP7.0.0 from the releases, as well as 7.0.1RC1 to test my sites before upgrading. One of the issues I encountered was the fact that when I use the iconv functions, it crashes the script with a Bus error (core dumped).

iconv is running fine. Both through the command line as well as with PHP5.6.16.

Running the testscript on 7.0.0 or 7.0.1RC1 exits with:
Bus error (core dumped)

In PHP5.6.16 it returns the following response:              
瑥獴獴物湧



Test script:
---------------
<?php 
echo iconv('UTF-16', 'UTF-8', 'teststring');
?>

Expected result:
----------------
瑥獴獴物湧

Actual result:
--------------
Bus error (core dumped)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-12-15 19:38 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2015-12-15 19:38 UTC] ab@php.net
Could you please manage to post a backtrace https://bugs.php.net/bugs-generating-backtrace.php? My Linux and Windows builds don't crash with your repro case.

Thanks.
 [2015-12-16 09:19 UTC] erwin at houtsmabedrijfsadvies dot nl
-Status: Feedback +Status: Closed
 [2015-12-16 09:19 UTC] erwin at houtsmabedrijfsadvies dot nl
My apologies for this bugreport. I recompiled the PHP7.0.1RC1 and it is working fine now. Don't know what went wrong, but now it's working fine. 

Apperantly I made an error in the configure arguments.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 04:01:31 2024 UTC