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: Tue, 01 Nov 2022 09:45:37 +0200 Message-ID: <83o7trce3i.fsf@gnu.org> References: <6698F81B-6E83-403D-8D7C-DCAC4F9D07D0@gmail.com> <83ilk3hycm.fsf@gnu.org> <835yg1hl9k.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8230"; 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+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 01 08:46:35 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 1oplyl-0001vo-3L for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Nov 2022 08:46:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oplyG-0000CK-Vo; Tue, 01 Nov 2022 03:46: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 1oplyE-0000C8-Nm for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2022 03:46:03 -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 1oplyD-00079D-SO for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2022 03:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oplyD-0001yF-KS for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2022 03:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Nov 2022 07:46: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.16672887597567 (code B ref 58850); Tue, 01 Nov 2022 07:46:01 +0000 Original-Received: (at 58850) by debbugs.gnu.org; 1 Nov 2022 07:45:59 +0000 Original-Received: from localhost ([127.0.0.1]:42589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oplyB-0001xz-4I for submit@debbugs.gnu.org; Tue, 01 Nov 2022 03:45:59 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oply9-0001xg-P2 for 58850@debbugs.gnu.org; Tue, 01 Nov 2022 03:45:58 -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 1oply4-00078e-Eq; Tue, 01 Nov 2022 03:45:52 -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=cEn5NYQO8ZJynTAugpl7TpdgIlGZ9obrSaN9Xymt3vk=; b=Aaerksk2BM7A S+o1eQRTYyMXoiAx7Ls/HE4O/LYyJrQujm2b8/rpFJGMudywMazgI+bWXFp9XG3X9NVra8ZRiaPc/ y6iBT9xNYV4zK1xzh8DX26Hsrcm05qZfjlWuu1CvPcZiKBqXW33bGJ1Z5RZR7r0R7MYUqUzK84Ohh 3Kq+gYRDfVlTp3HjAnPPHFiCEQ1h93NZqIdO/ZrSOZgyO1iWs5mE53d7KeAkbRkW+71rXVDgxz+/P 524w03FiszIYM1fjbSkTZMSGnYSiWFAxeinvOBD7Wqhy4HJiw7JcyNVxx0+92reXzLOoEPhl9vBC0 r+oSFj+E4v5+REPcmZ7FOw==; 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 1oply3-0004t2-Dv; Tue, 01 Nov 2022 03:45:51 -0400 In-Reply-To: (message from Andrew Hyatt on Tue, 1 Nov 2022 00:28:36 -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+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246748 Archived-At: > From: Andrew Hyatt > Date: Tue, 1 Nov 2022 00:28:36 -0400 > Cc: 58850@debbugs.gnu.org > > Right now, I narrowed the problem down to the sqlite connection name creation, since it is the printing of the > sqlite object's name that causes the crash. This is not at all clear from the backtrace you posted; see below. > The creation of the name is on sqlite.c line 269 > (https://git.savannah.gnu.org/cgit/emacs.git/tree/src/sqlite.c#n269). I can make the crash go away by > substituting that line with my own filename: name = build_string("/tmp/test.db"); That line just encodes the file name. I have hard time believing it could cause a problem like this. What do you see in the value of 'name' after line 269 is executed? For starters, please rebuild Emacs without optimizations and with "--enable-checking=yes" at configure time, and then post a full backtrace when running the recipe you posted. The original backtrace you posted seems to come from an optimized build (so line numbers don't tell the whole story), and includes multiple references to ERT functions, from which I conclude it was not obtained by running the recipe, but by running something much more complex. Armed with the accurate backtrace, we might have a different picture of what causes this problem.