From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: SIGABRT in `stream-of-directory-files' Date: Mon, 26 Feb 2018 19:32:47 +0200 Message-ID: <83r2p71wsg.fsf@gnu.org> References: <87y3jgosv1.fsf@web.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1519666327 16129 195.159.176.226 (26 Feb 2018 17:32:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Feb 2018 17:32:07 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Heerdegen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 26 18:32:03 2018 Return-path: Envelope-to: ged-emacs-devel@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 1eqMd9-0003ot-4f for ged-emacs-devel@m.gmane.org; Mon, 26 Feb 2018 18:32:03 +0100 Original-Received: from localhost ([::1]:60555 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqMfB-00017x-Kv for ged-emacs-devel@m.gmane.org; Mon, 26 Feb 2018 12:34:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqMds-0000lJ-I8 for emacs-devel@gnu.org; Mon, 26 Feb 2018 12:32:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqMdp-00087V-Ap for emacs-devel@gnu.org; Mon, 26 Feb 2018 12:32:48 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqMdp-00087O-7M; Mon, 26 Feb 2018 12:32:45 -0500 Original-Received: from [176.228.60.248] (port=4777 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eqMdo-0004bV-Ky; Mon, 26 Feb 2018 12:32:45 -0500 In-reply-to: <87y3jgosv1.fsf@web.de> (message from Michael Heerdegen on Mon, 26 Feb 2018 13:09:06 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:223077 Archived-At: > From: Michael Heerdegen > Date: Mon, 26 Feb 2018 13:09:06 +0100 > > When I traverse a stream created with `stream-of-directory-files', and > that stream recursively traverses a huge directory hierarchy, like in > > #+begin_src emacs-lisp > (seq-doseq (_file (stream-of-directory-files > "/home/micha" t nil t nil > (lambda (file) (and (file-readable-p file) (file-regular-p file))))) > nil) > #+end_src > > emacs crashes with SIGABRT (after quite some time). > > Is it possible that doing something like this hits some internal limit? > My half-baked trials to debug with gdb were not very enlightening: > > | (gdb) run > | Starting program: /home/micha/software/emacs/src/emacs > | During startup program terminated with signal SIGABRT, Aborted. Is your Emacs stripped or something? Why doesn't GDB get control when Emacs hits SIGABRT? I also don't understand the "run" thing -- this will start Emacs "normally", loading your init files etc., it won't run the above code. Can you start by showing how you start Emacs to run the above code, without the debugger? > | (gdb) xbacktrace > | You can't do that without a process to debug. > | (gdb) bt > | No stack. Yes, if Emacs terminated, those commands will not work, because they need a live process.