From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steve Revilak Newsgroups: gmane.emacs.bugs Subject: bug#5333: 23.1.91; NextStep/Mac OS X: emacs -nw crash in input_available_signal + 67 (keyboard.c:7514) Date: Fri, 8 Jan 2010 21:52:09 -0500 Message-ID: <20100109025209.GB406@srevilak.net> References: <20100107150943.GE3422@kayak.com> Reply-To: Steve Revilak , 5333@debbugs.gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LyciRD1jyfeSSjG0" X-Trace: ger.gmane.org 1263007155 3928 80.91.229.12 (9 Jan 2010 03:19:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Jan 2010 03:19:15 +0000 (UTC) Cc: 5333@debbugs.gnu.org To: YAMAMOTO Mitsuharu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 09 04:19:07 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NTRr0-0004mr-KA for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jan 2010 04:19:06 +0100 Original-Received: from localhost ([127.0.0.1]:41744 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NTRr0-0000bA-MP for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Jan 2010 22:19:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NTRqv-0000aa-Dq for bug-gnu-emacs@gnu.org; Fri, 08 Jan 2010 22:19:01 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NTRqr-0000XF-Ub for bug-gnu-emacs@gnu.org; Fri, 08 Jan 2010 22:19:01 -0500 Original-Received: from [199.232.76.173] (port=55817 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NTRqr-0000X9-O3 for bug-gnu-emacs@gnu.org; Fri, 08 Jan 2010 22:18:57 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56668) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NTRqr-0004V0-Cj for bug-gnu-emacs@gnu.org; Fri, 08 Jan 2010 22:18:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NTRZW-00023b-Cu; Fri, 08 Jan 2010 22:01:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Mail-Followup-To: Steve Revilak , 5333@debbugs.gnu.org Resent-From: Steve Revilak Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Jan 2010 03:01:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5333 X-Emacs-PR-Package: emacs,ns X-Emacs-PR-Keywords: Original-Received: via spool by 5333-submit@debbugs.gnu.org id=B5333.12630060347898 (code B ref 5333); Sat, 09 Jan 2010 03:01:02 +0000 Original-Received: (at 5333) by debbugs.gnu.org; 9 Jan 2010 03:00:34 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTRZ4-00023L-1G for submit@debbugs.gnu.org; Fri, 08 Jan 2010 22:00:34 -0500 Original-Received: from mail6.sea5.speakeasy.net ([69.17.117.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NTRR2-0001z8-Gz for 5333@debbugs.gnu.org; Fri, 08 Jan 2010 21:52:17 -0500 Original-Received: (qmail 31982 invoked from network); 9 Jan 2010 02:52:11 -0000 Original-Received: from pool-96-233-67-44.bstnma.fios.verizon.net (HELO srevilak.net) (srevilak@[96.233.67.44]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 9 Jan 2010 02:52:11 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.19 (2009-01-05) X-Spam-Score: -2.2 (--) X-Mailman-Approved-At: Fri, 08 Jan 2010 22:00:32 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: -2.2 (--) Resent-Date: Fri, 08 Jan 2010 22:01:02 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:34099 Archived-At: --LyciRD1jyfeSSjG0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline >From: YAMAMOTO Mitsuharu >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. Steve Revilak --LyciRD1jyfeSSjG0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (Darwin) iEYEARECAAYFAktH71kACgkQX7YJI4BuyDQOugCeIfKSX3c3Re8Oi3F9GmVQO1NP l1UAoNPbbkkxL90txyTKxYInXZGwjM2O =cIpU -----END PGP SIGNATURE----- --LyciRD1jyfeSSjG0--