GNU bug report logs -
#31362
stack overflow in GC when creating large nested object
Previous Next
Reported by: Tino Calancha <tino.calancha <at> gmail.com>
Date: Fri, 4 May 2018 07:53:02 UTC
Severity: wishlist
Tags: confirmed
Merged with 2099
Found in version 24.5
Done: Mattias Engdegård <mattiase <at> acm.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Mon, 4 Apr 2022 19:24:06 +0200
with message-id <9CD1BE2B-FBAA-4D3B-9E10-92A0458E0A63 <at> acm.org>
and subject line GC stack overflow fixed
has caused the debbugs.gnu.org bug report #31362,
regarding stack overflow in GC when creating large nested object
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
31362: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=31362
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
When you do:
$ emacs -Q --eval "(let (v) (while t (setq v (cons v v))))"
then Emacs crashes with:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xbf7ffffc
0x0013bc1a in mark_object (arg=40166541) at alloc.c:5372
(gdb) bt
#0 0x0013bc1a in mark_object (arg=40166541) at alloc.c:5372
#1 0x0013bdf8 in mark_object (arg=40166549) at alloc.c:5655
#2 0x0013bdf8 in mark_object (arg=40166557) at alloc.c:5655
#3 0x0013bdf8 in mark_object (arg=40166565) at alloc.c:5655
#4 0x0013bdf8 in mark_object (arg=40166573) at alloc.c:5655
#5 0x0013bdf8 in mark_object (arg=40166581) at alloc.c:5655
#6 0x0013bdf8 in mark_object (arg=40166589) at alloc.c:5655
...
Throwing an error or making GC stackless seems much preferable here.
In GNU Emacs 23.0.60.1 (i386-apple-darwin8.11.1, GTK+ Version 2.12.9)
of 2009-01-28 on mt-computer.local
Windowing system distributor `The XFree86 Project, Inc', version 11.0.40400000
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_GB.UTF-8
value of $XMODIFIERS: nil
locale-coding-system: nil
default-enable-multibyte-characters: t
[Message part 3 (message/rfc822, inline)]
Now that bug#54698 is resolved, we can close bug#31362 and bug#46900 which seem to have been about that, essentially.
If that didn't do it for you, please let us know.
This bug report was last modified 3 years and 104 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.