GNU bug report logs -
#59832
30.0.50; [TREESIT] Segfault in treesit_load_language
Previous Next
Reported by: German Pacenza <germanp82 <at> hotmail.com>
Date: Mon, 5 Dec 2022 09:57:01 UTC
Severity: normal
Found in version 30.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #29 received at 59832 <at> debbugs.gnu.org (full text, mbox):
> From: German Pacenza <germanp82 <at> hotmail.com>
> Cc: 59832 <at> debbugs.gnu.org
> Date: Mon, 05 Dec 2022 17:47:43 -0300
>
>
> The crash happens when compiling with '--without-modules', if I remove
> it emacs doesn't crash.
>
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> >> Running that after it crashes shows:
> >>
> >> (gdb) frame 0
> >> #0 treesit_load_language (language_symbol=<optimized out>, signal_symbol=0x7fffffffd2f8,
> >> signal_data=0x7fffffffd300) at treesit.c:565
> >> 565 char *library_name = SSDATA (XCAR (tail));
> >> (gdb) print XCAR(tail)
> >> No symbol "XCAR" in current context.
> >> (gdb)
> >
> > That's because your build is without -g3. Can you rebuild with
> >
> > CFLAGS='-O2 -g3' ./configure ...
> >
> > ?
>
> I get the same result.
Strange, it shouldn't have happened. How is CFLAGS set on src/Makefile? It
should be something like this:
CFLAGS = -O2 -g3
Also, please try printing the value of the full list of the candidate
libraries:
(gdb) source .gdbinit
(gdb) pp path_candidates
The file .gdbinit is in the src directory of the Emacs source tree, so if
you start GDB not from that directory, you will need to type the full
absolute file name of .gdbinit in the "source" command.
This bug report was last modified 2 years and 225 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.