GNU bug report logs - #5333
23.1.91; NextStep/Mac OS X: emacs -nw crash in input_available_signal + 67 (keyboard.c:7514)

Previous Next

Packages: emacs, ns;

Reported by: steve <at> srevilak.net

Date: Thu, 7 Jan 2010 15:19:03 UTC

Severity: normal

Done: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 5333 <at> debbugs.gnu.org (full text, mbox):

From: Steve Revilak <steve <at> srevilak.net>
To: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
Cc: 5333 <at> debbugs.gnu.org
Subject: Re: bug#5333: 23.1.91; NextStep/Mac OS X: emacs -nw crash in
	input_available_signal + 67 (keyboard.c:7514)
Date: Tue, 12 Jan 2010 21:00:35 -0500
[Message part 1 (text/plain, inline)]
>> According to the stack trace, the crash seems to happen by
>> dereferencing NULL pointer (with some offset) in a non-main thread
>> executing the following code in the SIGIO handler.
>>
>>  if (input_available_clear_time)
>>    EMACS_SET_SECS_USECS (*input_available_clear_time, 0, 0);
>>
>> EMACS_SET_SECS_USECS consists of multiple instructions, and
>> input_available_clear_time might be cleared to NULL by the main thread
>> between the NULL-check and the completion of EMACS_SET_SECS_USECS in a
>> non-main thread.
>>
>> Could you try the following patch for a while to see if it can avoid
>> the issue?

> YAMAMOTO,
>
> Thank you for the patch.  I'll will test it this week.

I've been using YAMAMOTO's patch for two days, and no crashes.  Yay!

If I do not see a crash by Friday, then I will close bug#5333.

Steve


[Message part 2 (application/pgp-signature, inline)]

This bug report was last modified 15 years and 191 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.