From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.bugs Subject: bug#33034: `unwind-protect' cleanup form is not executed if body dies in stack overflow Date: Sat, 13 Oct 2018 12:35:46 +0200 Message-ID: References: <83k1mmuoli.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1539426910 19818 195.159.176.226 (13 Oct 2018 10:35:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 13 Oct 2018 10:35:10 +0000 (UTC) Cc: 33034@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 13 12:35:05 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1gBHGD-00052B-EQ for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Oct 2018 12:35:05 +0200 Original-Received: from localhost ([::1]:44448 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gBHIJ-0001WN-Kq for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Oct 2018 06:37:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gBHIA-0001W5-D7 for bug-gnu-emacs@gnu.org; Sat, 13 Oct 2018 06:37:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gBHI7-0005ZI-8T for bug-gnu-emacs@gnu.org; Sat, 13 Oct 2018 06:37:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43516) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gBHI7-0005ZC-4Q for bug-gnu-emacs@gnu.org; Sat, 13 Oct 2018 06:37:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gBHI5-0001eh-Ka for bug-gnu-emacs@gnu.org; Sat, 13 Oct 2018 06:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Pogonyshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Oct 2018 10:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33034 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33034-submit@debbugs.gnu.org id=B33034.15394269646292 (code B ref 33034); Sat, 13 Oct 2018 10:37:01 +0000 Original-Received: (at 33034) by debbugs.gnu.org; 13 Oct 2018 10:36:04 +0000 Original-Received: from localhost ([127.0.0.1]:47774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gBHHA-0001dQ-FD for submit@debbugs.gnu.org; Sat, 13 Oct 2018 06:36:04 -0400 Original-Received: from mail-wr1-f47.google.com ([209.85.221.47]:33059) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gBHH9-0001cv-6E for 33034@debbugs.gnu.org; Sat, 13 Oct 2018 06:36:03 -0400 Original-Received: by mail-wr1-f47.google.com with SMTP id e4-v6so15981058wrs.0 for <33034@debbugs.gnu.org>; Sat, 13 Oct 2018 03:36:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zlbP19V8795KWzmLWwnuF2QAZ8BqGRREIUA4red0lRM=; b=uyoqQLSpSV+rlLB0GC1qluJGsSV/suQQkVZ5EEa6BexF5VBUBJ/7ZbbU9ReLywRxMD VXpOmlZ1oI6+L+dBncd78Nb8KfS7ZjQVcMWEc+iCMXBntGp21urxvNpkum5SF6CENgr3 WaJBig8JCXun9PAMDVnWGKK9tAdza0Z+SigEgsPpkgIsmQjuZV3rMucV/eYyFjFeHt0w FBxDLOQ/J9nraipxh0lv89oSuk7vAH5DT6Ug34L1c6PTbTjAQk1gaI05+mE+4ObBHOyi vORtetSgtSkJBr/8o3PVE8XFoLgUPukNJDldc/R4pduBp1FBJc2Xx6vCH1yW7h+CFRow 9k8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zlbP19V8795KWzmLWwnuF2QAZ8BqGRREIUA4red0lRM=; b=kv2swt9c5WlB8BL5Li0oEslEBKY27VYpzR0m4qjHBMIzL08dt3ArSNtow5B6VPDqKg k4Al0daMMTQ7oZWzEgJL9T2Pbu720Vc1INUfGG2RshYG9rLzTVW2qcxgUmMmYqgLt58U NXogNlkMQU/vOpC72mFXuCEFyru9GMIjpYZcy6yokemAzThjiH8E2oG2qcWxeagbkk61 553DUI3jCs3gbquUXY6yppwrB3/70TQdgkcuWPKw/4QGuyq627SUpDVF22wE/JQVV0Yt +jrPyJz5UDez7iwY8JG02O5V3pe11xaykH6zkiJMGCWHfMfhu2EtL0z+tIjystxGqyfs sv2Q== X-Gm-Message-State: ABuFfogebHglvsEiaonGA+zNZ/KWJiLj6qrszpy8rGAIsgocq0jncUnB N/Z7GIGfxhrWAVowhL0N3tiScCl8HlJj4w9OBw== X-Google-Smtp-Source: ACcGV61x6LO5Z//UgbofmABq7F9mswW6SZD49LTL1a3Vldsm2yHGY4/zEuBbhV5k0ObOS/GTDMl5A8pF3RRWYnWfUIk= X-Received: by 2002:adf:e542:: with SMTP id z2-v6mr7673999wrm.53.1539426957387; Sat, 13 Oct 2018 03:35:57 -0700 (PDT) In-Reply-To: <83k1mmuoli.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: 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" Xref: news.gmane.org gmane.emacs.bugs:151208 Archived-At: I see. Wonderful approach. At least I'm not supposed to restart my machine. On Sat, 13 Oct 2018 at 12:29, Eli Zaretskii wrote: > > > From: Paul Pogonyshev > > Date: Sat, 13 Oct 2018 12:07:48 +0200 > > > > To reproduce: > > > > (defun overflow () > > (overflow)) > > (defun test () > > (interactive) > > (message "BEFORE") > > (unwind-protect > > (overflow) > > (message "CLEANUP"))) > > > > Invocation of `test' never issues message "CLEANUP", whether it is run > > interactively or non-interactively. > > You are not supposed to continue using Emacs as usual after it > recovered from a C stack overflow. You are supposed to exit Emacs and > restart the session. > > The C stack overflow recovery is provided to allow you to save your > edits instead of losing them. > > P.S. I was somehow certain that we say the above somewhere in the > docs, but I cannot find it, so maybe I was dreaming. Patches to add > that are welcome.