GNU bug report logs -
#27585
segfault when evaluating a file containing only backticks
Previous Next
Reported by: Steve Kemp <steve <at> steve.org.uk>
Date: Wed, 5 Jul 2017 06:29:02 UTC
Severity: minor
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 27585 <at> debbugs.gnu.org (full text, mbox):
> From: Steve Kemp <steve <at> steve.org.uk>
> Date: Wed, 05 Jul 2017 06:21:10 +0000
>
>
> I've recently started fuzzing GNU Emacs, using the current git sources.
> During the course of that work I stumbled upon this easily reproduced bug:
>
> deagol ~ $ perl -e 'print "`" x ( 1024 * 1024 * 12);' > t.el
> deagol ~ $ /usr/bin/emacs --batch --script ./t.el
> ..
> Segmentation fault (core dumped)
Here it says:
Re-entering top level after C stack overflow
and doesn't crash.
> > Most likely just a stack overflow.
>
> Agreed, but still I think a segfault is unexpected and could be
> prevented.
See above: the machinery to try and prevent it exists, but it doesn't
always succeed. And it really can't be 100% reliable. So I'm unsure
what did you expect, and why. Emacs generally gives you enough rope
to hang yourself; it's up to you not to be tempted to do so...
IOW: why would someone want to run such a silly "program"?
This bug report was last modified 7 years and 298 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.