Subject: Re: bug#75754: styled_format stack usage/GC protection

From: Pip Cet <[email-masked]>
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