emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tree-sitter integration on feature/tree-sitter


From: Yuan Fu
Subject: Re: Tree-sitter integration on feature/tree-sitter
Date: Fri, 17 Jun 2022 17:28:49 -0700

> I tried to run the benchmarks again real quick, and ran into a segfault.
> It occurs in the call to ts_query_delete in cleanup_vector when
> garbage collecting.
> 
> I'll try to gather more info tomorrow, going to bed now.
> 
> Yoav


> 
> Nice update! Good work!
> 
> Trying latest source from emacs feature/tree-sitter branch though, and 
> updating my code to use treesite-parser-create rather than 
> treesit-get-parser-create... I have emacs segfaulting because of a 
> double-free.


I’ve figure out the problem. It is due to my misunderstanding of how gc works. 
I’ve pushed a fix.

On a separate note, I also pushed the change that makes treesit-parser-list a 
function (rather than a variable).

Yuan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]