From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Troy Hinckley Newsgroups: gmane.emacs.bugs Subject: bug#60842: 29.0.50; Crash when printing sqlite object Date: Sun, 29 Jan 2023 00:36:40 -0700 Message-ID: <2c09e4d8-1fa6-4838-b7e8-180818c0f7f8@Spark> References: <24bff60e-9e99-4479-84d2-2961fdfbaa38@Spark> <83y1q24o2r.fsf@gnu.org> <28e8c678-6769-b4e3-93c4-54dc19475c11@cs.ucla.edu> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="63d6220e_2b0d8dbe_4fe" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15829"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60842@debbugs.gnu.org To: Eli Zaretskii , Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 29 08:37:14 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 1pM2FV-0003vE-Jf for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 29 Jan 2023 08:37:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pM2FN-0006yb-Ag; Sun, 29 Jan 2023 02:37:05 -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 1pM2FL-0006ug-Ax for bug-gnu-emacs@gnu.org; Sun, 29 Jan 2023 02:37: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 1pM2FK-0000M8-Ct for bug-gnu-emacs@gnu.org; Sun, 29 Jan 2023 02:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pM2FJ-0000L9-W6 for bug-gnu-emacs@gnu.org; Sun, 29 Jan 2023 02:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Troy Hinckley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Jan 2023 07:37:01 +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.16749778171296 (code B ref 60842); Sun, 29 Jan 2023 07:37:01 +0000 Original-Received: (at 60842) by debbugs.gnu.org; 29 Jan 2023 07:36:57 +0000 Original-Received: from localhost ([127.0.0.1]:42186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pM2FF-0000Kq-2Q for submit@debbugs.gnu.org; Sun, 29 Jan 2023 02:36:57 -0500 Original-Received: from mail-il1-f172.google.com ([209.85.166.172]:46932) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pM2FB-0000KV-Ay for 60842@debbugs.gnu.org; Sun, 29 Jan 2023 02:36:55 -0500 Original-Received: by mail-il1-f172.google.com with SMTP id u8so4016452ilq.13 for <60842@debbugs.gnu.org>; Sat, 28 Jan 2023 23:36:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=5slo9i56uh+UwRrREmiDUrETN8SB50ShodYO3xl/fDQ=; b=L3MvfZvCMeH8Osj2km3U5GHtJclM8AwTp57kRjRd6U6S3r/rd2RhFk3MRlP9Ye5p7B gSAn1VFj9MZASqKwxPboJXcPZQA4S+pvtdIZKO9kF+8rL+5igyzaK0j7Dh/iPlcGH+7Q jZRlZPDqnzBYi3dXVjS2hm1TsExRABMxGSGksyYMvfSju/H83PgvjS6SBZLS/XxW7FHw jCNOVVAlWr+XNO5Iw272rzRrdHmjhKsGfgjTmgl8EPHl8l7Qu2cmmKEaSMvTqO2BcGhB bgXZZ5CbwE+Cf9fL30G0KB6KzvMqWFl/WeUw4opsfLGUtxK9/vWCOItMpcziB6DYDbo8 vTXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5slo9i56uh+UwRrREmiDUrETN8SB50ShodYO3xl/fDQ=; b=PHYsRdtCboAC7q7UHFzLKpcIxpNmvWp0evIO1aT6L5uy1QggJiRgCBrVkKsfFuQDz/ d8pny/X02QQtzGXZNNqb4PpFlNKPaSFth1y1sEOGywMtiWhRFLPPRBg7XTdYSCM02KPk FoUsciFrEuWQ7xArBiGQH+7pMH1vRiQMpdo2BRQ6/hLWMrBY6Ru6TYP02uZ1VFwVwPDr 6nyCuMh34voq9wo1tbqKUJLpOH1cSFWtgEyM27rDOFVIHoGc4KpHKspbI6SUW2bWZF+H LDtrQX1H2XO5fKyOOu6Qqhi+P2f1TxkDqiLYufIFWOgcRYPIJbavHCq3rzMkVx2DoBnw CVJg== X-Gm-Message-State: AO0yUKUnzDr17GzLK53JuED5MHEbNUKzXbMbd55pxv9gj7qXdH5slQ6Y KL81ZvPq03UzUP8URl+P7vA= X-Google-Smtp-Source: AK7set8q4KP4x2A2p+WLQUR298xXLJQVmiBIVWHY8DDjNP4oMrS2p8XVEi26nGzx0qpHIr5ghADiiw== X-Received: by 2002:a05:6e02:1bae:b0:30f:8a3b:6c04 with SMTP id n14-20020a056e021bae00b0030f8a3b6c04mr18981989ili.17.1674977807723; Sat, 28 Jan 2023 23:36:47 -0800 (PST) Original-Received: from [192.168.1.122] (h24-54-181-16.ftcmco.broadband.dynamic.tds.net. [24.54.181.16]) by smtp.gmail.com with ESMTPSA id y8-20020a92c988000000b00310a798fce0sm2938778iln.1.2023.01.28.23.36.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 Jan 2023 23:36:47 -0800 (PST) In-Reply-To: <28e8c678-6769-b4e3-93c4-54dc19475c11@cs.ucla.edu> X-Readdle-Message-ID: 2c09e4d8-1fa6-4838-b7e8-180818c0f7f8@Spark 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:254336 Archived-At: --63d6220e_2b0d8dbe_4fe Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Sorry for the long delay. I updated my Emacs version to the latest 29 commit and the issue went away. I am no longer able to reproduce it. Thank you for the quick reply and debug though! On Jan 17, 2023 at 1:44 PM -0700, Paul Eggert , wrote: > 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. > --63d6220e_2b0d8dbe_4fe Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Sorry for the long delay. I updated my Emacs versio= n to the latest 29 commit and the issue went away. I am no longer able to= reproduce it. Thank you for the quick reply and debug though=21
On Jan 17, 2023 at 1:44 PM -0700, P= aul Eggert <eggert=40cs.ucla.edu>, wrote:
On 1/16/23 05:16, Eli Zaretskii wrote:

char buf=5Bmax (sizeof =22from..to..in =22 = + 2 * INT=5FSTRLEN=5FBOUND (EMACS=5FINT),
max (sizeof =22 . =23=22 + INT=5FSTRLEN=5FBOUND (intmax=5Ft),
max ((sizeof =22 with data 0x=22
+ (sizeof (uintmax=5Ft) * CHAR=5FBIT + 4 - 1) / 4),
40)))=5D;
current=5Fthread->stack=5Ftop =3D buf; <<<<<<<<= ;<<<<<<<<<<<<<<<<<<=

If you remove the indicated line, does the crash go away=3F

If removing that line doesn't help, please tell the dimension of the
buf=5B=5D array that the code above calculates=3F In GDB, this is possibl= e
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=3Fintmax=5Ft.


Paul, any ideas or suggestions=3F

Unfortunately not.

--63d6220e_2b0d8dbe_4fe--