From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#17753: Cygwin emacs-X11 core dump Date: Wed, 17 Sep 2014 20:06:07 +0300 Message-ID: <83fvfq2n40.fsf@gnu.org> References: " <21431.6898.745604.392984@wombat.mininet>" <53B805C7.8030209@cornell.edu> <21435.4511.658539.666411@wombat.mininet> <53BD4A64.8000003@cornell.edu> <457212308be445a70279d3ece6e28207@mhoenicka.de> <993b66d09d7bfc46fc7433de63fde3be@mhoenicka.de> <83sijq362c.fsf@gnu.org> <5419A604.8060201@cornell.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1410973647 27363 80.91.229.3 (17 Sep 2014 17:07:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Sep 2014 17:07:27 +0000 (UTC) Cc: 17753@debbugs.gnu.org, markus.hoenicka@mhoenicka.de To: Ken Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 17 19:07:19 2014 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 1XUIhK-0000r6-TY for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Sep 2014 19:07:19 +0200 Original-Received: from localhost ([::1]:46391 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUIhJ-0006F8-O1 for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Sep 2014 13:07:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53755) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUIhC-0006F2-U4 for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2014 13:07:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUIh7-00026d-OO for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2014 13:07:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUIh7-00026O-LE for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2014 13:07:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XUIh3-0002I6-UM for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2014 13:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Sep 2014 17:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17753 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 17753-submit@debbugs.gnu.org id=B17753.14109735758743 (code B ref 17753); Wed, 17 Sep 2014 17:07:01 +0000 Original-Received: (at 17753) by debbugs.gnu.org; 17 Sep 2014 17:06:15 +0000 Original-Received: from localhost ([127.0.0.1]:43570 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XUIgI-0002Gw-9x for submit@debbugs.gnu.org; Wed, 17 Sep 2014 13:06:14 -0400 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:37006) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XUIgD-0002Gl-E8 for 17753@debbugs.gnu.org; Wed, 17 Sep 2014 13:06:10 -0400 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NC2000001TGX700@mtaout24.012.net.il> for 17753@debbugs.gnu.org; Wed, 17 Sep 2014 20:00:48 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NC200HEL1XBEB80@mtaout24.012.net.il>; Wed, 17 Sep 2014 20:00:48 +0300 (IDT) In-reply-to: <5419A604.8060201@cornell.edu> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:93429 Archived-At: > Date: Wed, 17 Sep 2014 11:17:24 -0400 > From: Ken Brown > CC: 17753@debbugs.gnu.org > > On 9/17/2014 6:16 AM, Eli Zaretskii wrote: > > Anyway, one thing that strikes me (and is consistent across all your > > reports until now) is that atimer.c functions are run from a separate > > thread, not the main thread (which is Thread 1). Ken, is this normal > > in the Cygwin-w32 build? > > Timer functions in general are run in the main thread. That's what I'd expect. > I don't think the backtrace of Thread 2 can be trusted. But if you look at all the backtraces posted in this bug, they all tell the same story: thread 2 seems to run run_timers. So before we decide this is bogus data, I think we should explore the possibility that GDB really tells the truth here. > You can see the expected timer functions running in the main thread, but > I have no idea what's going on in Thread 2. Is run_timers really being > called there, or is that just an artifact of a corrupt stack? Hard to say. But note that do_pending_atimers calls block_atimers before it calls run_timers, and block_atimers calls pthread_sigmask. Could this do something weird to the threads, like switch to another thread? > I think I should take this to the Cygwin list, unless you have other > suggestions of things to look at. Discussing this on the Cygwin list is probably the best place. Thanks.