From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#12471: Avoid some signal-handling races, and simplify. Date: Wed, 19 Sep 2012 18:45:39 +0200 Message-ID: <357A45C4-8E4E-43AA-AF8B-BE2C5B056BA0@swipnet.se> References: <50590626.2070407@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1348073205 26061 80.91.229.3 (19 Sep 2012 16:46:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Sep 2012 16:46:45 +0000 (UTC) Cc: 12471@debbugs.gnu.org, Juanma Barranquero To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 19 18:46:49 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TENQF-0001lm-PN for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Sep 2012 18:46:47 +0200 Original-Received: from localhost ([::1]:59236 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TENQB-0003y9-Is for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Sep 2012 12:46:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TENQ5-0003xq-JP for bug-gnu-emacs@gnu.org; Wed, 19 Sep 2012 12:46:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TENQ4-0000dw-FR for bug-gnu-emacs@gnu.org; Wed, 19 Sep 2012 12:46:37 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34345) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TENQ4-0000dT-Bf for bug-gnu-emacs@gnu.org; Wed, 19 Sep 2012 12:46:36 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TENRR-0004iS-Tf for bug-gnu-emacs@gnu.org; Wed, 19 Sep 2012 12:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Sep 2012 16:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12471 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 12471-submit@debbugs.gnu.org id=B12471.134807323218048 (code B ref 12471); Wed, 19 Sep 2012 16:48:01 +0000 Original-Received: (at 12471) by debbugs.gnu.org; 19 Sep 2012 16:47:12 +0000 Original-Received: from localhost ([127.0.0.1]:43886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TENQd-0004h3-SH for submit@debbugs.gnu.org; Wed, 19 Sep 2012 12:47:12 -0400 Original-Received: from mailout.attendit.se ([83.140.103.4]:51942) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TENQb-0004gr-5O for 12471@debbugs.gnu.org; Wed, 19 Sep 2012 12:47:10 -0400 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.attendit.se (Postfix) with ESMTP id 72EEE50141 for <12471@debbugs.gnu.org>; Wed, 19 Sep 2012 18:39:33 +0200 (CEST) Original-Received: (qmail 9517 invoked by uid 89); 19 Sep 2012 16:45:12 -0000 Original-Received: from h-46-59-42-18.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.18) by mail01.melmac.se with ESMTPA; 19 Sep 2012 16:45:12 -0000 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id E3B057FA05E; Wed, 19 Sep 2012 18:45:38 +0200 (CEST) In-Reply-To: <50590626.2070407@cs.ucla.edu> X-Mailer: Apple Mail (2.1486) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64607 Archived-At: Hello. 19 sep 2012 kl. 01:39 skrev Paul Eggert : > * Signals are always redirected to the main thread, resulting in > incorrect backtraces when, for example, a subsidiary thread has > a segmentation violation. Thread-specific signals like SIGSEGV > should have thread-specific backtraces. and + * atimer.c (deliver_alarm_signal): + Remove. No need to deliver this to the parent; any thread can + handle this signal now. All uses replaced by underlying = handler. and -static void -deliver_alarm_signal (int sig) -{ - handle_on_main_thread (sig, handle_alarm_signal); -} - - -/* Call alarm signal handler for pending timers. */ is totally wrong. Thread sarted by Gnome/gtk+ plugins can not handle = SIGALRM, so Emacs will terminate. This is the reason for this in the = first place. Don't install this and other stuff that removes redirecting = signals to the main thread. Jan D.