[ibr@ata.cs.hun.edu.tr: Bug#191247: libgcrypt1: mutt dies with bus error while accessing imap over tls]

Ivo Timmermans ivo@o2w.nl
Sun, 4 May 2003 22:37:28 +0200


--oLBj+sq0vYjzfsbl
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline


	Ivo

-- 
... a Perl module would prefer that you stayed out of its living room
because you weren't invited, not because it has a shotgun.
	- Programming Perl, O'Reilly

--oLBj+sq0vYjzfsbl
Content-Type: message/rfc822
Content-Disposition: inline

Return-Path: <debbugs@master.debian.org>
X-Original-To: ivo@schaapje.org
Delivered-To: ivo@schaapje.org
Received: from localhost (localhost [127.0.0.1])
	by juarez.schaapje.org (Postfix) with ESMTP id 4483F23A
	for <ivo@schaapje.org>; Fri,  2 May 2003 14:54:29 +0200 (CEST)
Delivered-To: ivo@o2w.nl
Received: from mail.o2w.nl [213.133.41.126]
	by localhost with POP3 (fetchmail-5.9.11)
	for ivo@schaapje.org (single-drop); Fri, 02 May 2003 14:54:29 +0200 (CEST)
Received: from master.debian.org (master.debian.org [146.82.138.7])
	by mail.o2w.nl (Postfix) with ESMTP id 7EAB735BD8
	for <ivo@o2w.nl>; Tue, 29 Apr 2003 14:28:44 +0200 (CEST)
Received: from debbugs by master.debian.org with local (Exim 3.12 1 (Debian))
	id 19ATpD-0007XW-00; Tue, 29 Apr 2003 07:03:07 -0500
X-Loop: owner@bugs.debian.org
Subject: Bug#191247: libgcrypt1: mutt dies with bus error while accessing imap over tls
Reply-To: Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>,
	191247@bugs.debian.org
Resent-From: Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: Ivo Timmermans <ivo@debian.org>,
	libgcrypt@packages.qa.debian.org
Resent-Date: Tue, 29 Apr 2003 12:03:04 GMT
Resent-Message-ID: <handler.191247.B.105161703024400@bugs.debian.org>
X-Debian-PR-Message: report 191247
X-Debian-PR-Package: libgcrypt1
X-Debian-PR-Keywords: 
Received: via spool by submit@bugs.debian.org id=B.105161703024400
          (code B ref -1); Tue, 29 Apr 2003 12:03:04 GMT
Received: (at submit) by bugs.debian.org; 29 Apr 2003 11:50:30 +0000
Received: from yssyk.iliskisel.idealteknoloji.com [212.58.17.226] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 19ATcr-0006Ea-00; Tue, 29 Apr 2003 06:50:22 -0500
Received: from naryn.iliskisel.idealteknoloji.com (naryn.iliskisel.idealteknoloji.com [192.168.0.72])
	by yssyk.iliskisel.idealteknoloji.com (8.12.3/8.12.3/Debian -4) with ESMTP id h3TBjD5H026265
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO);
	Tue, 29 Apr 2003 14:45:15 +0300
Received: from naryn.iliskisel.idealteknoloji.com (naryn [127.0.0.1])
	by naryn.iliskisel.idealteknoloji.com (8.12.9/8.12.9/Debian-2) with ESMTP id h3TBmGst021407;
	Tue, 29 Apr 2003 14:48:16 +0300
Received: (from ibr@localhost)
	by naryn.iliskisel.idealteknoloji.com (8.12.9/8.12.9/Debian-2) id h3TBmFIY021406;
	Tue, 29 Apr 2003 14:48:15 +0300
Message-Id: <200304291148.h3TBmFIY021406@naryn.iliskisel.idealteknoloji.com>
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
From: Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
To: Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailer: reportbug 2.10.1
Date: Tue, 29 Apr 2003 14:48:15 +0300
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by yssyk.iliskisel.idealteknoloji.com id h3TBjD5H026265
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-5.1 required=4.0
	tests=BAYES_01,HAS_PACKAGE,MSG_ID_ADDED_BY_MTA_3
	version=2.53
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp)
Resent-Sender: Debian BTS <debbugs@master.debian.org>
X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.11.1.6

Package: libgcrypt1
Version: 1.1.12-1
Severity: normal

Hello, Ivo.

mutt dies with bus error when I try to access an imap folder over tls (I
have ssl_starttls set to "ask-yes", and mutt works as expected if I say
"no"). I have libgnutls5 0.8.6-4 and libgcrypt1 1.1.12-1 installed. I'm
not sure against which package the bug should be filed. However, mutt
used to work for me with gnutls3, and works now with openssl 0.9.7. I
would be very grateful if you could help.

Besides, it would be much easier to generate symbolic backtraces if the
library was built with -g and stripped upon install (this time I had to
add "CFLAGS=3D-g" and "LDFLAGS=3D-g" to Makefile.am).

Thanks in advance,
Baurjan.

Secure connection with TLS? ([yes]/no): yes
Program received signal SIGBUS, Bus error.
do_encrypt (ctx=3D0x16c0b0, b=3D0x0,
    a=3D0xefffd2d5 "5\213]'\tD=BF\027\t=B2=C5\225m/=E1'=F9=3D\031\201P=A2=
p=BF=ED;=F2=B1=C7\005=FC",
    '' <repeats 164 times>...) at rijndael.c:1878
1878        *((u32*)temp[0]) =3D *((u32*)(a   )) ^ *((u32*)rk[0][0]);
(gdb) bt
#0  do_encrypt (ctx=3D0x16c0b0, b=3D0x0,
    a=3D0xefffd2d5 "5\213]'\tD=BF\027\t=B2=C5\225m/=E1'=F9=3D\031\201P=A2=
p=BF=ED;=F2=B1=C7\005=FC",
    '' <repeats 164 times>...) at rijndael.c:1878
#1  0x704fa1c0 in rijndael_encrypt (ctx=3D0x16c0b0,
    b=3D0xefffd2d5 "5\213]'\tD=BF\027\t=B2=C5\225m/=E1'=F9=3D\031\201P=A2=
p=BF=ED;=F2=B1=C7\005=FC",
    '' <repeats 164 times>...,
    a=3D0xefffd2d5 "5\213]'\tD=BF\027\t=B2=C5\225m/=E1'=F9=3D\031\201P=A2=
p=BF=ED;=F2=B1=C7\005=FC",
    '' <repeats 164 times>...) at rijndael.c:1952
#2  0x704ef2c0 in do_cbc_encrypt (c=3D0x16c060,
    outbuf=3D0xefffd2d5
    "5\213]'\tD=BF\027\t=B2=C5\225m/=E1'=F9=3D\031\201P=A2p=BF=ED;=F2=B1=C7=
\005=FC", '' <repeats
    164 times>...,
    inbuf=3D0xefffd2d5
    "5\213]'\tD=BF\027\t=B2=C5\225m/=E1'=F9=3D\031\201P=A2p=BF=ED;=F2=B1=C7=
\005=FC", '' <repeats
    164 times>..., nbytes=3D256) at cipher.c:668
#3  0x704efa34 in cipher_encrypt (c=3D0x16c060,
    outbuf=3D0xefffd2d5
    "5\213]'\tD=BF\027\t=B2=C5\225m/=E1'=F9=3D\031\201P=A2p=BF=ED;=F2=B1=C7=
\005=FC", '' <repeats
    164 times>...,
    inbuf=3D0xefffd2d5
    "5\213]'\tD=BF\027\t=B2=C5\225m/=E1'=F9=3D\031\201P=A2p=BF=ED;=F2=B1=C7=
\005=FC", '' <repeats
    164 times>..., nbytes=3D256) at cipher.c:878
#4  0x704efabc in gcry_cipher_encrypt (h=3D0x16c060,
    out=3D0xefffd2d5
    "5\213]'\tD=BF\027\t=B2=C5\225m/=E1'=F9=3D\031\201P=A2p=BF=ED;=F2=B1=C7=
\005=FC", '' <repeats
    164 times>..., outsize=3D256, in=3D0x0, inlen=3D256) at cipher.c:932
#5  0x704c25dc in _gnutls_cipher_encrypt (handle=3D0xffffffc5, text=3D0xe=
fffd2d5,
    textlen=3D256) at gnutls_cipher_int.c:64
#6  0x704bb7f8 in _gnutls_compressed2ciphertext (session=3D0x16a708,
    cipher_data=3D0xefffd2d5
    "5\213]'\tD=BF\027\t=B2=C5\225m/=E1'=F9=3D\031\201P=A2p=BF=ED;=F2=B1=C7=
\005=FC", '' <repeats
    164 times>..., cipher_size=3D2314, compressed=3D
      {data =3D 0xefffdcb8 "\024", size =3D 16}, _type=3D256, random_pad=3D=
1)
    at gnutls_cipher.c:313
#7  0x704bb4d8 in _gnutls_encrypt (session=3D0x16a708,
    headers=3D0xefffdbe0 "\026\003\001h", headers_size=3D5,
    data=3D0xefffdcb8 "\024", data_size=3D0, ciphertext=3D0xefffd2d0 "",
    ciphertext_size=3D2314, type=3DGNUTLS_HANDSHAKE, random_pad=3D1)
    at gnutls_cipher.c:86
#8  0x704babf0 in _gnutls_send_int (session=3D0x16a708, type=3DGNUTLS_HAN=
DSHAKE,
    htype=3DGNUTLS_FINISHED, _data=3D0xefffdcb8, sizeofdata=3D2319)
    at gnutls_record.c:381
#9  0x704bc374 in _gnutls_handshake_io_send_int (session=3D0x16a708,
    type=3DGNUTLS_HANDSHAKE, htype=3DGNUTLS_FINISHED, iptr=3D0xefffdcb8, =
n=3D16)
    at gnutls_buffers.c:755
#10 0x704bd200 in _gnutls_send_handshake (session=3D0x16a708, i_data=3D0x=
efffdd40,
    i_datasize=3D12, type=3DGNUTLS_FINISHED) at gnutls_handshake.c:769
#11 0x704bcc70 in _gnutls_send_finished (session=3D0x16a708, again=3D0)
    at gnutls_handshake.c:439
#12 0x704beb94 in _gnutls_send_handshake_final (session=3D0x16a708, init=3D=
1)
    at gnutls_handshake.c:2041
#13 0x704bde40 in _gnutls_handshake_common (session=3D0x16a708)
    at gnutls_handshake.c:2229
#14 0x704bd69c in gnutls_handshake (session=3D0x16a708)
    at gnutls_handshake.c:1869
#15 0x7047609c in tls_negotiate (conn=3D0x1516a0) at mutt_ssl_gnutls.c:21=
7
#16 0x70475f38 in mutt_gnutls_starttls (conn=3D0x1516a0) at mutt_ssl_gnut=
ls.c:129
#17 0x00091520 in mutt_gnutls_starttls (conn=3D0x1516a0)
    at mutt_ssl_gnutls_dlopen.c:109
#18 0x0008bf38 in imap_open_connection (idata=3D0x1387e8) at imap.c:408
#19 0x0008bd4c in imap_conn_find (account=3D0x1387e8, flags=3D2) at imap.=
c:356
#20 0x0008c1d4 in imap_open_mailbox (ctx=3D0x1380c8) at imap.c:530
#21 0x0004fc3c in mx_open_mailbox (path=3D0xeffff568 "imap://ibr@yssyk/in=
box",
    flags=3D0, pctx=3D0x0) at mx.c:716
#22 0x00046fdc in main (argc=3D1, argv=3D0xeffff734) at main.c:928
#23 0x701e4b98 in __libc_start_main () from /lib/libc.so.6


-- System Information:
Debian Release: testing/unstable
Architecture: sparc
Kernel: Linux naryn 2.4.18 #2 Thu Apr 11 14:37:17 EDT 2002 sparc64
Locale: LANG=3DC, LC_CTYPE=3DC

Versions of packages libgcrypt1 depends on:
ii  libc6                         2.3.1-17   GNU C Library: Shared librar=
ies an

-- no debconf information


--oLBj+sq0vYjzfsbl--