From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.bugs Subject: bug#71012: 30.0.50; tree-sitter crash Date: Fri, 17 May 2024 15:39:27 +0200 Message-ID: <87ttiwpng0.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23869"; mail-complaints-to="usenet@ciao.gmane.io" To: 71012@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 17 15:40:22 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s7xor-0005ne-EB for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 May 2024 15:40:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7xoW-0005tp-DZ; Fri, 17 May 2024 09:40:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s7xoV-0005tJ-6l for bug-gnu-emacs@gnu.org; Fri, 17 May 2024 09:39:59 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s7xoU-0005Ex-Ue for bug-gnu-emacs@gnu.org; Fri, 17 May 2024 09:39:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s7xoX-0004Rd-NJ for bug-gnu-emacs@gnu.org; Fri, 17 May 2024 09:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Helmut Eller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 May 2024 13:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71012 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.171595318317067 (code B ref -1); Fri, 17 May 2024 13:40:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 May 2024 13:39:43 +0000 Original-Received: from localhost ([127.0.0.1]:55357 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7xoF-0004RB-7V for submit@debbugs.gnu.org; Fri, 17 May 2024 09:39:43 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:33404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7xoD-0004R5-Iv for submit@debbugs.gnu.org; Fri, 17 May 2024 09:39:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s7xoA-0005kN-Da for bug-gnu-emacs@gnu.org; Fri, 17 May 2024 09:39:38 -0400 Original-Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s7xo8-00059I-Bp for bug-gnu-emacs@gnu.org; Fri, 17 May 2024 09:39:38 -0400 Original-Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-351dc6aa900so120823f8f.0 for ; Fri, 17 May 2024 06:39:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715953174; x=1716557974; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=NyqtKOJRy5DOWUxm06eGW15WPJCYfs2gBDKMp9p/10E=; b=kWKldaQe3hiPu0RaBTfuuP9KfpXHHPOsqXbEEm2VaIv/z9UzrbUg128aq+Pt+j2gz9 KhBpuNxvS0y1o+iNn9HjHHj+//C+xQ4R++5WbVxlf/us61ppcy6VOEFlITHlyVBC9vxj W2gfN6GjBJ0L4eO0KuAkt6cKZtAUMKgVi2eM+vPddflzLMP2CwBL8OwiWhiRZEnADgZo +Iq8gmevdIqg8IN1MZxuLcBxjG+yXo773H3ECepkoBU7yvcoEw+AyQGmNOIklMUJncLL Aft+YwvfXw2pYq2NLHepcwri9lpfyGV7fA9Sx5zRb34j+qlhTunYajHdJUXjZsRYUwrL 7C2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715953174; x=1716557974; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=NyqtKOJRy5DOWUxm06eGW15WPJCYfs2gBDKMp9p/10E=; b=v2I+BtXGcV9ROHIwvQqToCOKNAvbwOvlr22D31sEwW20wmhYKVhUFf143cAsWRAro7 esaFviXmfbOaXiRCCE01Cb0Lt9r0v6OQ9QjDc2hfzOXcx47Xn2c7nWpGTtpxINhqk7BD erGtZgeFOD/dhIvnnAK4hY0gmUzXDhMXR7elYhqH2LGy4hXIicqD8tcVVWp6O43RDfVY 69jqd+DnwkV4TBMQXS79GqFbSULFBufpsqgNjxKV6zLK0qHdhWe+8jfvkS+TJIWQNvav sDIWdpktH83Gy6SeZCXRaW76AcW7tW4DOUiBhXjzhUCbhOTHZOGYG0nGsEUsSYm4J/M8 AStg== X-Gm-Message-State: AOJu0Yz4+Vzt3kbV2xi4WYz0n8ooYe+91X6UIak3P/FeAJ17X33zGCDf JR2l6FRz2BIJVOVjjZKORFV6QhUH5KSBEvMV2+iT91Q9pPevISWQcZkL0Q== X-Google-Smtp-Source: AGHT+IGQTjlPFtVJsyaNEwUyjH8cFkOWv432J/SO+vWJcqt9O1xOrnCuQJC3zW8QOqAXVF7CBChxXw== X-Received: by 2002:adf:e101:0:b0:351:d386:7356 with SMTP id ffacd0b85a97d-351d38673b2mr4208173f8f.37.1715953174282; Fri, 17 May 2024 06:39:34 -0700 (PDT) Original-Received: from caladan ([89.107.106.224]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-351b79e8e6bsm14055652f8f.65.2024.05.17.06.39.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 06:39:33 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=eller.helmut@gmail.com; helo=mail-wr1-x429.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:285244 Archived-At: --=-=-= Content-Type: text/plain The code in the attached file tries to parse src/lisp.h but crashes while printing the result: emacs --batch -l ts-bug.el --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=ts-bug.el Content-Transfer-Encoding: quoted-printable (require 'treesit) (with-temp-buffer (insert-file-contents "lisp.h") (message "%s" (treesit-parse-string (buffer-string) 'c))) --=-=-= Content-Type: text/plain Program received signal SIGSEGV, Segmentation fault. 0x000055555575c33a in buf_bytepos_to_charpos (b=0x555556074c60, bytepos=1) at marker.c:343 343 eassert (bytepos >= BUF_Z_BYTE (b) (gdb) ba 10 #0 0x000055555575c33a in buf_bytepos_to_charpos (b=0x555556074c60, bytepos=1) at marker.c:343 #1 0x0000555555853509 in Ftreesit_node_start (node=node@entry=XIL(0x55555605b225)) at treesit.c:1927 #2 0x00005555557f3f8a in print_vectorlike_unreadable (obj=XIL(0x55555605b225), printcharfun=XIL(0), escapeflag=, buf=0x7fffffff7ef0 "dd\aVUU") at print.c:2051 #3 0x00005555557f1b85 in print_object (obj=, printcharfun=, escapeflag=false) at print.c:2642 #4 0x00005555557f2cf0 in Fprin1_to_string (object=object@entry=XIL(0x55555605b225), noescape=XIL(0x30), overrides=overrides@entry=XIL(0)) at print.c:814 #5 0x00005555557b7c30 in styled_format (nargs=2, args=args@entry=0x7fffffffda30, message=message@entry=true) at editfns.c:3635 #6 0x00005555557b933f in Fformat_message (args=0x7fffffffda30, nargs=) at editfns.c:3388 #7 Fmessage (args=0x7fffffffda30, nargs=) at editfns.c:3185 #8 Fmessage (nargs=, args=0x7fffffffda30) at editfns.c:3154 #9 0x00005555557c6b75 in eval_sub (form=) at /scratch/emacs/emacs-git/src/lisp.h:2243 (More stack frames follow...) In GNU Emacs 30.0.50 (build 6, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.16.0) of 2024-05-17 built on caladan Repository revision: 6ca3a60db3427bc6aef08144c1524920ff3d9c4d Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101007 System Description: Debian GNU/Linux 12 (bookworm) Configured using: 'configure --enable-checking --without-native-compiler --with-xpm=ifavailable --with-gif=ifavailable --with-native-compilation=no --with-tree-sitter' Configured features: CAIRO DBUS FREETYPE GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 GTK3 ZLIB --=-=-=--