From: "João Paulo Labegalini de Carvalho" <jaopaulolc@gmail.com>
To: emacs-devel@gnu.org, casouri@gmail.com
Subject: SIGSEGV in treesit_load_language
Date: Mon, 17 Oct 2022 11:19:03 -0600 [thread overview]
Message-ID: <CAGjvy28ohwjrqwbqGm-ca=Y3rjKCjXdXFkV_yXMSJQP-dXjuEQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1475 bytes --]
Hi,
I configured to build emacs from source -- branch feature/tree-sitter and
commit 02f78c09b0a97ba044a43682a366a9d7732b885d -- invoking configure as
bellow:
../configure --with-json --with-imagemagick --with-x --with-tree-sitter
CFLAGS="-ggdb -O2" --enable-profiling
and build with make -j4. Then I ran make -j4 check and all tests passed.
If all the forms below are evaluated with M-x eval-region -- after
launching Emacs with emacs -Q, the (*empty file*) /tmp/test.py is opened
but any key press (e.g. RET) kills emacs with SIGSEGV.
(setq python-use-tree-sitter t)
(and python-use-tree-sitter
(treesit-available-p))
(setq treesit-extra-load-path
"~/emacs-tree-sitter/emacs-devel/admin/notes/tree-sitter/build-module/dist")
(find-file "/tmp/test.py")
Launching Emacs with GDB and repeating the above steps reveals that the
SIGSEGV happens at:
treesit_load_language (language_symbol=<optimized out>,
signal_symbol=0x7fffffff6f90, signal_data=0x7fffffff6f98) at
../../src/lisp.h:1519
1519 return lisp_h_XCAR (c);
Any idea what I might be doing wrong? I downloaded libtree-sitter-python.so
from here <https://github.com/casouri/tree-sitter-module/releases/tag/v2.1>
and built from source.
--
João Paulo L. de Carvalho
Ph.D Computer Science | IC-UNICAMP | Campinas , SP - Brazil
Postdoctoral Research Fellow | University of Alberta | Edmonton, AB - Canada
joao.carvalho@ic.unicamp.br
joao.carvalho@ualberta.ca
[-- Attachment #2: Type: text/html, Size: 2270 bytes --]
next reply other threads:[~2022-10-17 17:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-17 17:19 João Paulo Labegalini de Carvalho [this message]
2022-10-17 17:33 ` SIGSEGV in treesit_load_language Eli Zaretskii
2022-10-17 17:37 ` João Paulo Labegalini de Carvalho
2022-10-17 17:41 ` Eli Zaretskii
2022-10-17 17:48 ` João Paulo Labegalini de Carvalho
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='CAGjvy28ohwjrqwbqGm-ca=Y3rjKCjXdXFkV_yXMSJQP-dXjuEQ@mail.gmail.com' \
--to=jaopaulolc@gmail.com \
--cc=casouri@gmail.com \
--cc=emacs-devel@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 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).