[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#27571: Crashing when printing a lisp object.
From: |
npostavs |
Subject: |
bug#27571: Crashing when printing a lisp object. |
Date: |
Thu, 06 Jul 2017 22:46:40 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) |
retitle 27571 C stack overflow from `prin1' on deeply nested lisp object.
severity 27571 minor
tags 27571 + confirmed
quit
Keith David Bershatsky <esq@lawlist.com> writes:
> Yes, 'ulimit -S -s unlimited', does indeed fix the problem! :) :) :)
>
> Yes, my line 1350 of print.c is the opening brace for print_object.
>
> I will hunt around in `main` for ways to increase the stack size
> limit, as well as research other means to have the settings take
> effect whenever launching the GUI version of Emacs.
The proper fix would be to rewrite print_object to avoid recursion and
use an explicit stack instead.