all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: German Pacenza <germanp82@hotmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 59832@debbugs.gnu.org
Subject: bug#59832: 30.0.50; [TREESIT] Segfault in treesit_load_language
Date: Tue, 06 Dec 2022 10:06:24 -0300	[thread overview]
Message-ID: <DM5PR2201MB11615E58CB4B88E8A98A126BA71B9@DM5PR2201MB1161.namprd22.prod.outlook.com> (raw)
In-Reply-To: <83y1rk7n9q.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 06 Dec 2022 07:03:25 -0500")

Eli Zaretskii <eliz@gnu.org> writes:

> Strange, it shouldn't have happened.  How is CFLAGS set on src/Makefile?  It
> should be something like this:
>
>   CFLAGS = -O2 -g3

git clean -fxd
./autogen.sh
CFLAGS="-O2 -g3" ./configure --without-modules ...

Inside src/Makefile is CFLAGS = -O2 -g3

I also tried ggdb3 with the same result

file src/emacs:
src/emacs: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=3cc057b3a7d0f18ff7c819c55a4da8d7ac355846, for GNU/Linux 4.4.0, with debug_info, not stripped

>
> 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.

Running from src directory:

gdb ./emacs
GNU gdb (GDB) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./emacs...
SIGINT is used by the debugger.
Are you sure you want to change it? (y or n) [answered Y; input not from terminal]
DISPLAY = :0
WAYLAND_DISPLAY = wayland-0
TERM = foot
Breakpoint 1 at 0x46a18: file emacs.c, line 426.
(gdb) source .gdbinit 
SIGINT is used by the debugger.
Are you sure you want to change it? (y or n) [answered Y; input not from terminal]
Redefine command "xgetptr"? (y or n) [answered Y; input not from terminal]
Redefine command "xgetint"? (y or n) [answered Y; input not from terminal]
Redefine command "xgettype"? (y or n) [answered Y; input not from terminal]
Redefine command "xgetsym"? (y or n) [answered Y; input not from terminal]
Redefine command "xsymname"? (y or n) [answered Y; input not from terminal]
Redefine command "pr"? (y or n) [answered Y; input not from terminal]
Redefine command "pp"? (y or n) [answered Y; input not from terminal]
Redefine command "pv"? (y or n) [answered Y; input not from terminal]
Redefine command "xfmt"? (y or n) [answered Y; input not from terminal]
Redefine command "ppt"? (y or n) [answered Y; input not from terminal]
Redefine command "pitmethod"? (y or n) [answered Y; input not from terminal]
Redefine command "pitx"? (y or n) [answered Y; input not from terminal]
Redefine command "pit"? (y or n) [answered Y; input not from terminal]
Redefine command "prowx"? (y or n) [answered Y; input not from terminal]
Redefine command "prow"? (y or n) [answered Y; input not from terminal]
Redefine command "pcursorx"? (y or n) [answered Y; input not from terminal]
Redefine command "pcursor"? (y or n) [answered Y; input not from terminal]
Redefine command "pwinx"? (y or n) [answered Y; input not from terminal]
Redefine command "pwin"? (y or n) [answered Y; input not from terminal]
Redefine command "pbiditype"? (y or n) [answered Y; input not from terminal]
Redefine command "pgx"? (y or n) [answered Y; input not from terminal]
Redefine command "pg"? (y or n) [answered Y; input not from terminal]
Redefine command "pgi"? (y or n) [answered Y; input not from terminal]
Redefine command "pgn"? (y or n) [answered Y; input not from terminal]
--Type <RET> for more, q to quit, c to continue without paging--c
Redefine command "pgrowx"? (y or n) [answered Y; input not from terminal]
Redefine command "pgrow"? (y or n) [answered Y; input not from terminal]
Redefine command "pgrowit"? (y or n) [answered Y; input not from terminal]
Redefine command "prowlims"? (y or n) [answered Y; input not from terminal]
Redefine command "pmtxrows"? (y or n) [answered Y; input not from terminal]
Redefine command "xtype"? (y or n) [answered Y; input not from terminal]
Redefine command "pvectype"? (y or n) [answered Y; input not from terminal]
Redefine command "xvectype"? (y or n) [answered Y; input not from terminal]
Redefine command "pvecsize"? (y or n) [answered Y; input not from terminal]
Redefine command "xvecsize"? (y or n) [answered Y; input not from terminal]
Redefine command "xint"? (y or n) [answered Y; input not from terminal]
Redefine command "xptr"? (y or n) [answered Y; input not from terminal]
Redefine command "xmarker"? (y or n) [answered Y; input not from terminal]
Redefine command "xoverlay"? (y or n) [answered Y; input not from terminal]
Redefine command "xsymwithpos"? (y or n) [answered Y; input not from terminal]
Redefine command "xsymbol"? (y or n) [answered Y; input not from terminal]
Redefine command "xstring"? (y or n) [answered Y; input not from terminal]
Redefine command "xvector"? (y or n) [answered Y; input not from terminal]
Redefine command "xprocess"? (y or n) [answered Y; input not from terminal]
Redefine command "xframe"? (y or n) [answered Y; input not from terminal]
Redefine command "xcompiled"? (y or n) [answered Y; input not from terminal]
Redefine command "xwindow"? (y or n) [answered Y; input not from terminal]
Redefine command "xwinconfig"? (y or n) [answered Y; input not from terminal]
Redefine command "xsubr"? (y or n) [answered Y; input not from terminal]
Redefine command "xchartable"? (y or n) [answered Y; input not from terminal]
Redefine command "xsubchartable"? (y or n) [answered Y; input not from terminal]
Redefine command "xboolvector"? (y or n) [answered Y; input not from terminal]
Redefine command "xbuffer"? (y or n) [answered Y; input not from terminal]
Redefine command "xhashtable"? (y or n) [answered Y; input not from terminal]
Redefine command "xcons"? (y or n) [answered Y; input not from terminal]
Redefine command "nextcons"? (y or n) [answered Y; input not from terminal]
Redefine command "xcar"? (y or n) [answered Y; input not from terminal]
Redefine command "xcdr"? (y or n) [answered Y; input not from terminal]
Redefine command "xlist"? (y or n) [answered Y; input not from terminal]
Redefine command "xfloat"? (y or n) [answered Y; input not from terminal]
Redefine command "xscrollbar"? (y or n) [answered Y; input not from terminal]
Redefine command "xpr"? (y or n) [answered Y; input not from terminal]
Redefine command "xprintstr"? (y or n) [answered Y; input not from terminal]
Redefine command "xprintsym"? (y or n) [answered Y; input not from terminal]
Redefine command "xcoding"? (y or n) [answered Y; input not from terminal]
Redefine command "xcharset"? (y or n) [answered Y; input not from terminal]
Redefine command "xfontset"? (y or n) [answered Y; input not from terminal]
Redefine command "xfont"? (y or n) [answered Y; input not from terminal]
Redefine command "xbacktrace"? (y or n) [answered Y; input not from terminal]
Redefine command "xprintbytestr"? (y or n) [answered Y; input not from terminal]
Redefine command "xwhichsymbols"? (y or n) [answered Y; input not from terminal]
Redefine command "hookpost-backtrace"? (y or n) [answered Y; input not from terminal]
Redefine command "ff"? (y or n) [answered Y; input not from terminal]
DISPLAY = :0
WAYLAND_DISPLAY = wayland-0
TERM = foot
Breakpoint 2 at 0x46a18: file emacs.c, line 426.
(gdb) pp path_candidates
No symbol "path_candidates" in current context.
(gdb) run
Starting program: /home/german/repos/emacs-test/src/emacs 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffee7fe6c0 (LWP 71788)]
[New Thread 0x7fffedffd6c0 (LWP 71789)]
[New Thread 0x7fffed7fc6c0 (LWP 71790)]
[New Thread 0x7fffecffb6c0 (LWP 71791)]
[Detaching after vfork from child process 71792]
[Detaching after vfork from child process 71796]

Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
treesit_load_language (language_symbol=<optimized out>, signal_symbol=0x7fffffffd4e8, signal_data=0x7fffffffd4f0) at treesit.c:565
565	     char *library_name = SSDATA (XCAR (tail));
(gdb) pp path_candidates
[Thread 0x7fffedffd6c0 (LWP 71789) exited]
nil
(gdb) 

-- 
German Pacenza





  reply	other threads:[~2022-12-06 13:06 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
2022-12-06 13:06               ` German Pacenza [this message]
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

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

  git send-email \
    --in-reply-to=DM5PR2201MB11615E58CB4B88E8A98A126BA71B9@DM5PR2201MB1161.namprd22.prod.outlook.com \
    --to=germanp82@hotmail.com \
    --cc=59832@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.