unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: German Pacenza <germanp82@hotmail.com>
Cc: 59832@debbugs.gnu.org
Subject: bug#59832: 30.0.50; [TREESIT] Segfault in treesit_load_language
Date: Tue, 06 Dec 2022 14:02:57 +0200	[thread overview]
Message-ID: <83y1rk7n9q.fsf@gnu.org> (raw)
In-Reply-To: <DM5PR2201MB116194BED2DFA02AC8F4F332A7189@DM5PR2201MB1161.namprd22.prod.outlook.com> (message from German Pacenza on Mon, 05 Dec 2022 17:47:43 -0300)

> From: German Pacenza <germanp82@hotmail.com>
> Cc: 59832@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@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.





  reply	other threads:[~2022-12-06 12:02 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-05  9:50 bug#59832: 30.0.50; [TREESIT] Segfault in treesit_load_language German Pacenza
2022-12-05 11:44 ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-12-05 12:49 ` Eli Zaretskii
2022-12-05 14:31   ` German Pacenza
2022-12-05 14:57     ` Eli Zaretskii
2022-12-05 15:06       ` German Pacenza
2022-12-05 15:42         ` Eli Zaretskii
2022-12-05 20:47           ` German Pacenza
2022-12-06 12:02             ` Eli Zaretskii [this message]
2022-12-06 13:06               ` German Pacenza
2022-12-06 14:39                 ` Eli Zaretskii
2022-12-06 15:01                   ` German Pacenza
2022-12-06 15:22                     ` Eli Zaretskii
2022-12-06 15:31                       ` German Pacenza
2022-12-06 15:43                         ` Eli Zaretskii
2022-12-06 21:12                           ` Yuan Fu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83y1rk7n9q.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=59832@debbugs.gnu.org \
    --cc=germanp82@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).