From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Maneesh Yadav Newsgroups: gmane.emacs.bugs Subject: bug#21965: 24.5; Emacs freezes when canceling at open file Date: Mon, 23 Nov 2015 16:30:59 -0800 Message-ID: References: <8337vz6ca5.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1448325138 32195 80.91.229.3 (24 Nov 2015 00:32:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Nov 2015 00:32:18 +0000 (UTC) Cc: 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 01:32:08 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 1a11Wh-0005Z5-Ug for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Nov 2015 01:32:08 +0100 Original-Received: from localhost ([::1]:35298 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a11Wi-000460-Ji for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Nov 2015 19:32:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a11Wf-00045f-15 for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2015 19:32:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a11Wc-000491-8t for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2015 19:32:04 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60357) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a11Wc-00048x-5E for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2015 19:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a11Wb-00008H-ND for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2015 19:32:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Maneesh Yadav Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Nov 2015 00:32:01 +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.1448325081455 (code B ref 21965); Tue, 24 Nov 2015 00:32:01 +0000 Original-Received: (at 21965) by debbugs.gnu.org; 24 Nov 2015 00:31:21 +0000 Original-Received: from localhost ([127.0.0.1]:50065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a11Vw-00007G-Ii for submit@debbugs.gnu.org; Mon, 23 Nov 2015 19:31:20 -0500 Original-Received: from mail-pa0-f50.google.com ([209.85.220.50]:33718) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a11Vd-00006X-21 for 21965@debbugs.gnu.org; Mon, 23 Nov 2015 19:31:19 -0500 Original-Received: by pabfh17 with SMTP id fh17so1572404pab.0 for <21965@debbugs.gnu.org>; Mon, 23 Nov 2015 16:31:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=kakkzjLKtfs+YRow+uQNNhpwnW6r4dxVlFyaleJEZ4c=; b=xZNvaM7tqoknRKI7DvknK25bP6DTyv/LIBbZKn/dE84ypZFdk80WrGIY1b5RHM/z6j jVxwiWTedKai2tcAF/pc22hHxmalF5rpItNrrX38C8ObVibMw7VwuugtGsvEIOqGCluf ZTMhPlMFq6Ou7l85a3mo9pnJSMTSi6+u0p//KkVxvCVbwVF0o/Pq+9xFrlJJiUfyVChD +ebEaRPzNBGU0pIE3KiP0cxQJGLk+ZrhulKZVRMN7ZEBnSQcVAUQTfkWymoM5T001nV3 AFFdXRnuercmAuyXRIl/aO3AbMyOCGfGqBLFoQUH2qngaFwdHcKQkkhKSkUVCjWt0WXr XMKA== X-Received: by 10.68.196.131 with SMTP id im3mr39278361pbc.59.1448325060068; Mon, 23 Nov 2015 16:31:00 -0800 (PST) Original-Received: by 10.66.196.135 with HTTP; Mon, 23 Nov 2015 16:30:59 -0800 (PST) In-Reply-To: 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:109163 Archived-At: I don't understand the apple framework/glib event handling structure and I doubt this is terribly informative, but for the sake of completeness the output of 'thread list' is pasted below: (lldb) thread list Process 23166 stopped * thread #1: tid = 0x4d18b, 0x00007fff8a861166 libsystem_kernel.dylib`__psynch_mutexwait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP thread #2: tid = 0x4d18c, 0x00007fff8a8613fa libsystem_kernel.dylib`__select + 10, name = 'gmain' (lldb) On Mon, Nov 23, 2015 at 2:17 PM, John Wiegley wrote: >>>>>> Maneesh Yadav writes: > >> Flog me if I am not doing this right. Seems that +debug on macports is the >> easy to make debug compiles (an old thread seemed to suggest that macports >> rejected this idea...but I guess it was eventually accepted). So installed >> emacs +debug and reproduced the crash, attached to emacs via lldb and got >> this backtrace (which looks a lot like the previous, can I provide better >> info somehow?): > > 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? > > John