[gnutls-dev]Re: Bug#153906: mutt: 'bus error' while connecting to IMAP server (sparc)

Andrew McDonald andrew at mcdonald.org.uk
Mon Jul 22 21:30:01 CEST 2002

reassign 153906 libgnutls4
forwarded 153906 gnutls-dev at gnupg.org

On Mon, Jul 22, 2002 at 12:53:58PM -0500, Jeffrey Sheldon wrote:
> Attempt to run mutt on sparc architecture results in 'bus error' and
> termination immediately after IMAP host lookup.  Upgrading to libgnutls4
> worked around the problem until a number of automated package updates
> were applied days later.  This does not occur under i386 arch.

A guess at what happened - you had mutt (compiled against gnutls3) and
gnutls3 installed. You use imap:// rather than imaps:// (i.e.
opportunistic STARTTLS). Mutt didn't work.
You then installed libgnutls4 and removed gnutls3. Mutt no longer could
load the gnutls module so didn't use TLS. Mutt worked.
You then upgraded to a version of mutt which uses gnutls4. Mutt could
use the gnutls module and broke again.

(As an aside this reminds me about a bug I've reported on mutt-dev but
I ought to file in upstream's BTS - you can't rely on the current
opportunistic STARTTLS behaviour to give you TLS in the presence of an
active attacker).

Anyway, the bug itself - it looks like it is in libgnutls itself, or
maybe libgcrypt. I'm forwarding this to the gnutls-dev for thoughts.

Can you also confirm which version of the Debian gnutls4 or libgnutls4
package you are using?

> Starting program: /usr/bin/mutt
> Connecting to math.lsu.edu...(no debugging symbols found)...(no debugging symbol
> s found)...(no debugging symbols found)...(no debugging symbols found)...(no deb
> ugging symbols found)...
> (no debugging symbols found)...(no debugging symbols found)...(no debugging symb
> ols found)...(no debugging symbols found)...
> Program received signal SIGBUS, Bus error.
> 0x704483d4 in gcry_md_open () from /usr/lib/libgcrypt.so.1
> (gdb) backtrace
> #0  0x704483d4 in gcry_md_open () from /usr/lib/libgcrypt.so.1
> #1  0x704482ac in gcry_md_algo_name () from /usr/lib/libgcrypt.so.1
> #2  0x704482e0 in gcry_md_open () from /usr/lib/libgcrypt.so.1
> #3  0x70401b58 in _gnutls_hash_init () from /usr/lib/libgnutls.so.4
> #4  0x703fdbdc in gnutls_handshake () from /usr/lib/libgnutls.so.4
> #5  0x703b610c in mutt_gnutls_starttls () from /usr/lib/mutt/mutt_ssl_gnutls.so
> #6  0x703b5ef0 in mutt_gnutls_starttls () from /usr/lib/mutt/mutt_ssl_gnutls.so
> #7  0x000861c0 in mutt_gnutls_starttls ()
> #8  0x00080dec in imap_open_connection ()
> #9  0x00080ccc in imap_conn_find ()
> #10 0x000810c8 in imap_open_mailbox ()
> #11 0x0004b734 in mx_open_mailbox ()
> #12 0x000434d8 in main ()
> #13 0x700d7438 in __libc_start_main () from /lib/libc.so.6

Andrew McDonald
E-mail: andrew at mcdonald.org.uk

More information about the Gnutls-devel mailing list