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:48:53 -0600 Message-ID: References: <83mt9u1hk5.fsf@gnu.org> <83lepe1h5n.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000007802b505eb3e975b" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3508"; 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:51:58 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 1okUHO-0000kf-CP for ged-emacs-devel@m.gmane-mx.org; Mon, 17 Oct 2022 19:51:58 +0200 Original-Received: from localhost ([::1]:42936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okUHN-0000oG-Ac for ged-emacs-devel@m.gmane-mx.org; Mon, 17 Oct 2022 13:51:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okUEe-0007Lq-TY for emacs-devel@gnu.org; Mon, 17 Oct 2022 13:49:08 -0400 Original-Received: from mail-oi1-x232.google.com ([2607:f8b0:4864:20::232]:33346) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1okUEd-0005H6-AE; Mon, 17 Oct 2022 13:49:08 -0400 Original-Received: by mail-oi1-x232.google.com with SMTP id w74so12987506oie.0; Mon, 17 Oct 2022 10:49:06 -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=x0xg6ggE/Z52vbnPhv5KinS52fyQe86texaOLGSLGB4=; b=Lh/GmxdFvQibJIQ1/4PVtgJrhLf7fbaxWkGa9PVPSijcEM/0jwPB7NFWDhLhXUs8Qg hx/1G+LcIMZHrvVUkxHJWim2mU0686Lz9oQWiFG0xFRnFax/TtayfJBSEF/nFb+99SXa oZWvNZ+5wbi7aNkuNqAJmlP8xRIv+Cj5fz9pCPFoB5gEqM0z5jV+vsdECYTtw1IdDqqY SpjPvmB594jGR0zeysndz3gbU0Wi259eD59BDhBuoBUxWKqq38OjSLhPIFP95ihHQHqm 3Uez+tO3+dzsuNq2m5cJQPsxKJMhPbTo+LUFZct7EItj2gJziyKGW7c1dOJoIRhT1hMH 1eaA== 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=x0xg6ggE/Z52vbnPhv5KinS52fyQe86texaOLGSLGB4=; b=jOjvRiXYKJ/dATMQH/kPq2RmMQN67yC6Ls+PSSrKyfr6K//R+RiitAH4YgM8I+mu33 SrlcJ9yN92HrmBs9KigvmQDegs6HRciwKuHVjtfvFsceY7f6s4oO6zzFgyItXph+3/Xk tW8GPkFWiyH38oxC7fwIvWiFDN6YDcZ9j67W3loS8uK8gN+WbcAg5/GCQZCm43IRhG4B RJLGwg9SHQrGUKRdZTjduFdlDMwNGDii9lUKBi+S6hjtHthjYmQ0KmigflFpiDk9zFwB WaInVNrS3+6vOhZppBT0S7ujGDlTZ+gOw9ilofLCjfBmSYavrJMv0UFJX4kq35nnA4Kl vRPg== X-Gm-Message-State: ACrzQf0DeapW7tRBr5qjG9e0DJ/+HuJHTy/uJVcXWuB/1jffm6lMjlh5 8uOHCew+3aC+NMIDFTKn69nVi/ycjFwWaDXdf2YWTTwR X-Google-Smtp-Source: AMsMyM7QL+U1tUnuc8Gk1weTEV6TQKCk19mrxyikPahqZqZ+3qvzxQTZK13Ktsz83kCWZpu6K3SPy6qduxEnP/2qkRk= X-Received: by 2002:a05:6808:1187:b0:353:a617:6acd with SMTP id j7-20020a056808118700b00353a6176acdmr5677463oil.105.1666028945276; Mon, 17 Oct 2022 10:49:05 -0700 (PDT) In-Reply-To: <83lepe1h5n.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::232; envelope-from=jaopaulolc@gmail.com; helo=mail-oi1-x232.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_REPLY=1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:297976 Archived-At: --0000000000007802b505eb3e975b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you, Eli. I was trying to figure how to address this, but you were quicker than me. On Mon, Oct 17, 2022 at 11:42 AM Eli Zaretskii wrote: > > From: Jo=C3=A3o Paulo Labegalini de Carvalho > > Date: Mon, 17 Oct 2022 11:37:51 -0600 > > Cc: emacs-devel@gnu.org, casouri@gmail.com > > > > Would it not be better to generate an error "wrong type of argument" > instead of just causing a SIGSEGV > > though? > > Already done, please update from Git. > --=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 --0000000000007802b505eb3e975b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you, Eli.

I was trying to figure how to addre= ss this, but you=C2=A0were quicker than me.

On Mon, Oct 17, 2022 at 11:4= 2 AM Eli Zaretskii <eliz@gnu.org>= wrote:
> Fro= m: Jo=C3=A3o Paulo Labegalini de Carvalho <jaopaulolc@gmail.com>
> Date: Mon, 17 Oct 2022 11:37:51 -0600
> Cc: emacs-dev= el@gnu.org, caso= uri@gmail.com
>
> Would it not be better to generate an error "wrong type of argume= nt" instead of just causing a SIGSEGV
> though?

Already done, please update from Git.


--
Jo= =C3=A3o Paulo L. de Carvalho
Ph.D Computer Science | =C2=A0IC-UNICAMP | = Campinas , SP - Brazil
Postdoctoral Research Fellow | University of Albe= rta | Edmonton, AB - Canada
--0000000000007802b505eb3e975b--