From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fabrice Popineau Newsgroups: gmane.emacs.bugs Subject: bug#12544: -r110296..110297 causes random crashes in optimized build on Windows Date: Mon, 1 Oct 2012 13:32:13 +0200 Message-ID: References: <83ipaud30i.fsf@gnu.org> <83fw5ycz84.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f6474fdfde17004cafdc288 X-Trace: ger.gmane.org 1349091232 31262 80.91.229.3 (1 Oct 2012 11:33:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Oct 2012 11:33:52 +0000 (UTC) Cc: lekktu@gmail.com, 12544@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 01 13:33:56 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 1TIeFw-0008Rj-1y for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Oct 2012 13:33:48 +0200 Original-Received: from localhost ([::1]:55861 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIeFq-00036P-H4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Oct 2012 07:33:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIeFl-00035X-Ai for bug-gnu-emacs@gnu.org; Mon, 01 Oct 2012 07:33:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TIeFk-0004sS-4t for bug-gnu-emacs@gnu.org; Mon, 01 Oct 2012 07:33:37 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54478) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIeFk-0004sO-1X for bug-gnu-emacs@gnu.org; Mon, 01 Oct 2012 07:33:36 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TIeG9-00052G-Kt for bug-gnu-emacs@gnu.org; Mon, 01 Oct 2012 07:34:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Fabrice Popineau Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Oct 2012 11:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12544 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12544-submit@debbugs.gnu.org id=B12544.134909118419296 (code B ref 12544); Mon, 01 Oct 2012 11:34:01 +0000 Original-Received: (at 12544) by debbugs.gnu.org; 1 Oct 2012 11:33:04 +0000 Original-Received: from localhost ([127.0.0.1]:35791 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TIeFD-00051A-3b for submit@debbugs.gnu.org; Mon, 01 Oct 2012 07:33:03 -0400 Original-Received: from mail-wg0-f46.google.com ([74.125.82.46]:48858) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TIeFA-00050l-U0 for 12544@debbugs.gnu.org; Mon, 01 Oct 2012 07:33:01 -0400 Original-Received: by wgbdt12 with SMTP id dt12so3287641wgb.15 for <12544@debbugs.gnu.org>; Mon, 01 Oct 2012 04:32:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=xRAsXbhZ/rg9HUAiMTd+y2hwLD9ienJn7pM/5gRRxDQ=; b=LD/kHF8yQYQIFxdzHQ8ep6KN1M8fPCyFxPfzsVJqxfar/pyepfeI/YYI6uomLLV6mq 1zmckgXs4oUidf4rP4SuC3ZUGZpPQ9OkOGIYfpPK7l7OUe/73Ai5C+taLTy/8qFY3XVJ 1YnWGc53GOeRMXDPWppA3HCBykxv6AAYm4sEcWwn14UegbrRnOc9Xw6Qez5Jhmfago9p z2GBomiVTeo35uSvLRT8FA6bQj9JxHfDMuDAFBO/7geZ/QoJ4KcVccpfrTHZ9XQNT29f 4Yc7yZnTVJdczBFVOXBAH1OTWX2fLSrWPyyDYhdBvdAXM4MJyjLgq3mqDOZn41SpXHse 9eUA== Original-Received: by 10.180.107.163 with SMTP id hd3mr13993570wib.19.1349091153797; Mon, 01 Oct 2012 04:32:33 -0700 (PDT) Original-Received: by 10.194.26.162 with HTTP; Mon, 1 Oct 2012 04:32:13 -0700 (PDT) In-Reply-To: <83fw5ycz84.fsf@gnu.org> X-Google-Sender-Auth: 1zPWDB6IWfRyz_iHUX72RuTBuus 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:65069 Archived-At: --e89a8f6474fdfde17004cafdc288 Content-Type: text/plain; charset=ISO-8859-1 > I think I fixed this in trunk revision 110318. The problem was that > the call to term_ntproc, as part of shutting down Emacs, deleted the > critical sections used by the timer threads and by setitimer, so any > call to setitimer after that would use an invalid critical section > object. I now make sure any calls to setitimer after deleting the > critical sections will return immediately without doing anything. > > The explanation seems fine. The experimentation too : I did a bootstrap (64bits full optimization). It ran smoothly. Great job. Fabrice --e89a8f6474fdfde17004cafdc288 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I think I fix= ed this in trunk revision 110318. =A0The problem was that
the call to term_ntproc, as part of shutting down Emacs, deleted the
critical sections used by the timer threads and by setitimer, so any
call to setitimer after that would use an invalid critical section
object. =A0I now make sure any calls to setitimer after deleting the
critical sections will return immediately without doing anything.


The explanation seems fine. The experi= mentation too : I did a bootstrap
(64bits full optimization). It = ran smoothly.

Great job.

Fabrice

--e89a8f6474fdfde17004cafdc288--