From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#30626: 26.0.91; Crash when traversing a `stream-of-directory-files' Date: Sat, 17 Mar 2018 11:53:36 -0400 Message-ID: <871sgivgu7.fsf@gmail.com> References: <87inaiss6l.fsf@web.de> <87lgfd52by.fsf@gmail.com> <87bmg91ity.fsf@web.de> <83h8q1yuin.fsf@gnu.org> <87po4pnl0a.fsf@web.de> <837eqxyqoe.fsf@gnu.org> <87lgfdnf86.fsf@web.de> <87muzs11hk.fsf@web.de> <87606e4lel.fsf@gmail.com> <87lgf83gun.fsf@gmail.com> <87fu5f3kcr.fsf@gmail.com> <83lgf7u644.fsf@gnu.org> <87bmfuzbq1.fsf@gmail.com> <83vae2s6b6.fsf@gnu.org> <876062z3fs.fsf@gmail.com> <83sh96rmzw.fsf@gnu.org> <87lgewybtu.fsf@gmail.com> <834llkrmdc.fsf@gnu.org> <87in9zy0uq.fsf@gmail.com> <83605xqovr.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1521301934 9259 195.159.176.226 (17 Mar 2018 15:52:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 17 Mar 2018 15:52:14 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: michael_heerdegen@web.de, john.b.mastro@gmail.com, nicolas@petton.fr, 30626@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 17 16:52:09 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 1exE7t-0002FK-Av for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Mar 2018 16:52:09 +0100 Original-Received: from localhost ([::1]:34118 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exE9r-0001Ao-ER for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Mar 2018 11:54:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39458) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exE9l-0001Ae-D0 for bug-gnu-emacs@gnu.org; Sat, 17 Mar 2018 11:54:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1exE9i-0004GF-8Z for bug-gnu-emacs@gnu.org; Sat, 17 Mar 2018 11:54:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58927) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1exE9i-0004Fm-4R for bug-gnu-emacs@gnu.org; Sat, 17 Mar 2018 11:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1exE9h-0001x5-Kb for bug-gnu-emacs@gnu.org; Sat, 17 Mar 2018 11:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Mar 2018 15:54:01 +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.15213020277480 (code B ref 30626); Sat, 17 Mar 2018 15:54:01 +0000 Original-Received: (at 30626) by debbugs.gnu.org; 17 Mar 2018 15:53:47 +0000 Original-Received: from localhost ([127.0.0.1]:38591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1exE9S-0001wa-Ru for submit@debbugs.gnu.org; Sat, 17 Mar 2018 11:53:47 -0400 Original-Received: from mail-it0-f44.google.com ([209.85.214.44]:34151) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1exE9R-0001wM-J4 for 30626@debbugs.gnu.org; Sat, 17 Mar 2018 11:53:45 -0400 Original-Received: by mail-it0-f44.google.com with SMTP id z7-v6so4951199iti.1 for <30626@debbugs.gnu.org>; Sat, 17 Mar 2018 08:53:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=LkNdYmPm66yTQdhd4zr65hFhej8U6D6p3ttpR62iIyI=; b=fwxyykGp4Td9mH25rcSs0ag8YKy3ucrc49sVPFVUC9edon3DmbK7yL28ROqhAgje/k MK1wu5ZoFCk3gcW9vHjC2ZOtJ2v4S8hQy6TEA5mKhsHedtglM26ttraTtVO00WmQmyqS 8PYubRIrR4YW9XeOH8Jb0L4r6tN97esyINg6z9FYWTzLxuSwvKMEKYFojW4UeOVR7+6b B5RwpXcbgomnYQf8oy+r0ff64KhXfR7vtK2QzTOaUrSlI1pZHQuBZ39YJviqfYKb4Vfs ijch6Y4GAWCd45JnP0JDeSN6TpSgYJ5LBOSu03qng1N878s8GVAskv7u1+iTdyGCDy+S 1eLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=LkNdYmPm66yTQdhd4zr65hFhej8U6D6p3ttpR62iIyI=; b=TfsYDRE3FoMBlrrfo8ynGG8t/sIEsihEbeTxjLb8irymDlZKPwvQjeLqSotl67Woli chMV5b6gbT5+5igKeJKJlNjX5MtxYAc3VFwPTzqO90eWg/uhYphLYInnNc/CQU68+7zx 8lgaofFFNMNjslICLLpJDBioMrLn0TLOpuuqNxAlSgxQAbTfWJ/bBCgM9P3wfPGHgocJ EntkzIoIAjRnNW5LyaW9J6khz3Sv9KehAlkSEX63Zxs1TsJU9nHU1DTJAuM5S5Cea1sn 9Nsm7Be5IEM7vasSHXewQpv7WnlJn5o5eV5TeE6qLmMrNKgkvTAj/TsYRoOOPHOsx8b4 GVrA== X-Gm-Message-State: AElRT7EvfRXOOpPFGCMlOo6YmZ/Lf+8m3O8uLejRxhm8vSVMsHOyhlcq POhOvJEOd/ix8PpJQJ6mGt9xf9y9 X-Google-Smtp-Source: AG47ELv7h53nfadErxbTHnmnMBavZd9b6yUxnWnKsZG6MKav2ohjMmlwcsJSMaK+a6JNehkI0GbvRg== X-Received: by 2002:a24:7143:: with SMTP id n64-v6mr6171787itc.4.1521302019573; Sat, 17 Mar 2018 08:53:39 -0700 (PDT) Original-Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id f201-v6sm5973324itc.12.2018.03.17.08.53.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 17 Mar 2018 08:53:38 -0700 (PDT) In-Reply-To: <83605xqovr.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 15 Mar 2018 18:34:16 +0200") 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:144370 Archived-At: Eli Zaretskii writes: > In frame #4852, we have found an object, and we are marking it. Did > you try looking at that object? With these caveats: > >> > Also note that for Lisp objects that are marked you need to reset >> > their mark bit before trying to determine their type and value. Okay, I think xpr takes care of that, right? (I've restarted the debug sessions a few times, so numbers may not match exactly) #4853 0x000000000060f429 in mark_maybe_pointer (p=0x2e64c90) at ../../src/alloc.c:4936 4936 mark_object (obj); (gdb) p obj $60 = XIL(0x2e64c95) (gdb) xpr Lisp_Vectorlike PVEC_NORMAL_VECTOR $61 = (struct Lisp_Vector *) 0x2e64c90 {XIL(0x2efcb63), make_number(1000000), XIL(0x2efcb53), XIL(0x2efcb73), XIL(0x2efcb83), XIL(0x20ab5b0), XIL(0xc090)} (gdb) p $61->contents[0] $62 = XIL(0x2efcb63) (gdb) xpr Lisp_Cons $63 = (struct Lisp_Cons *) 0x2efcb60 { [...] car = make_number(2369), [...] chain = 0x0 [...] (gdb) p $61->contents[1] $64 = make_number(1000000) (gdb) p $61->contents[2] $65 = XIL(0x2efcb53) (gdb) xpr Lisp_Cons [...] car = make_number(1), [...] chain = 0x0 [...] (gdb) p $61->contents[3] $67 = XIL(0x2efcb73) (gdb) xpr [...] car = XIL(0xc090), [...] chain = 0x0 [...] (gdb) p $61->contents[4] [...] car = XIL(0x2efc443), [...] chain = 0x0 [...] (gdb) p $61->contents[5] [...] $72 = (struct Lisp_Symbol *) 0x2e97ef0 "stream-range" (gdb) p $61->contents[6] [...] $74 = (struct Lisp_Symbol *) 0xdf89d0 "t" It looks like a the lexical environment of a bytecode function, probably the initial stream, e.g., (stream-range 1 1000000) gives: (--stream-- #[256 "\211\203\303\242\207\303\242\204 \304\300\242\305\300\242\302\242\\\301\302\242#B\240\210\303\306\240\210\304\242\207" [(1) 1000000 (1) (nil) (nil) stream-range t] 7 " ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (fn &optional CHECK)"]) Not sure where to go next with this.