php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52943 iconv call causes core dump
Submitted: 2010-09-28 21:08 UTC Modified: 2013-02-18 00:34 UTC
Votes:5
Avg. Score:4.6 ± 0.8
Reproduced:5 of 5 (100.0%)
Same Version:3 (60.0%)
Same OS:4 (80.0%)
From: tzhang at bankofcanada dot ca Assigned:
Status: No Feedback Package: ICONV related
PHP Version: 5.3.3 OS: Solaris 10
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tzhang at bankofcanada dot ca
New email:
PHP Version: OS:

 

 [2010-09-28 21:08 UTC] tzhang at bankofcanada dot ca
Description:
------------
I have PHP 5.3.3 and libiconv 1.13 on a Solaris machine.

When I run the following script. it coredumps.
The same script runs fine with PHP 5.2.6 and libiconv 1.11.

$ more test.php
<?php
$str = "économiques";
$str = iconv('UTF-8', 'UTF-8//IGNORE', $str);

print "$str\n";
?>


$php test.php
Segmentation Fault (core dumped)



Test script:
---------------
<?php
$str = "économiques";
$str = iconv('UTF-8', 'UTF-8//IGNORE', $str);

print "$str\n";
?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-09-29 03:47 UTC] felipe@php.net
-Status: Open +Status: Feedback
 [2010-09-29 03:47 UTC] felipe@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

I can't reproduce this.
 [2011-01-11 04:36 UTC] jack at gmail dot com
if you install with source code, before make, replace ext/iconv with same folder in PHP-5.2.0

succeeded in PHP-5.2.16 on solaris 10 sparc
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 22:01:31 2024 UTC