From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.bugs Subject: bug#16603: 24.3.50; Segfault when viewing a backtrace Date: Mon, 10 Feb 2014 13:30:59 +0400 Message-ID: <52F89C53.1090709@yandex.ru> References: <878utw28pl.fsf@building.gnus.org> <52EB4AB4.8040004@yandex.ru> <83eh3o7es6.fsf@gnu.org> <87ha8klgeq.fsf@building.gnus.org> <838utw7dj2.fsf@gnu.org> <878utnk2mr.fsf@building.gnus.org> <8738jvk2do.fsf@building.gnus.org> <52F47397.5030509@yandex.ru> <87eh3ecs8f.fsf@building.gnus.org> <52F8711E.7070602@yandex.ru> <8761on5v8n.fsf@building.gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060707040000000806020408" X-Trace: ger.gmane.org 1392024737 16969 80.91.229.3 (10 Feb 2014 09:32:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Feb 2014 09:32:17 +0000 (UTC) Cc: 16603@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 10 10:32:24 2014 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 1WCnDy-0002NC-QU for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Feb 2014 10:32:23 +0100 Original-Received: from localhost ([::1]:54493 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCnDy-0003D4-BF for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Feb 2014 04:32:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39786) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCnDn-0003Cu-Uk for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2014 04:32:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCnDe-0004fG-Ii for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2014 04:32:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59448) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCnDe-0004f3-DU for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2014 04:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WCnDd-0003To-Lg for bug-gnu-emacs@gnu.org; Mon, 10 Feb 2014 04:32:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Antipov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Feb 2014 09:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16603 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16603-submit@debbugs.gnu.org id=B16603.139202467213280 (code B ref 16603); Mon, 10 Feb 2014 09:32:01 +0000 Original-Received: (at 16603) by debbugs.gnu.org; 10 Feb 2014 09:31:12 +0000 Original-Received: from localhost ([127.0.0.1]:39110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCnCp-0003S5-EZ for submit@debbugs.gnu.org; Mon, 10 Feb 2014 04:31:11 -0500 Original-Received: from forward20.mail.yandex.net ([95.108.253.145]:47138) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCnCl-0003Rc-GR for 16603@debbugs.gnu.org; Mon, 10 Feb 2014 04:31:09 -0500 Original-Received: from smtp16.mail.yandex.net (smtp16.mail.yandex.net [95.108.252.16]) by forward20.mail.yandex.net (Yandex) with ESMTP id 9CD7910413BC; Mon, 10 Feb 2014 13:31:00 +0400 (MSK) Original-Received: from smtp16.mail.yandex.net (localhost [127.0.0.1]) by smtp16.mail.yandex.net (Yandex) with ESMTP id 5B7B16A06F2; Mon, 10 Feb 2014 13:31:00 +0400 (MSK) Original-Received: from unknown (unknown [37.139.80.10]) by smtp16.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id RaEcTmYuPM-UxqaZkiX; Mon, 10 Feb 2014 13:30:59 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: d15eb4f0-9ac1-4db9-bb84-6445f07c06f4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1392024659; bh=4NYFCla74TVx1zVgcM0RTJYfpAnaNah8ZGyMmc7Vcvs=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type; b=YNS95uyatvF7sFLccZ+tCumwEAH8LS+zJGXqKdNRvQGDsUR3wVndZPeTFqhSHaNaQ uQY2fDknqU9Q9bWQKdLkSns7MhQzYF4NIAyDUj8jfok0/azsyO61ZecDyxZE8wxxaT YT2fhkXR+otHEI4qgQx5IHIZzcrYMRWG6gAbPesw= Authentication-Results: smtp16.mail.yandex.net; dkim=pass header.i=@yandex.ru User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: <8761on5v8n.fsf@building.gnus.org> 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: 140.186.70.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:85253 Archived-At: This is a multi-part message in MIME format. --------------060707040000000806020408 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 02/10/2014 10:37 AM, Lars Ingebrigtsen wrote: > I do > > (require 'gnus-group) > (setq debug-on-error t) > (gnus-read-ephemeral-emacs-bug-group 16577) > > select Rotem's article, `q' out of the backtrace, `g' Rotem's article, > and I either get a segfault then, or after repeating this a couple of > times. OK, I've got it. Can you try this? Dmitry --------------060707040000000806020408 Content-Type: text/x-patch; name="bug16603.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bug16603.patch" === modified file 'src/eval.c' --- src/eval.c 2014-02-03 09:37:43 +0000 +++ src/eval.c 2014-02-10 09:19:39 +0000 @@ -283,7 +283,9 @@ bool debug_while_redisplaying; ptrdiff_t count = SPECPDL_INDEX (); Lisp_Object val; - EMACS_INT old_max = max_specpdl_size, old_depth = max_lisp_eval_depth; + EMACS_INT old_depth = max_lisp_eval_depth; + /* Do not allow max_specpdl_size less than actual depth (Bug#16603). */ + EMACS_INT old_max = max (max_specpdl_size, count); if (lisp_eval_depth + 40 > max_lisp_eval_depth) max_lisp_eval_depth = lisp_eval_depth + 40; @@ -3721,7 +3723,9 @@ an error is signaled. You can safely use a value considerably larger than the default value, if that proves inconveniently small. However, if you increase it too far, -Emacs could run out of memory trying to make the stack bigger. */); +Emacs could run out of memory trying to make the stack bigger. +Note that this limit may be silently increased by the debugger +if `debug-on-error' or `debug-on-quit' is set. */); DEFVAR_INT ("max-lisp-eval-depth", max_lisp_eval_depth, doc: /* Limit on depth in `eval', `apply' and `funcall' before error. --------------060707040000000806020408--