Bug 177126

Summary: "/usr/bin/iconv -f utf-8 -t iso-8859-1//translit file" crashes
Product: [Fedora] Fedora Reporter: Ville Herva <v>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED DUPLICATE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-01-06 16:43:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ville Herva 2006-01-06 15:26:16 UTC
From Bugzilla Helper:
User-Agent: Opera/9.00 (X11; Linux i686; U; en)

Description of problem:
I can no longer view any man pages. I traced it down to 
running

cd /usr/share/man && (echo ".ll 13.6i"; echo ".nr LL 13.6i"; echo ".pl 1100i"; /
usr/bin/gunzip -c '/usr/share/man/man1/xine.1.gz'; echo ".\\\""; echo ".pl \n
(nlu+10") | /usr/bin/gtbl | /usr/bin/nroff -c --legacy ISO-8859-1 -mandoc 2>/dev
/null | iconv -f utf-8 -t latin1//translit | less

and "/usr/bin/nroff -c --legacy ISO-8859-1 -mandoc"
running

| /usr/bin/groff -mtty-char -Tutf8 $opts 2>/dev/null                 
| /usr/bin/iconv -f utf-8 -t ${charset_out}//translit

and "/usr/bin/iconv -f utf-8 -t ${charset_out}//translit" crashes.

Try
/usr/bin/iconv -f utf-8 -t iso-8859-1//translit file
with the attached file.

Under gdb, I get

Program received signal SIGSEGV, Segmentation fault.
                                                                      
0xdd86b36b in ?? ()
                                                                                                                                     

(gdb) bt
                                                                                                                                                
#0  0xdd86b36b in ?? ()
                                                                                                                             

#1  0x41b129d7 in __gconv_transliterate () from /lib/libc.so.6            
#2  0xb7d647ed in gconv () from /usr/lib/gconv/ISO8859-1.so
                                                                                             
#3  0x41b110d3 in __gconv_transform_utf8_internal () from /lib/libc.so.6
                       
#4  0x41b0bd03 in __gconv () from /lib/libc.so.6
                                                            
#5  0x41b0b33a in iconv () from /lib/libc.so.6
                                                
#6  0x08049b51 in ?? ()
                                                                                        

#7  0x08055c78 in ?? ()
                                                                                                                    

#8  0xbfbb8e4c in ?? ()
                                                                                   

#9  0xbfbb8e48 in ?? ()
                                                                                       

#10 0xbfbc0e54 in ?? ()
                                                                                                                                 

#11 0xbfbc0e50 in ?? ()
                                                                               
#12 0x08055c78 in ?? ()
                                                                                                                                 

#13 0xb7fbd000 in ?? ()
                                                                                                                                 

#14 0x00000000 in ?? ()
                                                                



Version-Release number of selected component (if applicable):
glibc-common-2.3.90-22

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.
  


Additional info:

I found out that I can workaround the original man(1) problem by changing

                                                 
  LC_CTYPE=fi_FI@euro
to
  LC_CTYPE=""

(which makes nroff not to execute the intermediate iconv step.)

Comment 1 Jakub Jelinek 2006-01-06 16:43:30 UTC

*** This bug has been marked as a duplicate of 176573 ***