public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/2569] New: utf-16 iconv module breaks programs
@ 2006-04-13 13:27 maestromae at kateos dot org
  2006-04-13 16:23 ` [Bug libc/2569] " drepper at redhat dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: maestromae at kateos dot org @ 2006-04-13 13:27 UTC (permalink / raw)
  To: glibc-bugs

I've noticed the following problem using samba/xine-ui:

gconv_db.c:232: __gconv_release_step: Assertion `step->__end_fct == ((void *)0)'
failed.

This happens when utf-16 iconv module is loading.

The bug is easy to replicate - just try to run xine-ui.

# xine
This is xine (X11 gui) - a free video player v0.99.4.
(c) 2000-2004 The xine Team.
xine: gconv_db.c:232: __gconv_release_step: Assertion `step->__end_fct == ((void
*)0)' failed.
Aborted

-- 
           Summary: utf-16 iconv module breaks programs
           Product: glibc
           Version: 2.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: maestromae at kateos dot org
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: i486-kateos-linux
  GCC host triplet: i486-kateos-linux
GCC target triplet: i486-kateos-linux


http://sourceware.org/bugzilla/show_bug.cgi?id=2569

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/2569] utf-16 iconv module breaks programs
  2006-04-13 13:27 [Bug libc/2569] New: utf-16 iconv module breaks programs maestromae at kateos dot org
@ 2006-04-13 16:23 ` drepper at redhat dot com
  2006-04-19 21:47 ` decimal at us dot ibm dot com
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: drepper at redhat dot com @ 2006-04-13 16:23 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2006-04-13 16:23 -------
Send a self-contained test case.  Not some reference to a program with dubious
quality.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


http://sourceware.org/bugzilla/show_bug.cgi?id=2569

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/2569] utf-16 iconv module breaks programs
  2006-04-13 13:27 [Bug libc/2569] New: utf-16 iconv module breaks programs maestromae at kateos dot org
  2006-04-13 16:23 ` [Bug libc/2569] " drepper at redhat dot com
@ 2006-04-19 21:47 ` decimal at us dot ibm dot com
  2006-04-20  5:48 ` maestromae at kateos dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: decimal at us dot ibm dot com @ 2006-04-19 21:47 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From decimal at us dot ibm dot com  2006-04-19 21:47 -------
Do you have a usable testcase for this?

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2569

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/2569] utf-16 iconv module breaks programs
  2006-04-13 13:27 [Bug libc/2569] New: utf-16 iconv module breaks programs maestromae at kateos dot org
  2006-04-13 16:23 ` [Bug libc/2569] " drepper at redhat dot com
  2006-04-19 21:47 ` decimal at us dot ibm dot com
@ 2006-04-20  5:48 ` maestromae at kateos dot org
  2006-04-20 10:18 ` maestromae at kateos dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: maestromae at kateos dot org @ 2006-04-20  5:48 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From maestromae at kateos dot org  2006-04-20 05:48 -------
(In reply to comment #2)
> Do you have a usable testcase for this?

No, in all cases i've tested everything is fine. The problem must be elsewhere.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID


http://sourceware.org/bugzilla/show_bug.cgi?id=2569

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/2569] utf-16 iconv module breaks programs
  2006-04-13 13:27 [Bug libc/2569] New: utf-16 iconv module breaks programs maestromae at kateos dot org
                   ` (2 preceding siblings ...)
  2006-04-20  5:48 ` maestromae at kateos dot org
@ 2006-04-20 10:18 ` maestromae at kateos dot org
  2006-04-20 11:11 ` maestromae at kateos dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: maestromae at kateos dot org @ 2006-04-20 10:18 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From maestromae at kateos dot org  2006-04-20 10:18 -------
No idea where the bug is, but when i use libiconv xine works. Maybe my glibc
libraries are corrupted, but they works for most of programs (except of xine and
samba). Also iconv tool converts codepages well. I have no time to debug xine
and glibc. I found few persons on google
(http://www.google.pl/search?hl=pl&q=+gconv_db.c%3A232%3A&btnG=Szukaj&lr=) who
have the same problem, so  maybe someone else someday will try to resolve this
problem :) The same bug was reported on samba's bugzilla
(https://bugzilla.samba.org/show_bug.cgi?id=3084), but is not fixed till now.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2569

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/2569] utf-16 iconv module breaks programs
  2006-04-13 13:27 [Bug libc/2569] New: utf-16 iconv module breaks programs maestromae at kateos dot org
                   ` (3 preceding siblings ...)
  2006-04-20 10:18 ` maestromae at kateos dot org
@ 2006-04-20 11:11 ` maestromae at kateos dot org
  2006-04-24 17:56 ` drepper at redhat dot com
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: maestromae at kateos dot org @ 2006-04-20 11:11 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From maestromae at kateos dot org  2006-04-20 11:10 -------
Sorry guys, this is only samba issue. Xine samba plugin is linked with libsmbclient.

Sorry again. 

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2569

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/2569] utf-16 iconv module breaks programs
  2006-04-13 13:27 [Bug libc/2569] New: utf-16 iconv module breaks programs maestromae at kateos dot org
                   ` (4 preceding siblings ...)
  2006-04-20 11:11 ` maestromae at kateos dot org
@ 2006-04-24 17:56 ` drepper at redhat dot com
  2006-04-25 11:54 ` thkala at softlab dot ece dot ntua dot gr
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: drepper at redhat dot com @ 2006-04-24 17:56 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2006-04-24 17:56 -------
*** Bug 2597 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thkala at softlab dot ece
                   |                            |dot ntua dot gr


http://sourceware.org/bugzilla/show_bug.cgi?id=2569

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/2569] utf-16 iconv module breaks programs
  2006-04-13 13:27 [Bug libc/2569] New: utf-16 iconv module breaks programs maestromae at kateos dot org
                   ` (5 preceding siblings ...)
  2006-04-24 17:56 ` drepper at redhat dot com
@ 2006-04-25 11:54 ` thkala at softlab dot ece dot ntua dot gr
  2006-04-25 12:26 ` maestromae at kateos dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: thkala at softlab dot ece dot ntua dot gr @ 2006-04-25 11:54 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From thkala at softlab dot ece dot ntua dot gr  2006-04-25 11:54 -------
Ah, I managed to reproduce this with something much simpler than samba :-) :

#include <iconv.h>

int main() {
    iconv_t cd0, cd1;
    cd0 = iconv_open("ISO-8859-7", "UTF-16LE");
    cd1 = iconv_open("ISO-8859-7", "UTF-16LE");
    iconv_close(cd0);
    iconv_close(cd1);
    return 0;
}

It seems that opening two identical conversion descriptors is what triggers the
error. Is there any reason why two identical descriptors should not be allowed ?

Therefore I think that this is a glibc bug, after all. Perhaps reopening it is
in order ?

Regards,

Theodoros Kalamatianos


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2569

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/2569] utf-16 iconv module breaks programs
  2006-04-13 13:27 [Bug libc/2569] New: utf-16 iconv module breaks programs maestromae at kateos dot org
                   ` (6 preceding siblings ...)
  2006-04-25 11:54 ` thkala at softlab dot ece dot ntua dot gr
@ 2006-04-25 12:26 ` maestromae at kateos dot org
  2006-04-25 17:23 ` drepper at redhat dot com
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: maestromae at kateos dot org @ 2006-04-25 12:26 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From maestromae at kateos dot org  2006-04-25 12:26 -------
(In reply to comment #7)
> Ah, I managed to reproduce this with something much simpler than samba :-) :
> 
> #include <iconv.h>
> 
> int main() {
>     iconv_t cd0, cd1;
>     cd0 = iconv_open("ISO-8859-7", "UTF-16LE");
>     cd1 = iconv_open("ISO-8859-7", "UTF-16LE");
>     iconv_close(cd0);
>     iconv_close(cd1);
>     return 0;
> }
> 
> It seems that opening two identical conversion descriptors is what triggers the
> error. Is there any reason why two identical descriptors should not be allowed ?
> 
> Therefore I think that this is a glibc bug, after all. Perhaps reopening it is
> in order ?


I confirm that on my system this code reproduces the bug. In my opinion this
code should work, so i will reopen this bug. Correct me if i'm wrong :) 

Regards.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |


http://sourceware.org/bugzilla/show_bug.cgi?id=2569

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/2569] utf-16 iconv module breaks programs
  2006-04-13 13:27 [Bug libc/2569] New: utf-16 iconv module breaks programs maestromae at kateos dot org
                   ` (7 preceding siblings ...)
  2006-04-25 12:26 ` maestromae at kateos dot org
@ 2006-04-25 17:23 ` drepper at redhat dot com
  2006-04-25 17:25 ` drepper at redhat dot com
  2006-04-25 17:44 ` drepper at redhat dot com
  10 siblings, 0 replies; 12+ messages in thread
From: drepper at redhat dot com @ 2006-04-25 17:23 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2006-04-25 17:23 -------
I cannot reproduce any problem.  Unless you provide detailed reports based on
the *current* sources I'll close the bug again.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |WAITING


http://sourceware.org/bugzilla/show_bug.cgi?id=2569

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/2569] utf-16 iconv module breaks programs
  2006-04-13 13:27 [Bug libc/2569] New: utf-16 iconv module breaks programs maestromae at kateos dot org
                   ` (8 preceding siblings ...)
  2006-04-25 17:23 ` drepper at redhat dot com
@ 2006-04-25 17:25 ` drepper at redhat dot com
  2006-04-25 17:44 ` drepper at redhat dot com
  10 siblings, 0 replies; 12+ messages in thread
From: drepper at redhat dot com @ 2006-04-25 17:25 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2006-04-25 17:25 -------
Actually, I was too quick.  It does fail on one machine.  I'll look at it.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |ASSIGNED


http://sourceware.org/bugzilla/show_bug.cgi?id=2569

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug libc/2569] utf-16 iconv module breaks programs
  2006-04-13 13:27 [Bug libc/2569] New: utf-16 iconv module breaks programs maestromae at kateos dot org
                   ` (9 preceding siblings ...)
  2006-04-25 17:25 ` drepper at redhat dot com
@ 2006-04-25 17:44 ` drepper at redhat dot com
  10 siblings, 0 replies; 12+ messages in thread
From: drepper at redhat dot com @ 2006-04-25 17:44 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2006-04-25 17:44 -------
This is fixed upstream.  It was only an incomplete condition of an assert.  The
actual code is correct.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=2569

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2006-04-25 17:44 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-13 13:27 [Bug libc/2569] New: utf-16 iconv module breaks programs maestromae at kateos dot org
2006-04-13 16:23 ` [Bug libc/2569] " drepper at redhat dot com
2006-04-19 21:47 ` decimal at us dot ibm dot com
2006-04-20  5:48 ` maestromae at kateos dot org
2006-04-20 10:18 ` maestromae at kateos dot org
2006-04-20 11:11 ` maestromae at kateos dot org
2006-04-24 17:56 ` drepper at redhat dot com
2006-04-25 11:54 ` thkala at softlab dot ece dot ntua dot gr
2006-04-25 12:26 ` maestromae at kateos dot org
2006-04-25 17:23 ` drepper at redhat dot com
2006-04-25 17:25 ` drepper at redhat dot com
2006-04-25 17:44 ` drepper at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).