Cursed knowledge unlocked:

--recursion-limit
--no-recursion-limit
Enables or disables a limit on the amount of recursion performed whilst demangling strings. Since the name mangling formats allow for an infinite level of recursion it is possible to create strings whose decoding will exhaust the amount of stack space available on the host machine, triggering a memory fault. The limit tries to prevent this from happening by restricting recursion to 2048 levels of nesting.

I'm not sure I want to even know how or in what circumstances demangling of symbol names can cause a literally infinite recursion ...

I wonder which demangler has this property. Looking at cplus_demangle_name_to_style from libiberty I see gnu-v3 (C++), java, gnat (Ada), dlang (D), and rust in there.

Thanks, #binutils aren't you ever a treasure trove? #sourceware #programming #cursedprogramming

@coatless Resisting urge to curse. There is a reason perl deprecated $[
#CursedProgramming