Debian Bug report logs -
#413934
minicom crashes if LANG=de_DE.UTF-8 is set - with LANG=POSIX it works fine
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, godisch@debian.org (Martin A. Godisch):
Bug#413934; Package minicom.
(full text, mbox, link).
Acknowledgement sent to Markus Meier <rattynator@googlemail.com>:
New Bug report received and forwarded. Copy sent to godisch@debian.org (Martin A. Godisch).
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: minicom
Version: 2.2-5
Severity: normal
If minicom is started with LANG=de_DE.UTF-8 and serial port is set wrong
(wrong Bps/Par/Bits), it crashes with the following error message:
xminicom: ../iconv/loop.c:425: internal_utf8_loop_single: Zusicherung
»inptr - bytebuf > (state->__count & 7)« nicht erfüllt.
If I start it with LANG=POSIX it seems to work fine.
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (900, 'testing'), (300, 'unstable')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-xen-amd64
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Versions of packages minicom depends on:
ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries
ii libncurses5 5.5-5 Shared libraries for terminal hand
Versions of packages minicom recommends:
ii lrzsz 0.12.21-4.1 Tools for zmodem/xmodem/ymodem fil
-- no debconf information
Thanks
Markus
Information forwarded to debian-bugs-dist@lists.debian.org, godisch@debian.org (Martin A. Godisch):
Bug#413934; Package minicom.
(full text, mbox, link).
Acknowledgement sent to Adam Lackorzynski <adam@os.inf.tu-dresden.de>:
Extra info received and forwarded to list. Copy sent to godisch@debian.org (Martin A. Godisch).
(full text, mbox, link).
Message #10 received at 413934@bugs.debian.org (full text, mbox, reply):
Hi,
On Thu Mar 08, 2007 at 00:14:07 +0100, Markus Meier wrote:
> If minicom is started with LANG=de_DE.UTF-8 and serial port is set wrong
> (wrong Bps/Par/Bits), it crashes with the following error message:
>
> xminicom: ../iconv/loop.c:425: internal_utf8_loop_single: Zusicherung
> »inptr - bytebuf > (state->__count & 7)« nicht erfüllt.
Can you give me a concrete example of the wrong configuration? I can't
trigger this assertion (on ia32).
Thanks,
Adam
--
Adam adam@os.inf.tu-dresden.de
Lackorzynski http://os.inf.tu-dresden.de/~adam/
Information forwarded to debian-bugs-dist@lists.debian.org, godisch@debian.org (Martin A. Godisch):
Bug#413934; Package minicom.
(full text, mbox, link).
Acknowledgement sent to Markus Meier <rattynator@googlemail.com>:
Extra info received and forwarded to list. Copy sent to godisch@debian.org (Martin A. Godisch).
(full text, mbox, link).
Message #15 received at 413934@bugs.debian.org (full text, mbox, reply):
Am Donnerstag, 8. März 2007 10:33 schrieb Adam Lackorzynski:
> On Thu Mar 08, 2007 at 00:14:07 +0100, Markus Meier wrote:
> > If minicom is started with LANG=de_DE.UTF-8 and serial port is set
> > wrong (wrong Bps/Par/Bits), it crashes with the following error
> > message:
> >
> > xminicom: ../iconv/loop.c:425: internal_utf8_loop_single:
> > Zusicherung »inptr - bytebuf > (state->__count & 7)« nicht erfüllt.
>
> Can you give me a concrete example of the wrong configuration? I
> can't trigger this assertion (on ia32).
I booted pfsense (Firewall derivated from FreeBSD) and tried to watch
the boot process via serial console. pfsense wants me to set the serial
port to 9600 8N1, but I firstly forgot this and kept the old setting,
which was 38400 8N1. I think the resultant garbage on the terminal
raised the foregoing error. I also did some further investigation and
tried this on x86 and x86-64, but the error appears on both computers.
I also found the following typing error:
When I leave minicom with strg a + x it says "Modem zurüksetzen" but
here a 'c' is missing, as it has to be labeled to "Modem zurücksetzen".
Markus
--
Just because I'm not paranoid doesn't mean they're not out to get me!
Information forwarded to debian-bugs-dist@lists.debian.org, godisch@debian.org (Martin A. Godisch):
Bug#413934; Package minicom.
(full text, mbox, link).
Acknowledgement sent to Adam Lackorzynski <adam@os.inf.tu-dresden.de>:
Extra info received and forwarded to list. Copy sent to godisch@debian.org (Martin A. Godisch).
(full text, mbox, link).
Message #20 received at 413934@bugs.debian.org (full text, mbox, reply):
On Thu Mar 08, 2007 at 14:04:09 +0100, Markus Meier wrote:
> Am Donnerstag, 8. März 2007 10:33 schrieb Adam Lackorzynski:
> > On Thu Mar 08, 2007 at 00:14:07 +0100, Markus Meier wrote:
> > > If minicom is started with LANG=de_DE.UTF-8 and serial port is set
> > > wrong (wrong Bps/Par/Bits), it crashes with the following error
> > > message:
> > >
> > > xminicom: ../iconv/loop.c:425: internal_utf8_loop_single:
> > > Zusicherung »inptr - bytebuf > (state->__count & 7)« nicht erfüllt.
> >
> > Can you give me a concrete example of the wrong configuration? I
> > can't trigger this assertion (on ia32).
>
> I booted pfsense (Firewall derivated from FreeBSD) and tried to watch
> the boot process via serial console. pfsense wants me to set the serial
> port to 9600 8N1, but I firstly forgot this and kept the old setting,
> which was 38400 8N1. I think the resultant garbage on the terminal
> raised the foregoing error. I also did some further investigation and
> tried this on x86 and x86-64, but the error appears on both computers.
It's hard for me to do anything about this since this is an assertion
from inside glibc. To start, I probably need to reproduce this...
> I also found the following typing error:
> When I leave minicom with strg a + x it says "Modem zurüksetzen" but
> here a 'c' is missing, as it has to be labeled to "Modem zurücksetzen".
Thanks, this one is fixed in upstream.
Adam
--
Adam adam@os.inf.tu-dresden.de
Lackorzynski http://os.inf.tu-dresden.de/~adam/
Information forwarded to debian-bugs-dist@lists.debian.org, godisch@debian.org (Martin A. Godisch):
Bug#413934; Package minicom.
(full text, mbox, link).
Acknowledgement sent to Mike Crowe <mac@mcrowe.com>:
Extra info received and forwarded to list. Copy sent to godisch@debian.org (Martin A. Godisch).
(full text, mbox, link).
Message #25 received at 413934@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hi Adam & Markus,
I think I may have found a recipe for reproducing the minicom assert
with LANG=en_GB.UTF-8. As Markus reported the problem goes away with
LANG=posix.
Arrange for Minicom receive the following (invalid UTF-8) byte
sequence over the serial port:
f8 e2 82 ac c2 a3 0a
The error message I see is:
minicom: ../iconv/loop.c:425: internal_utf8_loop_single: Assertion `inptr - bytebuf > (state->__count & 7)' failed.
I've attached a file containing the bytes too.
Mike.
[crash.cap (text/plain, attachment)]
Information forwarded to debian-bugs-dist@lists.debian.org, godisch@debian.org (Martin A. Godisch):
Bug#413934; Package minicom.
(full text, mbox, link).
Acknowledgement sent to Marcus Better <marcus@better.se>:
Extra info received and forwarded to list. Copy sent to godisch@debian.org (Martin A. Godisch).
(full text, mbox, link).
Message #30 received at 413934@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
I just got the same crash when receiving some random garbage data from an
embedded device. The locale is sv_SE.UTF-8.
[Message part 2 (application/pgp-signature, inline)]
Information forwarded to debian-bugs-dist@lists.debian.org, godisch@debian.org (Martin A. Godisch):
Bug#413934; Package minicom.
(full text, mbox, link).
Message #33 received at 413934@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Sat, Mar 10, 2007 at 17:41:19 +0100, Adam Lackorzynski wrote:
> > > > If minicom is started with LANG=de_DE.UTF-8 and serial port is set
> > > > wrong (wrong Bps/Par/Bits), it crashes with the following error
> > > > message:
> > > >
> > > > xminicom: ../iconv/loop.c:425: internal_utf8_loop_single:
> > > > Zusicherung »inptr - bytebuf > (state->__count & 7)« nicht erfüllt.
> It's hard for me to do anything about this since this is an assertion
> from inside glibc. To start, I probably need to reproduce this...
Does a strace log help? The bug can be reproduced by pointing minicom to
a fifo (with empty scriptprog, minit, mreset) and putting Mike Crowe's
crash.cap into it.
Martin
[minicom.log (text/plain, attachment)]
Information forwarded to debian-bugs-dist@lists.debian.org, godisch@debian.org (Martin A. Godisch):
Bug#413934; Package minicom.
(full text, mbox, link).
Message #36 received at 413934@bugs.debian.org (full text, mbox, reply):
On Sun, Apr 15, 2007 at 08:10:07 +0200, Martin Godisch wrote:
> Does a strace log help? The bug can be reproduced by pointing minicom to
> a fifo (with empty scriptprog, minit, mreset) and putting Mike Crowe's
> crash.cap into it.
s/strace log/backtrace/
Information forwarded to debian-bugs-dist@lists.debian.org, godisch@debian.org (Martin A. Godisch):
Bug#413934; Package minicom.
(full text, mbox, link).
Acknowledgement sent to Adam Lackorzynski <adam@os.inf.tu-dresden.de>:
Extra info received and forwarded to list. Copy sent to godisch@debian.org (Martin A. Godisch).
(full text, mbox, link).
Message #41 received at 413934@bugs.debian.org (full text, mbox, reply):
On Sun Apr 15, 2007 at 08:10:07 +0200, Martin Godisch wrote:
> On Sat, Mar 10, 2007 at 17:41:19 +0100, Adam Lackorzynski wrote:
>
> > > > > If minicom is started with LANG=de_DE.UTF-8 and serial port is set
> > > > > wrong (wrong Bps/Par/Bits), it crashes with the following error
> > > > > message:
> > > > >
> > > > > xminicom: ../iconv/loop.c:425: internal_utf8_loop_single:
> > > > > Zusicherung »inptr - bytebuf > (state->__count & 7)« nicht erfüllt.
>
> > It's hard for me to do anything about this since this is an assertion
> > from inside glibc. To start, I probably need to reproduce this...
>
> Does a strace log help? The bug can be reproduced by pointing minicom to
> a fifo (with empty scriptprog, minit, mreset) and putting Mike Crowe's
> crash.cap into it.
The backtrace does not really help. I'm not sure what to do as this
looks like a glibc issue. On the other side there's #115566.
Reassign/reopen?
This little patch makes minicom crash instantly when started, when using
LANG=en_GB.UTF-8 (or another utf8 locale).
Unfortunately creating a little test program which triggers this
assertion does not seem so easy.
This issue also puts the question whether it is good to display (serial)
input with the local locale or rather use "C"? Or something
configurable? A work around for this could also be to set the locale to
"C" when outputting input data.
Any opinions?
Index: main.c
===================================================================
RCS file: /cvsroot/minicom/minicom/src/main.c,v
retrieving revision 1.16
diff -u -r1.16 main.c
--- main.c 31 Oct 2005 12:13:51 -0000 1.16
+++ main.c 15 Apr 2007 10:11:06 -0000
@@ -681,8 +681,21 @@
/* Update the timer. */
timer_update();
- /* Check for I/O or timer. */
- x = check_io(portfd_connected, 0, 1000, buf, &blen);
+ {
+ static int foo = 0;
+ if (!foo) {
+ x = 1;
+ buf[0] = 248;
+ buf[1] = 226;
+ buf[2] = 130;
+ buf[3] = 172;
+ buf[4] = 194;
+ buf[5] = 163;
+ blen = 6;
+ foo = 1;
+ } else
+ x = check_io(portfd_connected, 0, 1000, buf, &blen);
+ }
/* Send data from the modem to the screen. */
if ((x & 1) == 1) {
Adam
--
Adam adam@os.inf.tu-dresden.de
Lackorzynski http://os.inf.tu-dresden.de/~adam/
Merged 413934 423017.
Request was from Martin Godisch <martin@godisch.de>
to control@bugs.debian.org.
(Sun, 07 Oct 2007 18:57:13 GMT) (full text, mbox, link).
Information forwarded to debian-bugs-dist@lists.debian.org, godisch@debian.org (Martin A. Godisch):
Bug#413934; Package minicom.
(full text, mbox, link).
Message #46 received at 413934@bugs.debian.org (full text, mbox, reply):
reassign 413934 libc6
thanks
Hello libc6-maintainers,
would you have a look into this bugs #413934 and #423017, please?
minicom crashes due to a libc6-internal assertion which (I think)
should not happen in the first way...
Thanks! -- Martin
Bug reassigned from package `minicom' to `libc6'.
Request was from Martin Godisch <martin@godisch.de>
to control@bugs.debian.org.
(Sun, 09 Dec 2007 10:42:05 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#413934; Package libc6.
(Thu, 29 Jul 2010 11:45:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Mike Crowe <mac@mcrowe.com>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>.
(Thu, 29 Jul 2010 11:45:02 GMT) (full text, mbox, link).
Message #55 received at 413934@bugs.debian.org (full text, mbox, reply):
I've tested minicom in a squeeze chroot using the byte sequence I
provided earlier. I could not reproduce the problem. Minicom displays
a strange character (as would be expected) but does not assert.
I tested with:
ii libc6 2.11.2-2 Embedded GNU C Library: Shared libraries
ii minicom 2.4-2 friendly menu driven serial communication program
So, I think we can call this fixed in squeeze.
Thanks.
Mike.
Reply sent
to Aurelien Jarno <aurelien@aurel32.net>:
You have taken responsibility.
(Sat, 31 Jul 2010 04:03:05 GMT) (full text, mbox, link).
Notification sent
to Markus Meier <rattynator@googlemail.com>:
Bug acknowledged by developer.
(Sat, 31 Jul 2010 04:03:05 GMT) (full text, mbox, link).
Message #60 received at 413934-done@bugs.debian.org (full text, mbox, reply):
Version: 2.11.2-2
On Thu, Jul 29, 2010 at 12:30:28PM +0100, Mike Crowe wrote:
> I've tested minicom in a squeeze chroot using the byte sequence I
> provided earlier. I could not reproduce the problem. Minicom displays
> a strange character (as would be expected) but does not assert.
>
> I tested with:
>
> ii libc6 2.11.2-2 Embedded GNU C Library: Shared libraries
> ii minicom 2.4-2 friendly menu driven serial communication program
>
> So, I think we can call this fixed in squeeze.
>
Thanks for the follow-up, I am marking the bug as fixed in version
2.11.2-2.
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
Reply sent
to Aurelien Jarno <aurelien@aurel32.net>:
You have taken responsibility.
(Sat, 31 Jul 2010 04:03:05 GMT) (full text, mbox, link).
Notification sent
to David Weinehall <tao@debian.org>:
Bug acknowledged by developer.
(Sat, 31 Jul 2010 04:03:05 GMT) (full text, mbox, link).
Reply sent
to Aurelien Jarno <aurelien@aurel32.net>:
You have taken responsibility.
(Sat, 31 Jul 2010 04:03:06 GMT) (full text, mbox, link).
Notification sent
to Jens Seidel <jensseidel@users.sf.net>:
Bug acknowledged by developer.
(Sat, 31 Jul 2010 04:03:06 GMT) (full text, mbox, link).
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sat, 28 Aug 2010 07:31:49 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Thu Jan 11 13:24:10 2018;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.