From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_Paulo_Labegalini_de_Carvalho?= Newsgroups: gmane.emacs.devel Subject: Re: SIGSEGV in treesit_load_language Date: Mon, 17 Oct 2022 11:37:51 -0600 Message-ID: References: <83mt9u1hk5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000fe573305eb3e6f92" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="345"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, casouri@gmail.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 17 19:43:31 2022 Return-path: Envelope-to: ged-emacs-devel@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 1okU9D-000ASU-0I for ged-emacs-devel@m.gmane-mx.org; Mon, 17 Oct 2022 19:43:31 +0200 Original-Received: from localhost ([::1]:60946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okU9B-0002uH-RK for ged-emacs-devel@m.gmane-mx.org; Mon, 17 Oct 2022 13:43:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okU3y-0008R6-Im for emacs-devel@gnu.org; Mon, 17 Oct 2022 13:38:06 -0400 Original-Received: from mail-oa1-x2e.google.com ([2001:4860:4864:20::2e]:38446) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1okU3x-0003Zr-0X; Mon, 17 Oct 2022 13:38:06 -0400 Original-Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-1322d768ba7so14070714fac.5; Mon, 17 Oct 2022 10:38:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=YVKXb5Fr7K/UIjSZ1HOgLpIt/8OoGDTSx5dpmlipLiI=; b=qBUXW+xmJtUlApfxiCoaWGi27+x2t4UYnJLYj9cnykeDri3jdfOFjdX/2Qmti2lnWQ KIgfgwurfaV9cGRdGpy7l1IM8VwRC4cKpN21AeCXnm/PNxNgnqN4rE0Z8EPBFmpr91eb 7KIxROqXjmgya9JgurDFDg31XMcz5h3/nhinnafNlu7SlwvFUMksYwVN8/rVPIZlEIvI nx00YbxDKHJyb1X1R7tZ/lFBZY7+odeL8+s4eH/eq6zqnLYkBVyObgMgfMzrmwHYOmOg AECmld1yXvhOl8fcnV4W85Ll0DlKS9n0PnSxBm3lUI2GW4ccWOSMHa5KaKIMCJdXop4z GgcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YVKXb5Fr7K/UIjSZ1HOgLpIt/8OoGDTSx5dpmlipLiI=; b=OpZ27QqrqG3yKCM8k6fz/n5saqpmERb6GWSZ4exyzt1nmiN6NLIiAfzB7XskvollI1 dIh3+4ZTa31XgDDP8F9hCt6hEu+Tf9RVyHEbmVpi82WDvnTlfLV0yt4GEOCRrK1SKfVX wK0NxTk2eCxPhEgpDogfkfojHADpe/XsSRLpQEKxW10lzn3TV8HLCB8KyJ7r9JSpq7Sx 1PNhcv6Hm0tUgs+eKIbxBmOivwdE1P92GdLtmm0nn0X6FDJmJx6yJM5F1ANHO/cru0qO NzdlO8v9h8qvC3n2YImDHV+SUiO9bhFNoS0qbEddZcVA7uJW/4eUnK9MN2eWCMqXriHz xTcg== X-Gm-Message-State: ACrzQf070RGG8r7OCHBr04OkA8IDWex/seXvBIfGJMPI4eo8lM3oR4ou 7ygZxoUtltnZXkYLkhdOvYdvi72kzSamBrUSUTojaRRq X-Google-Smtp-Source: AMsMyM78eTqgKiHtwnGOfvWVTfZebakoVPysCp8M1fA4vQG8+xtKtI+gv7vPFbH2Zj7Hwy2pcm9uDgW4ui1KrPX15Qs= X-Received: by 2002:a05:6870:d1d0:b0:12c:cfd2:8285 with SMTP id b16-20020a056870d1d000b0012ccfd28285mr6445534oac.105.1666028282991; Mon, 17 Oct 2022 10:38:02 -0700 (PDT) In-Reply-To: <83mt9u1hk5.fsf@gnu.org> Received-SPF: pass client-ip=2001:4860:4864:20::2e; envelope-from=jaopaulolc@gmail.com; helo=mail-oa1-x2e.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, HTML_MESSAGE=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: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:297974 Archived-At: --000000000000fe573305eb3e6f92 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks for pointing that out , Eli. I missed that comment in M-x describe-variable RET treesit-extra-load-path. Would it not be better to generate an error "wrong type of argument" instead of just causing a SIGSEGV though? On Mon, Oct 17, 2022 at 11:33 AM Eli Zaretskii wrote: > > From: Jo=C3=A3o Paulo Labegalini de Carvalho > > Date: Mon, 17 Oct 2022 11:19:03 -0600 > > > > (setq treesit-extra-load-path > "~/emacs-tree-sitter/emacs-devel/admin/notes/tree-sitter/build-module/dis= t") > > The value of this variable should be a list, not a single string. > --=20 Jo=C3=A3o Paulo L. de Carvalho Ph.D Computer Science | IC-UNICAMP | Campinas , SP - Brazil Postdoctoral Research Fellow | University of Alberta | Edmonton, AB - Canad= a joao.carvalho@ic.unicamp.br joao.carvalho@ualberta.ca --000000000000fe573305eb3e6f92 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks for pointing that=C2=A0out , Eli. I missed that com= ment in M-x describe-variable RET treesit-extra-lo= ad-path.

Would it not be better to generate an error "wr= ong type of argument" instead of just causing a SIGSEGV though?



--
--000000000000fe573305eb3e6f92--