From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#38264: 27.0.50; Emacs terminates unexpectedly when noninteractive is t Date: Wed, 20 Nov 2019 00:57:18 +0800 Message-ID: <87imnf4xe9.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> References: <87mucsshms.fsf@yantar92-laptop.i-did-not-set--mail-host-address--so-tickle-me> <835zjf3ldp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="112047"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38264@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 19 18:05:38 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iX6wb-000T17-5X for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Nov 2019 18:05:37 +0100 Original-Received: from localhost ([::1]:47824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iX6wZ-000216-3i for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Nov 2019 12:05:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45525) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iX6rG-00067W-HZ for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2019 12:00:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iX6rF-0006Dx-2d for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2019 12:00:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39598) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iX6rE-0006DE-VE for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2019 12:00:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iX6rE-00034E-SP for bug-gnu-emacs@gnu.org; Tue, 19 Nov 2019 12:00:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Nov 2019 17:00:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38264 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 38264-submit@debbugs.gnu.org id=B38264.157418274811670 (code B ref 38264); Tue, 19 Nov 2019 17:00:04 +0000 Original-Received: (at 38264) by debbugs.gnu.org; 19 Nov 2019 16:59:08 +0000 Original-Received: from localhost ([127.0.0.1]:48415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iX6qJ-00032A-N7 for submit@debbugs.gnu.org; Tue, 19 Nov 2019 11:59:07 -0500 Original-Received: from mail-yb1-f170.google.com ([209.85.219.170]:41698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iX6qG-00031e-NB for 38264@debbugs.gnu.org; Tue, 19 Nov 2019 11:59:05 -0500 Original-Received: by mail-yb1-f170.google.com with SMTP id d95so9067064ybi.8 for <38264@debbugs.gnu.org>; Tue, 19 Nov 2019 08:59:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=AsMprquEm8IUZyxlbF/086kU8+J03qbxBBiYFuaey+I=; b=MrHeD3Pg1UCevhV7da32HZb226ZhAp1Iz8o9iaS/72n7pOloEBBhmtRhRRim8sl1xJ D6hY/b28mBImF62JyaEPS+uYMYmJQrtRVkggz8+yK+VaO4/CqfR6AbWwAfezLiR5Uvu1 9jlwZ9ytSmdENGREtJ0Mi2gI0RZZlmBSYOWc7WlCRXd8Vn1e9QSzbN2Sf0aK1natrZh2 i+y4hEDNhmEjzArOXOlX4nGMVLT2rVFKbwRnezfbK+erTcDPOXIGbh9Xm1UjiJFgXk80 Nm3CuDwwjnHMhvIAB3FcSGNl+vMdd71ArNYYUiKsNj6BYn1YmFN+Frq/0B6adE/qQ72p BoJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=AsMprquEm8IUZyxlbF/086kU8+J03qbxBBiYFuaey+I=; b=fOSwcr3e0UCossTHtZqjFYxXPBIjy1bEQBKNvqVCJIOCo0e4HNic3pG8+gXXm4ds9Y sEJFKlPzTgriXBE/2IPMjpmHGYc9ZexDUuiVvISNjrl+O/rLUXt0GSUW9y4/1DhkUFLD a4E4q+QrKo1q+UoNqkUSOizA2dfKfBfxuO02kqa2mfufMp7CvbeO9pDxe2oRFxNYTB6m hG2zugBwMJhjSfDWRd66fzXcctOSh0MFm5yuGZNx+2B0i8rFJA/Dtw83OuCJelYlZgyx U0k7JgL61IKLk24a1OKk0aflPY8bFCY9YEZ9j1tGmwxQzlxnf2O/CUQzAa/+he4clcm3 uWRQ== X-Gm-Message-State: APjAAAX/M5yPcl61kpx50v5Gi/EKzeygw12b6OAsAuxse0wBJmbSO6ut OyGpBtJpqrwFD+6OZwSOotL9vvW0vNQ= X-Google-Smtp-Source: APXvYqwz7WHLpxIU54pnf+XBiFu/IYJJpKtOKnJ4w84rtJxX04uV01nPA04TwRK33U9KnftXbYC35w== X-Received: by 2002:a25:774b:: with SMTP id s72mr28190263ybc.287.1574182738953; Tue, 19 Nov 2019 08:58:58 -0800 (PST) Original-Received: from localhost ([5.226.137.4]) by smtp.gmail.com with ESMTPSA id m20sm9658187ywd.104.2019.11.19.08.58.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Nov 2019 08:58:58 -0800 (PST) In-Reply-To: <835zjf3ldp.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:172003 Archived-At: > This is a feature: in non-interactive mode entering a debugger > displays the backtrace and then kills Emacs. It indeed makes sense. However, it does not make sense when noninteractive is manually set to 't in normal interactive mode. It may be difficult to see this backtrace if emacs was started graphically. Note that package.el, for example, can set noninteractive to 't at some point (see package-generate-autoloads), even if emacs is otherwise interactive. > Why are you binding noninteractive to t while debug-on-error is > enabled? Similar to package.el, straight.el also binds noninteractive to 't when generating autoloads. As a result, emacs sometimes terminates when building packages (https://github.com/raxod502/straight.el/issues/431). Regards, Ihor Eli Zaretskii writes: > tags 38264 notabug > thanks > >> From: Ihor Radchenko >> Date: Tue, 19 Nov 2019 10:51:39 +0800 >> >> When I try to run the following code, graphical emacs window terminates >> losing all the unsaved data. >> >> (setq debug-on-error t) >> (let ((noninteractive t)) >> (/ 1 0)) >> >> The problem is reproducible with emacs -Q. >> Running the code without debug-on-error set to t does not trigger >> termination. > > This is a feature: in non-interactive mode entering a debugger > displays the backtrace and then kills Emacs. > > Why are you binding noninteractive to t while debug-on-error is > enabled?