From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrew Hyatt Newsgroups: gmane.emacs.bugs Subject: bug#58850: 29.0.50; sqlite crashes on error Date: Sat, 29 Oct 2022 19:44:17 -0400 Message-ID: References: <6698F81B-6E83-403D-8D7C-DCAC4F9D07D0@gmail.com> <83ilk3hycm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000094168e05ec34f48e" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9804"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58850@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 30 01:45:22 2022 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 1oovVy-0002Mi-C8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 30 Oct 2022 01:45:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oovVh-0000dg-V9; Sat, 29 Oct 2022 19:45:05 -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 1oovVe-0000dM-Dz for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 19:45:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oovVe-0006as-1r for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 19:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oovVd-0005Pn-NU for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 19:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrew Hyatt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Oct 2022 23:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58850 X-GNU-PR-Package: emacs Original-Received: via spool by 58850-submit@debbugs.gnu.org id=B58850.166708707720765 (code B ref 58850); Sat, 29 Oct 2022 23:45:01 +0000 Original-Received: (at 58850) by debbugs.gnu.org; 29 Oct 2022 23:44:37 +0000 Original-Received: from localhost ([127.0.0.1]:36887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oovVF-0005Or-GE for submit@debbugs.gnu.org; Sat, 29 Oct 2022 19:44:37 -0400 Original-Received: from mail-yw1-f176.google.com ([209.85.128.176]:39540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oovVD-0005Oe-5t for 58850@debbugs.gnu.org; Sat, 29 Oct 2022 19:44:36 -0400 Original-Received: by mail-yw1-f176.google.com with SMTP id 00721157ae682-36ad4cf9132so78512557b3.6 for <58850@debbugs.gnu.org>; Sat, 29 Oct 2022 16:44:35 -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=k0vgcyTlIIb7r+V8EcMB806Fc3QzxjQF5FHXRMOIJRE=; b=KE69IA2D8Iu8SqmI/8S1y/a6jxQ9NbR1T5Ejj1Guk3+d4vPHJSeTQT8jycItF2oQTM OM1ERcE7gW7L5DEGeWOvwgPme0HCALd7bs8glwS23uf0MM/W6O+Ye+YM6v5MwYoB2U5q 93IxZt+bsGR8Zei0i0hSLmzVXHhjKAl48J1IvYqsyo3NODq2PGZ/n3ppbOUf/3x4oMgx WlKqfQIk2BhJSqFYWtWgbU2fV7dc+BatHJP73os+GTfLb91Iv0yVoaAmJWNianDJfTAY KUdOwuPKCtLiGpMak6BgBoquNDnfWQIkFVsLUso9ClInu1NTu0TNc/dZctJY+DZfwjfW KO+A== 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=k0vgcyTlIIb7r+V8EcMB806Fc3QzxjQF5FHXRMOIJRE=; b=JJDqWhksLp9gRXLEuWI0wQXudSO3tX3joBUtXeNi+zX1oMqXzBQHVUZJwAAPQHA173 9ogOgmkg5D4Uq0gmBzNcoCFd8+jOuCLA79Qz0dK6zmbTndhbvLUQad1PdsA9BNBzhFjO wz777sb1ZPU8TPOKwZP8bHVnlRSrQpCTAGJGgsrAswkvKjShXqvx4Zvkrdy7M9WbDeGz gDqHiM0axvrmwLFk67vvImgNwcVjg1MjyiBahoZ9ezRytb2ZDcwSdJhOWdo1fBjQG9YB Fm8RMwFQ8SiUUUyN4OJoDlAuSpyPwOWDx3EItw4wko2OZMqxFb/pu3w5/8Zpvm7Id69y K6NA== X-Gm-Message-State: ACrzQf3gW0JtSwDS1OqvYjoJMP8tC+AEfWwjmEyRzIyDt5kZU0ORXxDt fe7AsT8utmc2/6djAn0OioJCuIMzP5gLnbRabdA= X-Google-Smtp-Source: AMsMyM63MfYiAv6SE62HastatD7Tbqb5C8/lQ8II0WRIUKWZdj5YuIXykC4m4YcTw7d2hejpLYpTIpfX1b05wSqDu5U= X-Received: by 2002:a81:4e87:0:b0:368:3422:a62d with SMTP id c129-20020a814e87000000b003683422a62dmr6057281ywb.277.1667087069351; Sat, 29 Oct 2022 16:44:29 -0700 (PDT) In-Reply-To: <83ilk3hycm.fsf@gnu.org> 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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246577 Archived-At: --00000000000094168e05ec34f48e Content-Type: text/plain; charset="UTF-8" On Sat, Oct 29, 2022 at 3:40 AM Eli Zaretskii wrote: > > From: Andrew Hyatt > > Date: Fri, 28 Oct 2022 20:47:05 -0400 > > > > From emacs -Q, execute the following: > > > > > > (defun will-fail () > > (let ((db (sqlite-open (make-temp-file "will-fail")))) > > (sqlite-execute db "SELECT foo FROM bar;"))) > > > > (will-fail) > > > > Some combination of sqlite and getting errors that result in backtraces > > seems to result in a problem. > > > > Relevant information from the crash report: > > Thread 0 Crashed:: Dispatch queue: com.apple.main-thread > > 0 libsystem_kernel.dylib 0x1aab6ed98 __pthread_kill > + 8 > > 1 libsystem_pthread.dylib 0x1aaba3ee0 pthread_kill + > 288 > > 2 libsystem_c.dylib 0x1aaade3cc __abort + 128 > > 3 libsystem_c.dylib 0x1aaacfd48 > __stack_chk_fail + 96 > > 4 Emacs 0x102dcdbd8 print_object + > 5920 > > 5 Emacs 0x102dc9d50 Fprin1 + 112 > (print.c:775) > > Please try the latest master branch. Jonas installed changes there > that are related to sqlite error handling, and with today's master I > get a Lisp error with your recipe, not a crash: > > Debugger entered--Lisp error: (sqlite-error ("SQL logic error" "no such > table: bar" 1 1)) > I've synced, rebuilt, verified Jonas's change is there, however the crash still occurs. --00000000000094168e05ec34f48e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, Oct 29, 2022 at 3:40 AM Eli Zaretskii= <eliz@gnu.org> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">> From: Andrew Hyatt &l= t;ahyatt@gmail.com>
> Date: Fri, 28 Oct 2022 20:47:05 -0400
>
> From emacs -Q, execute the following:
>
>
> (defun will-fail ()
>=C2=A0 =C2=A0(let ((db (sqlite-open (make-temp-file "will-fail&quo= t;))))
>=C2=A0 =C2=A0 =C2=A0(sqlite-execute db "SELECT foo FROM bar;"= )))
>
> (will-fail)
>
> Some combination of sqlite and getting errors that result in backtrace= s
> seems to result in a problem.
>
> Relevant information from the crash report:
> Thread 0 Crashed::=C2=A0 Dispatch queue: com.apple.main-thread
> 0=C2=A0 =C2=A0libsystem_kernel.dylib=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00x1aab6ed98 __pthread_kill + 8
> 1=C2=A0 =C2=A0libsystem_pthread.dylib=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0x1aaba3ee0 pthread_kill + 288
> 2=C2=A0 =C2=A0libsystem_c.dylib=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0x1aaade3cc __abort + 128
> 3=C2=A0 =C2=A0libsystem_c.dylib=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0x1aaacfd48 __stack_chk_fail = + 96
> 4=C2=A0 =C2=A0Emacs=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 0x102dcdbd8 print_object + 5920
> 5=C2=A0 =C2=A0Emacs=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 0x102dc9d50 Fprin1 + 112 (print.c:775)

Please try the latest master branch.=C2=A0 Jonas installed changes there that are related to sqlite error handling, and with today's master I get a Lisp error with your recipe, not a crash:

=C2=A0 Debugger entered--Lisp error: (sqlite-error ("SQL logic error&q= uot; "no such table: bar" 1 1))

I've synced, rebuilt, verified Jonas's change is there, however = the crash still occurs.=C2=A0
--00000000000094168e05ec34f48e--