GNU bug report logs - #60842
29.0.50; Crash when printing sqlite object

Previous Next

Package: emacs;

Reported by: Troy Hinckley <t.macman <at> gmail.com>

Date: Sun, 15 Jan 2023 23:40:01 UTC

Severity: normal

Found in version 29.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 60842 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Eli Zaretskii <eliz <at> gnu.org>, Troy Hinckley <t.macman <at> gmail.com>
Cc: 60842 <at> debbugs.gnu.org
Subject: Re: bug#60842: 29.0.50; Crash when printing sqlite object
Date: Tue, 17 Jan 2023 12:44:57 -0800
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.





This bug report was last modified 2 years and 112 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.