GNU bug report logs - #75754
styled_format stack usage/GC protection

Previous Next

Package: emacs;

Reported by: Pip Cet <pipcet <at> protonmail.com>

Date: Wed, 22 Jan 2025 10:20:01 UTC

Severity: normal

Done: Pip Cet <pipcet <at> protonmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Pip Cet <pipcet <at> protonmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 75754 <at> debbugs.gnu.org, eggert <at> cs.ucla.edu
Subject: bug#75754: styled_format stack usage/GC protection
Date: Wed, 22 Jan 2025 18:18:48 +0000
(setq print-unreadable-function
      (lambda (&rest args)
        (garbage-collect)
        (make-string 100 256 t)))

(message "%S" (format "%S %S" [1] (symbol-function '+)))

fails to print the initial "[1]" here. Changing 256 to ?A and t to nil
produces

"[1] AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"

GDB session confirms the bug is as I've described.

Pip





This bug report was last modified 162 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.