Bug 176573 - iconv is crashing in nroff
Summary: iconv is crashing in nroff
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: rawhide
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL:
Whiteboard:
: 176583 177124 177126 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-12-26 21:04 UTC by Sammy
Modified: 2007-11-30 22:11 UTC (History)
3 users (show)

Fixed In Version: 2.3.90-25
Clone Of:
Environment:
Last Closed: 2006-01-03 07:45:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Sammy 2005-12-26 21:04:32 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8) Gecko/20051216 Fedora/1.5-3 Firefox/1.5

Description of problem:
When running man command iconv is segfaulting in nroff script. For example
if I try execute the command on manpage of man command:

# nroff -mandoc man.1
/usr/bin/nroff: line 69: 17905 Done                    /usr/bin/iconv -f ${charset_in} -t utf-8 ${TMPFILE}
     17906                       | /usr/bin/groff -mtty-char -Tutf8 $opts 2>/dev/null
     17907 Segmentation fault      | /usr/bin/iconv -f utf-8 -t ${charset_out}//translit

The same command just outputs the formatted man page when working.

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

How reproducible:
Always

Steps to Reproduce:
1. Upgrade to latest rawhide
2. Get a uncompressed man page of something
3. execute nroff -mandoc something.1
  

Additional info:

Comment 1 Jakub Jelinek 2005-12-27 13:16:19 UTC
Can't reproduce, so you need to provide more details.
What locale are you using (say output from locale command is good enough),
what exact man page you can reproduce it on (attach to the bug report).


Comment 2 Sammy 2005-12-27 14:44:50 UTC
Hi,

Below is the output of locale. This happens on every man page.
Also, I am on x86_64. Also, my /etc/sysconfig/i18n file:

LANG="en_US"
SYSFONT="latarcyrheb-sun16"
SUPPORTED="en_US.UTF-8:en_US:en"

=============================================================
$ locale
LANG=en_US
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE="en_US"
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=


Comment 3 Sammy 2005-12-27 14:46:04 UTC
Hi,

Below is the output of locale. This happens on every man page.
Also, I am on x86_64. Also, my /etc/sysconfig/i18n file:

LANG="en_US"
SYSFONT="latarcyrheb-sun16"
SUPPORTED="en_US.UTF-8:en_US:en"

=============================================================
$ locale
LANG=en_US
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE="en_US"
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=

Comment 4 Sammy 2005-12-27 14:53:15 UTC
OK...playing around found that the following fixes it:

# cat i18n
LC_ALL="en_US.UTF-8"
LANG="en_US.UTF-8"
SUPPORTED="en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16"

I had changed this at some point to some other bug BUT I don't think iconv
should segfault with the above.

Comment 5 Ulrich Drepper 2005-12-29 00:46:18 UTC
*** Bug 176583 has been marked as a duplicate of this bug. ***

Comment 6 Ulrich Drepper 2005-12-29 00:48:04 UTC
Should be fixed in the next rawhide release by

2005-12-27  Jakub Jelinek  <jakub>

        * iconv/gconv_trans.c (__gconv_transliterate): Demangle step __fct
        before calling it.


Comment 7 Robert Scheck 2005-12-29 22:30:18 UTC
Okay, glibc-2.3.90-23 (built from Fedora CVS) just works for me - at least my 
bug reported in #176583 disappeared now.

Comment 8 Jakub Jelinek 2006-01-03 07:45:45 UTC
Today's rawhide will include glibc-2.3.90-25.

Comment 9 Jakub Jelinek 2006-01-06 16:43:05 UTC
*** Bug 177124 has been marked as a duplicate of this bug. ***

Comment 10 Jakub Jelinek 2006-01-06 16:43:46 UTC
*** Bug 177126 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.