Subject: Re: bug#55832: 28.1; Emacs crashes when using tramp from helm in emacs-29

From: Thierry Volpiatto <[email-masked]>
Date: Thu, 09 Jun 2022 10:42:57 +0000

Eli Zaretskii <[email-masked]> writes:

>> From: Lars Ingebrigtsen <[email-masked]>
>> Cc: Thierry Volpiatto <[email-masked]>,  [email-masked]
>> Date: Wed, 08 Jun 2022 20:17:05 +0200
>> 
>> Eli Zaretskii <[email-masked]> writes:
>> 
>> > Sounds like C stack overflow trying to print a too-long variable-arg
>> > list? 
>> 
>> If that's the problem, then perhaps this problem is fixed in Emacs 29 --
>> Mattias has reimplemented the printer to not be recursive (because
>> printing certain very deep structures will segfault Emacs versions
>> before 29).
>
> The non-recursive implementation of the printer AFAIU only helps when
> we need to print a deeply-recursive Lisp structure.  Here, if I'm
> right, the problem is that the va_arg argument list is too long -- and
> all of them are pushed onto the C stack.
>
> So Mattias's changes could only help in this case if the complete
> backtrace will show recursive calls to print_object etc.

Let me know what you want exactly for the complete backtrace.

-- 
Thierry