all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: emacs-devel@gnu.org
Subject: Re: SIGABRT in `stream-of-directory-files'
Date: Mon, 26 Feb 2018 19:32:47 +0200	[thread overview]
Message-ID: <83r2p71wsg.fsf@gnu.org> (raw)
In-Reply-To: <87y3jgosv1.fsf@web.de> (message from Michael Heerdegen on Mon, 26 Feb 2018 13:09:06 +0100)

> From: Michael Heerdegen <michael_heerdegen@web.de>
> 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.



  reply	other threads:[~2018-02-26 17:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-26 12:09 SIGABRT in `stream-of-directory-files' Michael Heerdegen
2018-02-26 17:32 ` Eli Zaretskii [this message]
2018-02-27  9:37   ` Michael Heerdegen
2018-02-27 10:34     ` Andreas Schwab
2018-02-27 11:02       ` Michael Heerdegen
2018-02-27 11:09         ` Andreas Schwab
2018-02-27 11:18           ` Michael Heerdegen
2018-02-27 11:32             ` Andreas Schwab
2018-02-27 11:46               ` Michael Heerdegen
2018-02-27 12:09                 ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83r2p71wsg.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=michael_heerdegen@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.