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: Tue, 12 Jan 2010 21:00:35 -0500 Message-ID: <20100113020035.GB386@srevilak.net> References: <20100107150943.GE3422@kayak.com> <20100109025209.GB406@srevilak.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/Uq4LBwYP4y1W6pO" X-Trace: ger.gmane.org 1263349172 4291 80.91.229.12 (13 Jan 2010 02:19:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Jan 2010 02:19:32 +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 Wed Jan 13 03:19:24 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 1NUspO-00050D-To for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jan 2010 03:19:23 +0100 Original-Received: from localhost ([127.0.0.1]:56830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUspP-00047a-Jk for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jan 2010 21:19:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NUspJ-00046j-Fq for bug-gnu-emacs@gnu.org; Tue, 12 Jan 2010 21:19:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NUspE-00046F-Ep for bug-gnu-emacs@gnu.org; Tue, 12 Jan 2010 21:19:16 -0500 Original-Received: from [199.232.76.173] (port=33544 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUspE-00046C-91 for bug-gnu-emacs@gnu.org; Tue, 12 Jan 2010 21:19:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42001) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NUspD-0000hQ-U8 for bug-gnu-emacs@gnu.org; Tue, 12 Jan 2010 21:19:12 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NUsaY-0008CI-P9; Tue, 12 Jan 2010 21:04:02 -0500 X-Loop: bug-gnu-emacs@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: Wed, 13 Jan 2010 02:04: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.126334819831393 (code B ref 5333); Wed, 13 Jan 2010 02:04:02 +0000 Original-Received: (at 5333) by debbugs.gnu.org; 13 Jan 2010 02:03:18 +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 1NUsZp-0008AH-F1 for submit@debbugs.gnu.org; Tue, 12 Jan 2010 21:03:17 -0500 Original-Received: from mail5.sea5.speakeasy.net ([69.17.117.7]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NUsXK-00082j-W5 for 5333@debbugs.gnu.org; Tue, 12 Jan 2010 21:00:43 -0500 Original-Received: (qmail 7588 invoked from network); 13 Jan 2010 02:00:38 -0000 Original-Received: from pool-96-233-67-172.bstnma.fios.verizon.net (HELO srevilak.net) (srevilak@[96.233.67.172]) (envelope-sender ) by mail5.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 13 Jan 2010 02:00:38 -0000 Content-Disposition: inline In-Reply-To: <20100109025209.GB406@srevilak.net> User-Agent: Mutt/1.5.19 (2009-01-05) X-Spam-Score: -2.3 (--) X-Mailman-Approved-At: Tue, 12 Jan 2010 21:03:15 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: -2.4 (--) Resent-Date: Tue, 12 Jan 2010 21:04: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:34248 Archived-At: --/Uq4LBwYP4y1W6pO Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: 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 --/Uq4LBwYP4y1W6pO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (Darwin) iEYEARECAAYFAktNKUMACgkQX7YJI4BuyDSkhgCggMVE3qopMjDCLZ6szKR4xf98 QE4An2bsA8YaHWa2qBweGIoeleIZpoKm =6k+e -----END PGP SIGNATURE----- --/Uq4LBwYP4y1W6pO--