bug-gnu-libiconv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gnu-libiconv] RE: [rt.cpan.org #28850] Korean hanging CRITICAL


From: Letellier, Aldo
Subject: [bug-gnu-libiconv] RE: [rt.cpan.org #28850] Korean hanging CRITICAL
Date: Wed, 29 Aug 2007 18:43:00 -0400

Ok found something looks like Text::Iconv hangs at unicode_loop_convert
() from /usr/local/lib/libiconv.so.2
I'm now using GNU libiconv 1.11
Let me try compiling libiconv with debug optimizer

GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-pc-solaris2.10"...
(no debugging symbols found)
(gdb) set verbose 1
(gdb) run korean_t.pl
Starting program: /usr/bin/perl korean_t.pl
PR_SYSEXIT : Exit from a traced system call Exit from SYS_execve
PR_SYSEXIT : Exit from a traced system call Exit from SYS_execve
Reading symbols from /usr/lib/ld.so.1...(no debugging symbols
found)...done.
warning: Temporarily disabling breakpoints for unloaded shared library
"/usr/lib/ld.so.1"
Reading symbols from /lib/libsocket.so.1...(no debugging symbols
found)...done.
Reading symbols from /lib/libnsl.so.1...(no debugging symbols
found)...done.
Reading symbols from /lib/libdl.so.1...(no debugging symbols
found)...done.
Reading symbols from /lib/libm.so.2...
(no debugging symbols found)...done.
Reading symbols from /lib/libpthread.so.1...warning: Lowest section in
/lib/libpthread.so.1 is .dynamic at 00000074
(no debugging symbols found)...done.
Reading symbols from /lib/libc.so.1...(no debugging symbols
found)...done.
Reading symbols from /lib/ld.so.1...(no debugging symbols found)...done.
Reading symbols from
/usr/local/lib/perl5/5.8.8/i86pc-solaris-thread-multi/auto/IO/IO.so...
(no debugging symbols found)...done.
Reading symbols from
/usr/local/lib/perl5/5.8.8/i86pc-solaris-thread-multi/auto/Fcntl/Fcntl.s
o...(no debugging symbols found)...done.
Reading symbols from
/usr/local/lib/perl5/5.8.8/i86pc-solaris-thread-multi/auto/Storable/Stor
able.so...(no debugging symbols found)...done.
Reading symbols from
/usr/local/lib/perl5/5.8.8/i86pc-solaris-thread-multi/auto/POSIX/POSIX.s
o...(no debugging symbols found)...done.
Reading symbols from
/usr/local/lib/perl5/5.8.8/i86pc-solaris-thread-multi/auto/Encode/Encode
.so...
(no debugging symbols found)...done.
Reading symbols from
/usr/local/lib/perl5/5.8.8/i86pc-solaris-thread-multi/auto/Encode/Unicod
e/Unicode.so...(no debugging symbols found)...done.
Reading symbols from
/usr/local/lib/perl5/5.8.8/i86pc-solaris-thread-multi/auto/List/Util/Uti
l.so...(no debugging symbols found)...done.
Reading symbols from
/usr/local/lib/perl5/5.8.8/i86pc-solaris-thread-multi/auto/Encode/JP/JP.
so...(no debugging symbols found)...done.
Reading symbols from
/usr/local/lib/perl5/site_perl/5.8.8/i86pc-solaris-thread-multi/auto/Tex
t/Iconv/Iconv.so...
(no debugging symbols found)...done.
Reading symbols from /usr/local/lib/libiconv.so.2...(no debugging
symbols found)...done.
Reading symbols from /usr/local/lib/libgcc_s.so.1...done.
Reading symbols from
/usr/local/lib/perl5/5.8.8/i86pc-solaris-thread-multi/auto/File/Glob/Glo
b.so...done.

123456789:;<=>address@hidden
yz{|}
From: US-ASCII To: UTF-8
  Iconv OK
  
From: EUC-KR To: ISO-2022-KR
  Iconv OK




^CPR_SIGNALLED : Receipt of a traced signal SIGINT: Interrupt (rubout)


Program received signal SIGINT, Interrupt.
0xfe9f26b0 in unicode_loop_convert () from /usr/local/lib/libiconv.so.2
(gdb) 

-----Original Message-----
From: address@hidden via RT [mailto:address@hidden 
Sent: Wednesday, August 29, 2007 5:54 PM
To: address@hidden
Cc: address@hidden
Subject: Re: [rt.cpan.org #28850] Korean hanging CRITICAL


<URL: http://rt.cpan.org/Ticket/Display.html?id=28850 >

Hello,

If you want to show a bug in GNU libiconv, you need to show a C or C++
program that exhibits a behaviour that does not comply with the manual
pages.

> > Not supported EUC-KR to ISO-2022-KR
> > Iconv NOT OK
> > Unsupported conversion: Invalid argument at iconv_t.pl line 10.
> > Text::Iconv NOT OK
> > 
> > GNU libiconv supports the above conversion, while Sun's Iconv does
not.

This is well-known. On Solaris 10:

$ echo abc | /usr/bin/iconv -f EUC-KR -t ISO-2022-KR
Not supported EUC-KR to ISO-2022-KR
$ echo abc | /usr/bin/iconv -f EUC-KR -t UTF-8
abc
$ echo abc | /usr/bin/iconv -f UTF-8 -t ISO-2022-KR
abc

If you want to perform a conversion from EUC-KR to ISO-2022-KR, you
either need an iconv() implementation that supports it directly, such as
GNU libc iconv or GNU libiconv, or a utility code that converts via
UTF-8 if that is possible. For example you can use the 'striconveh'
module
from gnulib (it's under LGPL), see
   http://www.gnu.org/software/gnulib/MODULES.html#module%3Dstriconveh

Bruno






reply via email to

[Prev in Thread] Current Thread [Next in Thread]