Bug #71128 [Opn->Fbk]: iconv generates Bus error

From: Date: Tue, 15 Dec 2015 19:38:58 +0000
Subject: Bug #71128 [Opn->Fbk]: iconv generates Bus error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-197914@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71128&edit=1

 ID:                 71128
 Updated by:         ab@php.net
 Reported by:        erwin at houtsmabedrijfsadvies dot nl
 Summary:            iconv generates Bus error
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            ICONV related
 Operating System:   FreeBSD 10.2-RELEASE-p7
 PHP Version:        7.0.0
 Block user comment: N
 Private report:     N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[2015-12-15 15:11:54] 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)


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=71128&edit=1


Thread (3 messages)

« previous php.bugs (#197914) next »