Subject: bug#48401: 25.3; emacs27 crashes

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

> 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)

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

In any case, 2.12.23 is very old.