From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.devel Subject: Re: emacs locked when internet connection is cut... Date: Wed, 2 May 2018 15:56:27 +0900 Message-ID: <4260C366-2B75-4501-BD7A-7D224C9C50A7@gmail.com> References: <83r2mvqvaq.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_AEDD4853-FE59-444A-AE3B-8B0031BEC61D" X-Trace: blaine.gmane.org 1525244085 8563 195.159.176.226 (2 May 2018 06:54:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 2 May 2018 06:54:45 +0000 (UTC) To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 02 08:54:40 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDley-00027X-9q for ged-emacs-devel@m.gmane.org; Wed, 02 May 2018 08:54:40 +0200 Original-Received: from localhost ([::1]:47584 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDlh5-00060U-9I for ged-emacs-devel@m.gmane.org; Wed, 02 May 2018 02:56:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDlgp-0005vK-DR for emacs-devel@gnu.org; Wed, 02 May 2018 02:56:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDlgm-0003ft-DO for emacs-devel@gnu.org; Wed, 02 May 2018 02:56:35 -0400 Original-Received: from mail-pf0-x22a.google.com ([2607:f8b0:400e:c00::22a]:42773) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fDlgm-0003f6-55 for emacs-devel@gnu.org; Wed, 02 May 2018 02:56:32 -0400 Original-Received: by mail-pf0-x22a.google.com with SMTP id a11so10955964pfn.9 for ; Tue, 01 May 2018 23:56:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=oUQUFD/dcZDxATY6VSSYCbz9Dv5SAhY138L9jLbuD7w=; b=SxgWX9Ev+lEd4MKtII0aKGKLZtV96uJz2Yr0M38aFFU7II1CkX7xd4RmeODCUT/MKG kWaYzZGLTL8iaWCsPTcTerNlg87DRasrkltOzCxDWrzuIDjuOG27Q7PmqDrvMwSFlX3T V6AsChrJRe7XSAIo214YEByq7BGKbLLixWli0ntlXeA2t5svGobBLUgA7xCkETdqMmxc H/slOOL2D60T5VJRt4mm+tAA36u3URM1ptyBYNhLqilGhtqICfYKPi5Io+D71FZ5YRpW TSPppLmDPQXnQ6joOF9tFX9H1+opPpeKy88S7wbEHuBx2IBdycqOugnImF1AyilCZs+k DuzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=oUQUFD/dcZDxATY6VSSYCbz9Dv5SAhY138L9jLbuD7w=; b=CqzE/BQa7dqp2wIAb1W+q+uw0EDnun7TCH9rPX+G+nRAfDRC7hdRkoveTPrGk7Dsrk fbrajDhbl7VcHbStKUIV9lHu3bU6EM0m6D1iBZxdbU/E50P09pyPLtvFINoI8fQ0Mscp vjruLqRf6TC4TOurSqnSfCkb2nvJdSYTJ3AL1t+3OxtTDYQef/AFINr2S2uwVdCZiFfs +ZxBylOXL6xNM6+5XR2e4jRkoewIqGe/TDokYFYZXUyjk3n0i+/fiinCz2l52rG9gXQM zHu+5Ztsy5IBZGNJ3G7/VejlJxgiWSZVY9qUTo/43HjnlvmV0S5wL0vGw/mmQmM08acu 3NGg== X-Gm-Message-State: ALQs6tDsVGIbLc3d8MZVjTHDmRRVi5xbGQeseJ2ahCHNfOyK8xg7LnXE sbrEg8oHL+MXfCiNemH5EX0iiQ== X-Google-Smtp-Source: AB8JxZrcbgpRC8pWyjP8dZatNkef4yzmq/gvNLXJf1V5TQ/qbWXSwcsvskhBNKxGRP49z06U66cT0g== X-Received: by 2002:a17:902:8f96:: with SMTP id z22-v6mr18704113plo.200.1525244190671; Tue, 01 May 2018 23:56:30 -0700 (PDT) Original-Received: from [192.168.1.7] (pl31219.ag0304.nttpc.ne.jp. [111.89.224.243]) by smtp.gmail.com with ESMTPSA id j74sm22413753pfk.25.2018.05.01.23.56.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 May 2018 23:56:29 -0700 (PDT) In-Reply-To: <83r2mvqvaq.fsf@gnu.org> X-Mailer: Apple Mail (2.3445.6.18) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::22a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:225022 Archived-At: --Apple-Mail=_AEDD4853-FE59-444A-AE3B-8B0031BEC61D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Eli, Thank you for the instructions. I've reconfigured emacs to make debugging easier (./configure = --enable-checking=3D'yes,glyphs' --enable-check-lisp-object-type = CFLAGS=3D'-O0 -g3') re-"make install"-ed it and launched gdb attached to = its PID. I can't seem to be able to run gdb and attach emacs without getting a = lot of error messages so I'm wondering if there is a better way to get = what you need to investigate into this issue. JC > On May 1, 2018, at 23:56, Eli Zaretskii wrote: >=20 >> From: Jean-Christophe Helary >> Date: Tue, 1 May 2018 17:37:48 +0900 >>=20 >> I was doing things with package.el when my connection got cut. Just = when emacs was trying to contact melpa.org:80... >>=20 >> The UI is locked, and even when I'm back online (I'm sending this = mail), emacs does not seem to notice... >>=20 >> Shouldn't there be a timeout for any function that requires external = ressources like an internet connection ? The current behavior is = *extremely* inconvenient... >=20 > We do have timeouts, and use async APIs where possible. Evidently, it > somehow doesn't work in your case. But you didn't give enough > information to start digging into the problem. Assuming this is > reproducible, please attach a debugger to Emacs when it hangs like > that and show the C-level backtrace. Please report the results as a > bug, using report-emacs-bug, which will also collect several important > aspects of your build and setup. >=20 > Armed with that knowledge, we might be able to investigate this > problem. >=20 > Thanks. Jean-Christophe Helary ----------------------------------------------- http://mac4translators.blogspot.com @brandelune --Apple-Mail=_AEDD4853-FE59-444A-AE3B-8B0031BEC61D Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Eli,

Thank = you for the instructions.

I've reconfigured emacs to make debugging easier (./configure = --enable-checking=3D'yes,glyphs' --enable-check-lisp-object-type = CFLAGS=3D'-O0 -g3') re-"make install"-ed it and launched gdb attached to = its PID.

I = can't seem to be able to run gdb and attach emacs without getting a lot = of error messages so I'm wondering if there is a better way to get what = you need to investigate into this issue.

JC


On May = 1, 2018, at 23:56, Eli Zaretskii <eliz@gnu.org> wrote:

From: Jean-Christophe = Helary <jean.christophe.helary@gmail.com>
Date: = Tue, 1 May 2018 17:37:48 +0900

I was doing = things with package.el when my connection got cut. Just when emacs was = trying to contact melpa.org:80...

The UI is = locked, and even when I'm back online (I'm sending this mail), emacs = does not seem to notice...

Shouldn't there = be a timeout for any function that requires external ressources like an = internet connection ? The current behavior is *extremely* = inconvenient...

We do have = timeouts, and use async APIs where possible.  Evidently, it
somehow doesn't work in your case.  But you didn't give = enough
information to start digging into the problem. =  Assuming this is
reproducible, please attach a = debugger to Emacs when it hangs like
that and show the = C-level backtrace.  Please report the results as a
bug,= using report-emacs-bug, which will also collect several important
aspects of your build and setup.

Armed with that knowledge, we might be able to investigate = this
problem.

Thanks.

Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune


= --Apple-Mail=_AEDD4853-FE59-444A-AE3B-8B0031BEC61D--