From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#58850: 29.0.50; sqlite crashes on error Date: Sat, 29 Oct 2022 10:40:09 +0300 Message-ID: <83ilk3hycm.fsf@gnu.org> References: <6698F81B-6E83-403D-8D7C-DCAC4F9D07D0@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="942"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58850@debbugs.gnu.org To: Andrew Hyatt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 29 09:44:58 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 1oogWX-000Add-RX for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Oct 2022 09:44:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oogVI-00043c-Ag; Sat, 29 Oct 2022 03:43:40 -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 1oogSl-0000ey-MY for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 03:41:04 -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 1oogSl-0003yG-EF for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 03:41:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oogSk-0006Wz-3d for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 03:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Oct 2022 07:41:02 +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.166702921725044 (code B ref 58850); Sat, 29 Oct 2022 07:41:02 +0000 Original-Received: (at 58850) by debbugs.gnu.org; 29 Oct 2022 07:40:17 +0000 Original-Received: from localhost ([127.0.0.1]:34900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oogS1-0006Vs-AX for submit@debbugs.gnu.org; Sat, 29 Oct 2022 03:40:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oogS0-0006Ve-Ab for 58850@debbugs.gnu.org; Sat, 29 Oct 2022 03:40:16 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oogRv-0003kq-2O; Sat, 29 Oct 2022 03:40:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=KqEGoHd3DoHaQJ5INfVizCQmcy34Q+65Dqv1MmXCaww=; b=P+kinKvsYPC8 ETf9Bd36kzBJ2KPQaM9QncFZw7r7xRIpce3xJ651RJg3muEae6ev5YDhtukJp/C4xR56jPGIrIB3w EwyjDJ0ksmCNeQgDbUrnuyMVUZFZomyoM7GSm6t9mhVvmmjaTulay6Go/7V16rI2AAu4v4xy53VR8 IfxX5b+QY3YhYhtuUS2WPYtVtbZovOR21BlOQtaPNoXRtrcmyu4vd8IifrstjgMTB3evlvX+i+O1/ wtxz8sUgBUL7V0eP9U8XGGjKTsFIgJ996f6Z0kLfKoRiGVe6EyBETB4necwZsQnEnBQjy7EFpHpo3 DtEpZ80QV/bqI3GVUaYetw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oogRu-000474-H0; Sat, 29 Oct 2022 03:40:10 -0400 In-Reply-To: <6698F81B-6E83-403D-8D7C-DCAC4F9D07D0@gmail.com> (message from Andrew Hyatt on Fri, 28 Oct 2022 20:47:05 -0400) 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:246500 Archived-At: > 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))