From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#27585: segfault when evaluating a file containing only backticks Date: Sat, 15 Jul 2017 10:15:46 +0300 Message-ID: <83a846f9wd.fsf@gnu.org> References: <1499235670.28433.1@ssh.steve.org.uk> <070206be-9f8b-a324-0650-fd21b37a4132@cs.ucla.edu> <83mv87f8nr.fsf@gnu.org> <20170715050308.GA16419@steve.org.uk> <5b24c202-0d78-f9a8-56a7-50ff4ecdc423@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1500102981 28366 195.159.176.226 (15 Jul 2017 07:16:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 15 Jul 2017 07:16:21 +0000 (UTC) Cc: steve@steve.org.uk, 27585@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 15 09:16:12 2017 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 1dWHJE-0006sv-7v for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Jul 2017 09:16:12 +0200 Original-Received: from localhost ([::1]:41023 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWHJJ-0003yM-GE for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Jul 2017 03:16:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWHJA-0003yH-UM for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2017 03:16:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWHJ4-0001nc-0h for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2017 03:16:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36793) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dWHJ3-0001nX-Tg for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2017 03:16:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dWHJ3-0001UA-Of for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2017 03:16:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Jul 2017 07:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27585 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27585-submit@debbugs.gnu.org id=B27585.15001029535694 (code B ref 27585); Sat, 15 Jul 2017 07:16:01 +0000 Original-Received: (at 27585) by debbugs.gnu.org; 15 Jul 2017 07:15:53 +0000 Original-Received: from localhost ([127.0.0.1]:39470 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWHIv-0001Tl-1C for submit@debbugs.gnu.org; Sat, 15 Jul 2017 03:15:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59285) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWHIt-0001TX-Js for 27585@debbugs.gnu.org; Sat, 15 Jul 2017 03:15:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWHIk-0001XM-BS for 27585@debbugs.gnu.org; Sat, 15 Jul 2017 03:15:46 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55920) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWHIj-0001X0-Vy; Sat, 15 Jul 2017 03:15:42 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1330 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dWHIj-0008NA-5B; Sat, 15 Jul 2017 03:15:41 -0400 In-reply-to: <5b24c202-0d78-f9a8-56a7-50ff4ecdc423@cs.ucla.edu> (message from Paul Eggert on Fri, 14 Jul 2017 22:12:08 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:134579 Archived-At: > Cc: 27585@debbugs.gnu.org > From: Paul Eggert > Date: Fri, 14 Jul 2017 22:12:08 -0700 > > Steve Kemp wrote: > > $ /tmp/emacs/bin/emacs -Q --batch --script ./t.el > > Re-entering top level after C stack overflow > > [emacs still running] > > > > Compare that with the normal example: > > > > $ echo "(defun foo() "Test")" > t.el > > $ /tmp/emacs/bin/emacs -Q --batch --script ./t.el > > $ > > > > Perhaps not a huge problem, but it is a change I think? > > After a stack overflow, Emacs drops what it's doing and goes to the top level, > regardless of its command-line arguments. Perhaps it would be better if Emacs > did something else for this particular case. It's low priority, though. I think the idea is to let the user do whatever is necessary to end the session as quickly as possible. Granted, it is optimized for interactive usage, since the goal of the stack-overflow protection is to avoid losing unrelated edits due to some code that's gone awry, and that makes little sense in non-interactive sessions. So batch invocations might indeed do something else, like exit. I agree that the priority is not too high, because again, stack overflow is most harmful in interactive sessions.