GNU bug report logs - #29463
27.0.50; Backtraces with large strings is very slow

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Lars Ingebrigtsen <larsi@HIDDEN>; merged with #18558; dated Mon, 27 Nov 2017 02:54:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Merged 18558 29463. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 29463 <at> debbugs.gnu.org:


Received: (at 29463) by debbugs.gnu.org; 29 Nov 2017 01:48:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 28 20:48:26 2017
Received: from localhost ([127.0.0.1]:35382 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eJrUA-0003Hx-Ia
	for submit <at> debbugs.gnu.org; Tue, 28 Nov 2017 20:48:26 -0500
Received: from mail-io0-f180.google.com ([209.85.223.180]:35501)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>)
 id 1eJrU8-0003He-Mr; Tue, 28 Nov 2017 20:48:24 -0500
Received: by mail-io0-f180.google.com with SMTP id q15so2062898ioh.2;
 Tue, 28 Nov 2017 17:48:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=sender:from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=gs7dXGFucfXWwYo3AIJlV2e1vHeuQrzgvzQACdhpq80=;
 b=Do6w32krKIniqaDNUmTf5/UFEyw+glkwWuaT69J2oSnN5FR0trNYjwSQ8ouxN/plo8
 /hozgp+Hh7DULo1Dw8ZJ7b39BFA7WZG9dpShBcLJm5YL6Bj4jfeVhPqO9rJspi/hdAF9
 Vrnyzh4khiuksG/2jE24Iu1U96zp9a2YUkYOUYGvYvbBi9dJpzBw0uEHJnAIFjclGIoo
 50RcPvQfeSyvrLNkbMggtXv5B3RyCPII64jKSM3+vzC99syYZwNytvcJ4AfIVeth7IE4
 YlVt31sV8mBZ5XDRhd1wuFpeunHgKe3Rv1jkPoWHFINdRd2FXD1s19g+tk+YmtSt6awI
 7h9A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:from:to:cc:subject:references:date
 :in-reply-to:message-id:user-agent:mime-version;
 bh=gs7dXGFucfXWwYo3AIJlV2e1vHeuQrzgvzQACdhpq80=;
 b=ploXh43JBloGs3iuGR5GGKIZBvz1xbGEyOuNBRRJ6A9lqJPzvpAY+t1GbWC0Kvw+x9
 4XtV2qofd+cEhfuT1Kap9Tt1RVee90WIXDSwZTkWZi+ypTNfb9ikf89hWZN5nEUUZSV8
 npAlm0+kfIPVQD22CYGNBfOv3WYImFzg/NpXs41gvv0TlbncRTWIwqI3mu7md0GQsRNm
 grCHzCpioF08OU1tgWyH5sc7MkaO0/+4cvpDE7xGueCmItwYzs/Bo9dNDmn9anirZjUV
 nUfyjcnKsr6fyXw/wNomKOwRT2AHrQV07g4NDOv7kZyd5Ydq321CdqC9n1tlSwZXxSyV
 4Jiw==
X-Gm-Message-State: AJaThX53VzfWpdtQxKWWgR8ZaacNgDgP6+gkEEbkQLCeI2NIy18MB/3e
 fk5Rq3hd+SfxaNIe9wAXxj17oQ==
X-Google-Smtp-Source: AGs4zMbWVBQrdOAIQ6eDEENAHAVDadzCMlwwdSI7aF51ifj/zhID675c0yPGHIrqY85bkNeB2C6tLg==
X-Received: by 10.107.101.11 with SMTP id z11mr1647876iob.66.1511920098877;
 Tue, 28 Nov 2017 17:48:18 -0800 (PST)
Received: from zebian ([45.2.119.34])
 by smtp.googlemail.com with ESMTPSA id e68sm12660058ite.0.2017.11.28.17.48.17
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Tue, 28 Nov 2017 17:48:18 -0800 (PST)
From: Noam Postavsky <npostavs@HIDDEN>
To: Kaushal Modi <kaushal.modi@HIDDEN>
Subject: Re: bug#29463: Backtraces with large strings is very slow
References: <m38tesh1p3.fsf@HIDDEN>
 <CAFyQvY093hG0Y2h4Dp3=CRTog_4K57WW30B91RJDp-O+upv1Bw@HIDDEN>
Date: Tue, 28 Nov 2017 20:48:16 -0500
In-Reply-To: <CAFyQvY093hG0Y2h4Dp3=CRTog_4K57WW30B91RJDp-O+upv1Bw@HIDDEN>
 (Kaushal Modi's message of "Tue, 28 Nov 2017 22:33:07 +0000")
Message-ID: <877eu9n9cv.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 29463
Cc: 29463 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

merge 29463 18558
quit

Kaushal Modi <kaushal.modi@HIDDEN> writes:

>> I was trying to debug some code that dealt with very large SVG
> images,
> and getting a backtrace buffer proved impossible -- Emacs would just
> hang.
>
> +1. Though I see that slow-down on backtrace on emacs-26 branch too..
> especially when edebugging/debugging through code in an Org exporter.

It's been reported as far back as 24.4.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#29463; Package emacs. Full text available.

Message received at 29463 <at> debbugs.gnu.org:


Received: (at 29463) by debbugs.gnu.org; 28 Nov 2017 22:33:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 28 17:33:24 2017
Received: from localhost ([127.0.0.1]:35250 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eJoRQ-00073z-Fw
	for submit <at> debbugs.gnu.org; Tue, 28 Nov 2017 17:33:24 -0500
Received: from mail-yw0-f171.google.com ([209.85.161.171]:45364)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <kaushal.modi@HIDDEN>) id 1eJoRP-00073m-If
 for 29463 <at> debbugs.gnu.org; Tue, 28 Nov 2017 17:33:23 -0500
Received: by mail-yw0-f171.google.com with SMTP id y187so608991ywd.12
 for <29463 <at> debbugs.gnu.org>; Tue, 28 Nov 2017 14:33:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to;
 bh=3/SxNfrKUiYcLLjWvFo60QrpolD1BYrW7ImmxYLdFQQ=;
 b=fCsxj+qKWfzBuhBSrjM+yLJ5i95P6pfVs2VEF8qtAbOZDiDy2A2OHYUcplNXl8wy6V
 kmBA9lxVBQCI8GVMPfcYGN0MowTTThgx0MTxctWdC8owGEqSOZXXraBzk6sXzsqvMUlA
 yinbRyloUW+g7dNkABqBCz8i+oCXsEg6P9T5sSZfar/OtQLdwjS0h+xF8QlauzaJUdpy
 SVDyXkNPMdg7SCG8xbXKXzi2YbrOjHjEUnN6Xw13oTzW3IgPV5SH/FfoczZ28wfM2wEG
 /MlCiXOu/Oz+tGLCRSy0JQ8pZGtI8ZHGh/Wv15KWRNf/9IXYk4JH16cWHAhCQcF6Meob
 ah4g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=3/SxNfrKUiYcLLjWvFo60QrpolD1BYrW7ImmxYLdFQQ=;
 b=oOjg+/nr7xR0UwpTeGu9jueN3JRmT3sl2o3Uw6yzBJWvoiBMYwljEMaqgF/Pn5rylu
 V1dc4cbew8LdNq2WxxhxJ6HC+Zdt7sPrmE6cdvNI8MWehG/CYaYh4LG5zPlyK94dmUac
 dzC82aJ609B+V9iWCrJu7xhTs9dQJBk5wyr7c7oJKHq1oNY7m8E7IvbphFjWzjmiQWs6
 dEveEx46aBiO0bOUy+udRONDJfBKKYUHAOTSoC94gKjB99ZpwBOwOUhEDTVv1eCVQOVQ
 pkczy/xOmUyE2ekZknOu0sn4dvIhM7iB074hT9daSKNuLA0OGws4uIrYiHjovsSgRLvW
 Vm+g==
X-Gm-Message-State: AJaThX5GCmsDYB1RRwaa67V9u3l7XVLqkc5JV23EppnswbvWrpAb0LJa
 DVTrfbeTmRGH9D89VvkJ8JUaXVtxHbO0M+7GoN0=
X-Google-Smtp-Source: AGs4zMY/1MWqrrS+WXOvTJUTDSZgux6uhy3/QUoYW0trkip0U2LT+qR40WyrXZIMgnoHnQLz3gy1IEqWaABtZtMvcnA=
X-Received: by 10.129.6.215 with SMTP id 206mr468447ywg.353.1511908397609;
 Tue, 28 Nov 2017 14:33:17 -0800 (PST)
MIME-Version: 1.0
From: Kaushal Modi <kaushal.modi@HIDDEN>
Date: Tue, 28 Nov 2017 22:33:07 +0000
Message-ID: <CAFyQvY093hG0Y2h4Dp3=CRTog_4K57WW30B91RJDp-O+upv1Bw@HIDDEN>
Subject: Backtraces with large strings is very slow
To: 29463 <at> debbugs.gnu.org
Content-Type: multipart/alternative; boundary="001a1142e206f8fab8055f129a0e"
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 29463
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

--001a1142e206f8fab8055f129a0e
Content-Type: text/plain; charset="UTF-8"

> I was trying to debug some code that dealt with very large SVG images,
and getting a backtrace buffer proved impossible -- Emacs would just
hang.

+1. Though I see that slow-down on backtrace on emacs-26 branch too..
especially when edebugging/debugging through code in an Org exporter.

Org exporters use an INFO plist that contains loads of information for the
whole Org buffer (which is common to be 1000's of lines). So each time the
edebug step comes to the info variable, it could few minutes for emacs
before I can move on to the next edebug step.
-- 

Kaushal Modi

--001a1142e206f8fab8055f129a0e
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div><div>&gt; I was trying to debug some code that d=
ealt with very large SVG images,<br>and getting a backtrace buffer proved i=
mpossible -- Emacs would just<br>hang.<br><br></div>+1. Though I see that s=
low-down on backtrace on emacs-26 branch too.. especially when edebugging/d=
ebugging through code in an Org exporter.<br><br></div>Org exporters use an=
 INFO plist that contains loads of information for the whole Org buffer (wh=
ich is common to be 1000&#39;s of lines). So each time the edebug step come=
s to the info variable, it could few minutes for emacs before I can move on=
 to the next edebug step.<br></div></div><div dir=3D"ltr">-- <br></div><div=
 class=3D"gmail_signature" data-smartmail=3D"gmail_signature"><p dir=3D"ltr=
">Kaushal Modi</p>
</div>

--001a1142e206f8fab8055f129a0e--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#29463; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 27 Nov 2017 02:53:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Nov 26 21:53:54 2017
Received: from localhost ([127.0.0.1]:59859 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eJ9YP-00018v-Tb
	for submit <at> debbugs.gnu.org; Sun, 26 Nov 2017 21:53:54 -0500
Received: from eggs.gnu.org ([208.118.235.92]:55386)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1eJ9YN-00018i-R9
 for submit <at> debbugs.gnu.org; Sun, 26 Nov 2017 21:53:52 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <larsi@HIDDEN>) id 1eJ9YH-0008Mh-Ul
 for submit <at> debbugs.gnu.org; Sun, 26 Nov 2017 21:53:46 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:60291)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <larsi@HIDDEN>) id 1eJ9YH-0008Mb-Rc
 for submit <at> debbugs.gnu.org; Sun, 26 Nov 2017 21:53:45 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:46349)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <larsi@HIDDEN>) id 1eJ9YG-0003O8-L4
 for bug-gnu-emacs@HIDDEN; Sun, 26 Nov 2017 21:53:45 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <larsi@HIDDEN>) id 1eJ9YD-0008Lp-Iw
 for bug-gnu-emacs@HIDDEN; Sun, 26 Nov 2017 21:53:44 -0500
Received: from hermes.netfonds.no ([80.91.224.195]:39930)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <larsi@HIDDEN>) id 1eJ9YD-0008IN-BT
 for bug-gnu-emacs@HIDDEN; Sun, 26 Nov 2017 21:53:41 -0500
Received: from cm-84.215.25.180.getinternet.no ([84.215.25.180] helo=stories)
 by hermes.netfonds.no with esmtpsa
 (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1eJ9Y0-0007Te-Ab
 for bug-gnu-emacs@HIDDEN; Mon, 27 Nov 2017 03:53:30 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 27.0.50; Backtraces with large strings is very slow
Date: Mon, 27 Nov 2017 03:53:28 +0100
Message-ID: <m38tesh1p3.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)


I was trying to debug some code that dealt with very large SVG images,
and getting a backtrace buffer proved impossible -- Emacs would just
hang.

Here's a trivial test case:

(let ((a (make-string 100000000 ?a)))
 (debug a))

On my machine, this takes about half a minute to display, but if you
have deeply nested code that the debugger is trying to display, you'll
get that additional time per frame, I think, so it can take arbitrarily
long to render the buffer.

It would be nice if the backtrace buffer would just chop off
ridiculously long strings instead of printing them.  Perhaps controlled
by a -print-length variable?


In GNU Emacs 27.0.50 (build 4, x86_64-pc-linux-gnu, GTK+ Version 3.22.11)
 of 2017-10-26 built on stories
Repository revision: 1ad56d0a6bdd07c722a3c161096a16f70d1cbb35
Windowing system distributor 'The X.Org Foundation', version 11.0.11902000
System Description:	Debian GNU/Linux 9.2 (stretch)


-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





Acknowledgement sent to Lars Ingebrigtsen <larsi@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#29463; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 29 Nov 2017 02:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.