From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#60842: 29.0.50; Crash when printing sqlite object Date: Tue, 17 Jan 2023 12:44:57 -0800 Organization: UCLA Computer Science Department Message-ID: <28e8c678-6769-b4e3-93c4-54dc19475c11@cs.ucla.edu> References: <24bff60e-9e99-4479-84d2-2961fdfbaa38@Spark> <83y1q24o2r.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6836"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Cc: 60842@debbugs.gnu.org To: Eli Zaretskii , Troy Hinckley Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 17 21:46:23 2023 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 1pHsqc-0001Xc-BY for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Jan 2023 21:46:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHsqM-0000yM-6m; Tue, 17 Jan 2023 15:46:06 -0500 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 1pHsqJ-0000xh-Vj for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2023 15:46:03 -0500 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 1pHsqI-0002ul-9n for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2023 15:46:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pHsqI-0008FV-5F for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2023 15:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Jan 2023 20:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60842 X-GNU-PR-Package: emacs Original-Received: via spool by 60842-submit@debbugs.gnu.org id=B60842.167398830931637 (code B ref 60842); Tue, 17 Jan 2023 20:46:02 +0000 Original-Received: (at 60842) by debbugs.gnu.org; 17 Jan 2023 20:45:09 +0000 Original-Received: from localhost ([127.0.0.1]:38398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHspR-0008ED-2J for submit@debbugs.gnu.org; Tue, 17 Jan 2023 15:45:09 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:33496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHspM-0008Cr-Ew for 60842@debbugs.gnu.org; Tue, 17 Jan 2023 15:45:07 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 36E7E16004F; Tue, 17 Jan 2023 12:44:58 -0800 (PST) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id qxQO0Frt0rdI; Tue, 17 Jan 2023 12:44:57 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 8041D16005E; Tue, 17 Jan 2023 12:44:57 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.9.2 zimbra.cs.ucla.edu 8041D16005E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=78364E5A-2AF3-11ED-87FA-8298ECA2D365; t=1673988297; bh=xxA7yC9hMBlBKyGRlrMnH8Qx53hg632CX/5hm627dYs=; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type: Content-Transfer-Encoding; b=iAo1po+EUXcy+xaIKjuUVlCuHC+CvUvgFUHGllqDZcS8tZipr64vBGk9DYRVRtjcn dKAOQtuNNpkcBS0MONfFjokQChexAheVFx5Y3Dxr0Ng8gPatKIofqIE3PHJoWge3MN R8zYfUMba2EpLWetFUTFoRB4qgDkTdWONsjC6064= X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id aVwYjRGrYHXE; Tue, 17 Jan 2023 12:44:57 -0800 (PST) Original-Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 61E1E16004F; Tue, 17 Jan 2023 12:44:57 -0800 (PST) Content-Language: en-US In-Reply-To: <83y1q24o2r.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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:253582 Archived-At: On 1/16/23 05:16, Eli Zaretskii wrote: > char buf[max (sizeof "from..to..in " + 2 * INT_STRLEN_BOUND (EMACS_INT), > max (sizeof " . #" + INT_STRLEN_BOUND (intmax_t), > max ((sizeof " with data 0x" > + (sizeof (uintmax_t) * CHAR_BIT + 4 - 1) / 4), > 40)))]; > current_thread->stack_top = buf; <<<<<<<<<<<<<<<<<<<<<<<<<< > > If you remove the indicated line, does the crash go away? > > If removing that line doesn't help, please tell the dimension of the > buf[] array that the code above calculates? In GDB, this is possible > with the command 'ptype'; I don't know what is the lldb equivalent. sizeof buf should be 54 on his platform, which I assume has 64-bit addresses and 64-bit u?intmax_t. > Paul, any ideas or suggestions? Unfortunately not.