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#9010: sigprocmask -> pthread_sigmask for Emacs Date: Thu, 07 Jul 2011 10:01:09 +0200 Message-ID: <4E1567C5.2070504@swipnet.se> References: <4E14A53C.4060709@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1310025754 26435 80.91.229.12 (7 Jul 2011 08:02:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 7 Jul 2011 08:02:34 +0000 (UTC) Cc: 9010@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 07 10:02:30 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QejXU-0006Ka-Me for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Jul 2011 10:02:24 +0200 Original-Received: from localhost ([::1]:39402 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QejXT-0007hR-Qa for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Jul 2011 04:02:23 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QejX9-0007gq-VG for bug-gnu-emacs@gnu.org; Thu, 07 Jul 2011 04:02:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QejX8-0004Ad-Gu for bug-gnu-emacs@gnu.org; Thu, 07 Jul 2011 04:02:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37500) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QejX8-0004AW-91 for bug-gnu-emacs@gnu.org; Thu, 07 Jul 2011 04:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QejX7-0004J7-Kr; Thu, 07 Jul 2011 04:02:01 -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-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Jul 2011 08:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9010 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9010-submit@debbugs.gnu.org id=B9010.131002570516535 (code B ref 9010); Thu, 07 Jul 2011 08:02:01 +0000 Original-Received: (at 9010) by debbugs.gnu.org; 7 Jul 2011 08:01:45 +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 1QejWr-0004Ia-BZ for submit@debbugs.gnu.org; Thu, 07 Jul 2011 04:01:45 -0400 Original-Received: from smtprelay-b21.telenor.se ([195.54.99.212]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QejWj-0004IK-Gb for 9010@debbugs.gnu.org; Thu, 07 Jul 2011 04:01:38 -0400 Original-Received: from ipb4.telenor.se (ipb4.telenor.se [195.54.127.167]) by smtprelay-b21.telenor.se (Postfix) with ESMTP id 564A0E93A0 for <9010@debbugs.gnu.org>; Thu, 7 Jul 2011 10:01:31 +0200 (CEST) X-SENDER-IP: [85.225.45.100] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqJdAKRnFU5V4S1kPGdsb2JhbABTEIh7nwsLAQEBAR4ZDSWIfcMXhjcEl0ODIIdtOQ X-IronPort-AV: E=Sophos;i="4.65,492,1304287200"; d="scan'208";a="1746194271" Original-Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb4.telenor.se with ESMTP; 07 Jul 2011 10:01:10 +0200 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 10E587FA05A; Thu, 7 Jul 2011 10:01:10 +0200 (CEST) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0 In-Reply-To: <4E14A53C.4060709@cs.ucla.edu> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 07 Jul 2011 04:02:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:48150 Archived-At: Hello. Paul Eggert skrev 2011-07-06 20.11: > Currently Emacs uses sigprocmask to alter signal masks, but > sigprocmask is portable only for single-threaded applications, and > Emacs can be multithreaded when it uses GTK (and is likely to > become more multithreaded in the future). I've seen bug reports > about this for other apps, in which misuse of sigprocmask (where > pthread_sigmask should be used) causes segfaults and the like. I > haven't reproduced the problem with GNU Emacs but any such bugs > would quite possibly be random crashes that don't seem to be > related to sigprocmask. > This looks ok, as long as all signal handlers have SIGNAL_THREAD_CHECK at the beginning (they currently do). Jan D.