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#30626: 26.0.91; Crash when traversing a `stream-of-directory-files' Date: Tue, 27 Feb 2018 20:00:39 +0200 Message-ID: <831sh61feg.fsf@gnu.org> References: <87inaiss6l.fsf@web.de> <6FCF6ACA-4F29-4B6B-BE9D-D7130C6E9495@gnu.org> <87fu5moe4c.fsf@web.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1519754352 24567 195.159.176.226 (27 Feb 2018 17:59:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Feb 2018 17:59:12 +0000 (UTC) Cc: 30626@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 27 18:59:08 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 1eqjWt-0005ul-S6 for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Feb 2018 18:59:07 +0100 Original-Received: from localhost ([::1]:39185 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqjYw-0006CJ-6x for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Feb 2018 13:01:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqjYo-0006B2-9z for bug-gnu-emacs@gnu.org; Tue, 27 Feb 2018 13:01:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqjYk-00087M-ST for bug-gnu-emacs@gnu.org; Tue, 27 Feb 2018 13:01:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56235) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eqjYk-00087E-Ow for bug-gnu-emacs@gnu.org; Tue, 27 Feb 2018 13:01:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eqjYk-0002eL-Fg for bug-gnu-emacs@gnu.org; Tue, 27 Feb 2018 13:01:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Feb 2018 18:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org, 30626@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.151975445710166 (code B ref -1); Tue, 27 Feb 2018 18:01:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Feb 2018 18:00:57 +0000 Original-Received: from localhost ([127.0.0.1]:35899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eqjYe-0002du-Sm for submit@debbugs.gnu.org; Tue, 27 Feb 2018 13:00:57 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eqjYd-0002dh-G9 for submit@debbugs.gnu.org; Tue, 27 Feb 2018 13:00:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqjYX-0007yO-QJ for submit@debbugs.gnu.org; Tue, 27 Feb 2018 13:00:50 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:39218) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eqjYX-0007yD-M7 for submit@debbugs.gnu.org; Tue, 27 Feb 2018 13:00:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqjYW-00067P-9a for bug-gnu-emacs@gnu.org; Tue, 27 Feb 2018 13:00:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqjYS-0007up-J4 for bug-gnu-emacs@gnu.org; Tue, 27 Feb 2018 13:00:48 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42529) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqjYJ-0007qX-JK; Tue, 27 Feb 2018 13:00:35 -0500 Original-Received: from [176.228.60.248] (port=2484 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eqjYI-0003P6-SW; Tue, 27 Feb 2018 13:00:35 -0500 In-reply-to: <87fu5moe4c.fsf@web.de> (message from Michael Heerdegen on Tue, 27 Feb 2018 12:39:47 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:143709 Archived-At: > From: Michael Heerdegen > Cc: bug-gnu-emacs@gnu.org, 30626@debbugs.gnu.org > Date: Tue, 27 Feb 2018 12:39:47 +0100 > > Eli Zaretskii writes: > > > I guess it's a stack overflow: that function recurses into > > subdirectories. > > > > To avoid such problems, the function should be rewritten to work by > > BFS, not DFS. > > Here is the backtrace I'm now able to produce. Looks like the crash > happens in gc: GC is deeply-recursive, and you have exacerbated that by using up a lot of stack.