GNU bug report logs -
#25178
26.0.50; Crash when pressing C-g in TTY mode
Previous Next
Reported by: Elias Martenson <elias.martenson <at> murex.com>
Date: Mon, 12 Dec 2016 04:34:01 UTC
Severity: normal
Tags: fixed
Found in version 26.0.50
Done: npostavs <at> users.sourceforge.net
Bug is archived. No further changes may be made.
Full log
Message #35 received at 25178 <at> debbugs.gnu.org (full text, mbox):
> From: Elias Martenson <elias.martenson <at> murex.com>
> CC: <25178 <at> debbugs.gnu.org>
> Date: Wed, 14 Dec 2016 11:09:12 +0800
>
> > Strangely, I don't see this on the GNU/Linux system to which I have
> > access, although Emacs definitely calls pthread_mutex_unlock twice in
> > a row in the scenario of this bug report. Is this some change in
> > latest versions of glibc?
>
> Calling pthread_mutex_unlock() twice has to be undefined behaviour. In
> fact, it can never work. Imagine what would happen if a different thread
> called pthread_mutex_lock() on the mutex between two the two unlock
> calls. In that case, you'd be unlocking a mutex help by a different
> thread which is obviously very dangerous.
I'm not asking if this is undefined behavior; it clearly is. I'm
asking whether the second of these two calls is actually the one that
crashes Emacs with SIGSEGV. IOW, does the crash happen inside the
second call to pthread_mutex_unlock? And the next question would be
why doesn't it crash for me on another GNU/Linux system?
Thanks.
This bug report was last modified 8 years and 139 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.