Subject: bug#59832: 30.0.50; [TREESIT] Segfault in treesit_load_language

From: Eli Zaretskii <[email-masked]>
Date: Mon, 05 Dec 2022 14:49:56 +0200

> From: German Pacenza <[email-masked]>
> Date: Mon, 05 Dec 2022 06:50:32 -0300
> 
> 
> In release build emacs segfaults when loading a ts-mode for which
> language definitions are unavailable.

Please run Emacs under GDB and when it crashes, type

  (gdb) thread apply all bt

and post here everything this produces.

> Building with -g3 -O0 emacs shows a warning buffer instead of crashing.

Please show the text in the warning buffer.

It is very hard to investigate this problem without the data I described
above.  Please try providing it.

Thanks.