Subject: bug#48401: 25.3; emacs27 crashes

From: Robert Pluim <[email-masked]>
Date: Wed, 19 May 2021 10:32:02 +0200

>>>>> On Tue, 18 May 2021 18:02:35 +0300, Eli Zaretskii <[email-masked]> said:

    >> From: Aloe <[email-masked]>
    >> Cc: [email-masked]
    >> Date: Tue, 18 May 2021 16:50:21 +0200
    >> 
    >> Eli Zaretskii writes:
    >> 
    >> >> From: Aloe <[email-masked]>
    >> >> Cc: [email-masked]
    >> >> Date: Mon, 17 May 2021 21:05:53 +0200
    >> >> 
    >> >> Thread 1 (Thread 0x7ffff7fb3a00 (LWP 24611)):
    >> >> #0  __GI___pthread_mutex_lock (mutex=0x20) at ../nptl/pthread_mutex_lock.c:66
    >> >> #1  0x00007ffff3d663ec in ?? () from /usr/lib/x86_64-linux-gnu/libgnutls.so.28
    >> >> #2  0x00007ffff3df6c67 in ?? () from /usr/lib/x86_64-linux-gnu/libgnutls.so.28
    >> >> #3  0x000000000056c795 in extract_data_from_object (spec=<optimized out>, 
    >> >>     spec@entry=0x280ac63, start_byte=start_byte@entry=0x7fffffffa598, 
    >> >>     end_byte=end_byte@entry=0x7fffffffa5a0) at fns.c:5290
    >> >> #4  0x00000000005a06d1 in gnutls_symmetric (encrypting=<optimized out>, 
    >> >> ---Type <return> to continue, or q <return> to quit---
    >> >>     cipher=<optimized out>, key=0x280ac13, iv=0x280ac63, input=0x280ac03, 
    >> >>     aead_auth=<optimized out>) at gnutls.c:2380
    >> >> #5  0x000000000055e71b in Ffuncall (nargs=5, args=args@entry=0x7fffffffa698)
    >> >>     at eval.c:2795
    >> >
    >> > Looks like a problem in GnuTLS.  Which version of GnuTLS do you have
    >> > installed?  Can you upgrade to a newer version?
    >> 
    >> The output of gnutls-cli -v is:
    >> 
    >> gnutls-cli (GnuTLS) 2.12.23
    >> Packaged by Debian (2.12.23-12ubuntu2.8)

    Eli> That's very strange, because line 5290 of fns.c should not have been
    Eli> compiled unless you have GnuTLS 3.x.

    Eli> In any case, 2.12.23 is very old.

Thatʼs gnutls-cli, not the gnutls development headers. I guess itʼs
possible to have new headers and an old gnutls-cli in
parallel. Something like

apt info libgnutls28-dev

would tell us which headers are installed. On my Debian system that
gives me:

    Package: libgnutls28-dev
    Version: 3.7.1-3

Robert
--