From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Hanchrow Newsgroups: gmane.emacs.bugs Subject: bug#22120: Another backtrace Date: Thu, 24 Dec 2015 03:24:26 +0000 Message-ID: References: <83io425py0.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b2e1429c6de0405279c6063 X-Trace: ger.gmane.org 1450927519 13579 80.91.229.3 (24 Dec 2015 03:25:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Dec 2015 03:25:19 +0000 (UTC) Cc: 22120@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 24 04:25:11 2015 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 1aBwWd-0007KD-EZ for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Dec 2015 04:25:11 +0100 Original-Received: from localhost ([::1]:58715 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBwWc-0004dt-EB for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Dec 2015 22:25:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBwWX-0004aN-F4 for bug-gnu-emacs@gnu.org; Wed, 23 Dec 2015 22:25:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aBwWU-0000fT-03 for bug-gnu-emacs@gnu.org; Wed, 23 Dec 2015 22:25:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53765) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBwWT-0000fP-TH for bug-gnu-emacs@gnu.org; Wed, 23 Dec 2015 22:25:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aBwWT-0005DE-Pt for bug-gnu-emacs@gnu.org; Wed, 23 Dec 2015 22:25:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eric Hanchrow Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Dec 2015 03:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22120 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22120-submit@debbugs.gnu.org id=B22120.145092748320009 (code B ref 22120); Thu, 24 Dec 2015 03:25:01 +0000 Original-Received: (at 22120) by debbugs.gnu.org; 24 Dec 2015 03:24:43 +0000 Original-Received: from localhost ([127.0.0.1]:33134 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aBwWA-0005Cf-R6 for submit@debbugs.gnu.org; Wed, 23 Dec 2015 22:24:43 -0500 Original-Received: from mail-ig0-f178.google.com ([209.85.213.178]:33989) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aBwW9-0005CQ-Ac for 22120@debbugs.gnu.org; Wed, 23 Dec 2015 22:24:41 -0500 Original-Received: by mail-ig0-f178.google.com with SMTP id m11so76972197igk.1 for <22120@debbugs.gnu.org>; Wed, 23 Dec 2015 19:24:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-type; bh=lX6f3e4uVLI+WTas17beY/RWJT+aoPiuzFgpKeCaRkM=; b=v83P4+rGA1B5dFA7DyUXRy+v5jM/HsHvs5RkhW73GROd7m7DDdqKUJroihZ9PaQlbI WSdBft9dcy2fJ01L+kKpH0zA3RukFUVpXq7xjJuxhSkuS+CPdF/CRlyzO/hu6FDOYzUs zm4xQZcgYnZ7uYd2s9Dih1fUR9nOXsmA6USu1oFn6s0SStbQfahLUEUgaFfnSb6NK8Ne gitHvvSVdsbOO2LZdb8AGSxOJKq04qTIDvHNVKOv8waB3gIhJ/8UCvPMqzNcIRtGuWF0 TuNyuZ0Vu+2lh/syK+8s1ornFOP/ARMwfENYGM564TtLDsc5NBQYm024TBYFoEnz3mxS FVqA== X-Received: by 10.50.103.72 with SMTP id fu8mr33075395igb.59.1450927475578; Wed, 23 Dec 2015 19:24:35 -0800 (PST) In-Reply-To: <83io425py0.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:110332 Archived-At: --047d7b2e1429c6de0405279c6063 Content-Type: text/plain; charset=UTF-8 I don't think I've seen a segfault since I made this change -- it must have worked around the problem. On Sun, Dec 13, 2015 at 7:27 AM Eli Zaretskii wrote: > > From: Eric Hanchrow > > Date: Sat, 12 Dec 2015 22:37:08 +0000 > > > > It's starting to look like "lui-adjust-undo-list" might be culpable; I > think > > I've seen that function on the lisp stack each time. > > Looks like another reincarnation of bug#21667. > > Can you modify lui-adjust-undo-list so that GC is inhibited (by > binding gc-cons-threshold to most-positive-fixnum around the whole > function)? It looks dangerous to me that this function messes with > the undo list inside mapconcat, which could cause GC, which could > decide to compact the current buffer, including shortening its undo > list, while lui-adjust-undo-list modifies it. > --047d7b2e1429c6de0405279c6063 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I don't think I've seen a segfault since I made th= is change -- it must have worked around the problem.

On Sun, Dec 13, 2015 at 7:27 AM Eli Zaretskii = <eliz@gnu.org> wrote:
> From: Eric Hanchrow <eric.hanchrow@gmail.com>=
> Date: Sat, 12 Dec 2015 22:37:08 +0000
>
> It's starting to look like "lui-adjust-undo-list" might = be culpable; I think
> I've seen that function on the lisp stack each time.

Looks like another reincarnation of bug#21667.

Can you modify lui-adjust-undo-list so that GC is inhibited (by
binding gc-cons-threshold to most-positive-fixnum around the whole
function)?=C2=A0 It looks dangerous to me that this function messes with the undo list inside mapconcat, which could cause GC, which could
decide to compact the current buffer, including shortening its undo
list, while lui-adjust-undo-list modifies it.
--047d7b2e1429c6de0405279c6063--