Getting intermittent segfaults on Snac

Getting intermittent #segfault crashes on the admin page for #snac2. I submitted as much debug info as I could get:
https://codeberg.org/grunfink/snac2/issues/147

Also posting here in case someone having the same issue looks on the fediverse first before going to Codeberg.
#

A week later…

So, to follow up on this: It was crashing on a several-hundred-post-long thread. It seems to be specific to musl, since Grunfink’s test server linked against glibc was able to generate the HTML…eventually. And setting a nesting limit of 48 seems to fix the problem.
#