GNU bug report logs - #73256
30.0.91; html-ts-mode crashes Emacs

Previous Next

Package: emacs;

Reported by: Damien Cassou <damien <at> cassou.me>

Date: Sat, 14 Sep 2024 19:10:01 UTC

Severity: normal

Found in version 30.0.91

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 73256 <at> debbugs.gnu.org (full text, mbox):

From: Yuan Fu <casouri <at> gmail.com>
To: Damien Cassou <damien <at> cassou.me>
Cc: Mickey Petersen <mickey <at> masteringemacs.org>, 73256 <at> debbugs.gnu.org
Subject: Re: bug#73256: 30.0.91; html-ts-mode crashes Emacs
Date: Sat, 14 Sep 2024 21:02:59 -0700

> On Sep 14, 2024, at 12:08 PM, Damien Cassou <damien <at> cassou.me> wrote:
> 
> 
> I can reproducibly crash Emacs with html-ts-mode:
> 
> 1. Save the attached file to your disk
> 
> 2. Build libtree-sitter-html.so 0.22.6 if you haven't already
> 
> 2. emacs -Q --eval "(setq treesit-extra-load-path '(\"…location-of-libtree-sitter-files/\"))" -l /…/crash-html-ts-mode.el 
> 
> 3. Type a letter or two, press backspace to get rid of them
> 
> 4. Repeat step 3 once or twice
> 
> Fatal error 11: Segmentation fault
> Backtrace:
> /…emacs-unstable-30.0.91/bin/emacs[0x57cc28]
> /…-glibc-2.39-52/lib/libc.so.6(+0x405c0)[0x7f992da495c0]
> /…-glibc-2.39-52/lib/libc.so.6(__libc_free+0x1e)[0x7f992daaa8be]
> /…-emacs-packages-deps/lib/libtree-sitter-html.so(tree_sitter_html_externa02]
> /…-tree-sitter-0.22.6/lib/libtree-sitter.so.0(ts_parser_reset+0x164)[0x7f9/…-tree-sitter-0.22.6/lib/libtree-sitter.so.0(ts_parser_parse+0x112f)[0x7f/…emacs-unstable-30.0.91/bin/emacs[0x67e4e9]
> /…emacs-unstable-30.0.91/lib/emacs/30.0.91/native-lisp/30.0.91-be7dc7d2/t657369742d2d7072652d7265646973706c6179_treesit__pre_redisplay_0+0x74)[0x7f9917f83494]

Hmm, that’s a new one. Might be a double-free or something. I’ll look into it ASAP. Thanks for the report!

Yuan



This bug report was last modified 250 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.