From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#30626: 26.0.91; Crash when traversing a `stream-of-directory-files' Date: Wed, 28 Feb 2018 17:20:53 +0100 Message-ID: <87po4pnl0a.fsf@web.de> References: <87inaiss6l.fsf@web.de> <6FCF6ACA-4F29-4B6B-BE9D-D7130C6E9495@gnu.org> <87fu5moe4c.fsf@web.de> <877eqyocro.fsf@web.de> <83zi3uz4nb.fsf@gnu.org> <87lgfd52by.fsf@gmail.com> <87bmg91ity.fsf@web.de> <83h8q1yuin.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1519834811 8014 195.159.176.226 (28 Feb 2018 16:20:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 28 Feb 2018 16:20:11 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (gnu/linux) Cc: npostavs@gmail.com, 30626@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 28 17:20:07 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 1er4Sc-0001cH-Bq for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Feb 2018 17:20:06 +0100 Original-Received: from localhost ([::1]:45433 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1er4Ue-00031t-Ts for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Feb 2018 11:22:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1er4UX-00031V-Va for bug-gnu-emacs@gnu.org; Wed, 28 Feb 2018 11:22:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1er4UU-0002UQ-Pb for bug-gnu-emacs@gnu.org; Wed, 28 Feb 2018 11:22:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58049) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1er4UU-0002U3-Kr for bug-gnu-emacs@gnu.org; Wed, 28 Feb 2018 11:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1er4UU-0002CY-EF for bug-gnu-emacs@gnu.org; Wed, 28 Feb 2018 11:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Feb 2018 16:22: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: Original-Received: via spool by 30626-submit@debbugs.gnu.org id=B30626.15198348638378 (code B ref 30626); Wed, 28 Feb 2018 16:22:02 +0000 Original-Received: (at 30626) by debbugs.gnu.org; 28 Feb 2018 16:21:03 +0000 Original-Received: from localhost ([127.0.0.1]:37713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1er4TX-0002B1-3V for submit@debbugs.gnu.org; Wed, 28 Feb 2018 11:21:03 -0500 Original-Received: from mout.web.de ([212.227.17.12]:47611) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1er4TV-0002AA-2w for 30626@debbugs.gnu.org; Wed, 28 Feb 2018 11:21:01 -0500 Original-Received: from drachen.dragon ([188.99.169.170]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Lh6M7-1eKlv70MxL-00oa3f; Wed, 28 Feb 2018 17:20:54 +0100 In-Reply-To: <83h8q1yuin.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 28 Feb 2018 18:00:00 +0200") X-Provags-ID: V03:K0:Ohahmb63bDqc7lJ9F6Fsbm80aC/ngB0OcuC0WGRBvRADeWZDWfP InjDCSJwUoKwxkUrUTMLiZxgklaH3wrPyOz1qieA86r1EqYXlrcAlVrHSVj0xwUOQRfTpjm w1x0ai9u5caXOg6nrcekOn8Nve3yim4LtTHC5QhdRsulyx5s7FPuN80r15ng9mFeiEMvAoI gkg3rDcHrAvWKhzw7yt0A== X-UI-Out-Filterresults: notjunk:1;V01:K0:O7gTCDHOFlw=:O8LtxidCs/Yr/pJOSMYZ+S f+5g/57N+32P6GyqmX5CZXiLbTWSAQVTdxiPwN5YvD3BQEuZSbq0P58wxxQ0DiiKGU0ixh63y TUEGWba6hr8U012vMXWZKxMemREPwUBomY/J5TjV1nBZhpg/6hVnr5Q2F6U+oU2OUeInj+lHS cZYdS4JAnhmxA8vOxgHNCch2W3IGCTEhDnbnuCxjYK22c7xnxBHh4y7yMCPFQxUSj4avzd+ju 283gf+NGVhb5ZMFSy/WRTHOkmeL2q1dQiYjD++XeBFNrugVs5nNpPyJuRqscfbFdZ1q4il+lb /jfFdtDAYzsqXY0sz6mVd8RTKK5Cd9/xqC1AZEOFhkObY12zJAnvQqkKNTUia8rTwgdwFEWqh eIvxhHJk5veBXr5U7J8zjbc5+a0Yanw9hS/5r1McUgYBwbEus18vNZOoGe0sNemaDyF7LBklS cqNKrGKE1vaHKJrCpNuy9AZmHWdeXXG/ncOSvQ+vv8qJ7G9enumcgiFmVscxZcKBJOyHGiIJo CvQgauXzGSHH3vr2hQBhWta/t22QHZkRcbd32EDkYHjfxjZ1HzVgsxSnHK18zO131oP7Edeq1 7YbfsNuHpGhfAlVDKiRf/P7LM8Tt+EopYti2oXy1XWw9UDHxTg1ppXuXGCNksSm4UTYA+SrVL QGwbVRVGIEYuvrS5teomlf7r54wWiq5UPyEIgyOQdwz0AutD+zC2wloddjBChLtCY+YrnHusX Io3TA3TKo8TD/IMSK27S/8OGoBgTMvot7/S/oNfhlpErb11vaG4UsTA6BHyW4EMjewO0Fd0j 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:143744 Archived-At: Eli Zaretskii writes: > How do you see that the car is immediately thrown away? After expansion and dispatch, this is what gets executed: #+begin_src emacs-lisp (let ((stream (stream-range 1 1000000))) (while (not (stream-empty-p stream)) (funcall #'ignore (stream-first stream)) (setq stream (stream-rest stream)))) #+end_src Creating an element and throwing away the outermost cons alternate. > > AFAIU the problem is that the cons1 still exists in memory until > > garbage collection kicks in. When that happens, the cons1 points to > > a largely recursive cons structure, though this structure is never > > referenced from Lisp in this form. > What is "cons1" in this context? I said it some lines above: I defined it as name of the "first cons", i.e. the original stream. The return value of `stream-range' in the above example. Michael.