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#21965: 24.5; Emacs freezes when canceling at open file Date: Tue, 24 Nov 2015 05:34:55 +0200 Message-ID: <83io4sysrk.fsf@gnu.org> References: <8337vz6ca5.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1448336190 970 80.91.229.3 (24 Nov 2015 03:36:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Nov 2015 03:36:30 +0000 (UTC) Cc: maneeshkyadav@gmail.com, 21965@debbugs.gnu.org To: John Wiegley Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 24 04:36:14 2015 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 1a14Op-0001HY-2v for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Nov 2015 04:36:11 +0100 Original-Received: from localhost ([::1]:35903 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a14Op-0004UX-DT for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Nov 2015 22:36:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a14Ok-0004RF-7c for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2015 22:36:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a14Oh-0003OC-0r for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2015 22:36:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60434) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a14Og-0003O8-UK for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2015 22:36:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a14Og-0004vq-H2 for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2015 22:36:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Nov 2015 03:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21965 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21965-submit@debbugs.gnu.org id=B21965.144833610218870 (code B ref 21965); Tue, 24 Nov 2015 03:36:02 +0000 Original-Received: (at 21965) by debbugs.gnu.org; 24 Nov 2015 03:35:02 +0000 Original-Received: from localhost ([127.0.0.1]:50142 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a14Nh-0004u8-BT for submit@debbugs.gnu.org; Mon, 23 Nov 2015 22:35:01 -0500 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:52324) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a14Nf-0004ty-1k for 21965@debbugs.gnu.org; Mon, 23 Nov 2015 22:34:59 -0500 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NYA00L00UFXTU00@mtaout24.012.net.il> for 21965@debbugs.gnu.org; Tue, 24 Nov 2015 05:27:46 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NYA00MCJUYAJ310@mtaout24.012.net.il>; Tue, 24 Nov 2015 05:27:46 +0200 (IST) In-reply-to: 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: 208.118.235.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:109168 Archived-At: > From: John Wiegley > Cc: Eli Zaretskii , 21965@debbugs.gnu.org > Date: Mon, 23 Nov 2015 14:17:17 -0800 > > We're still missing file and line numbers for the Emacs code, which is odd. > But not terribly important, since the lockup is happening inside glib, it > appears. > > > frame #3: 0x00000001009db284 > > libglib-2.0.0.dylib`g_main_context_acquire + 42 > > So, here's that function, more or less: > > gboolean > g_main_context_acquire (GMainContext *context) > { > gboolean result = FALSE; > GThread *self = G_THREAD_SELF; > > if (context == NULL) > context = g_main_context_default (); > > LOCK_CONTEXT (context); > /* ... */ > } > > We're blocked waiting on the context. The question then being: who else has > that context? Is it another Emacs thread? > > Eli, does this ring any bells? No. And I'm not even convinced that's where we are blocked. It could be that this is part of a loop that Emacs is waiting in. To prove that we are blocked there, one needs to attach the debugger many times and see that the debugger finds Emacs at _exactly_ the same instruction. Or, after attaching, step Emacs and see that it cannot move even a single instructions. If this is really what happens, and Emacs cannot acquire a mutex, that would mean someone is holding that mutex, and the question is who that someone is.