GNU bug report logs -
#38748
28.0.50; crash on MacOS 10.15.2
Previous Next
Reported by: Andrii Kolomoiets <andreyk.mad <at> gmail.com>
Date: Thu, 26 Dec 2019 09:49:01 UTC
Severity: normal
Merged with 38822
Found in versions 27.0.60, 28.0.50
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Andrii Kolomoiets <andreyk.mad <at> gmail.com>
>> Cc: alan <at> idiocy.org, 38748 <at> debbugs.gnu.org
>> Date: Sun, 29 Dec 2019 21:01:42 +0200
>>
>> I can print the 'last_marked_index':
>>
>> (gdb) p last_marked_index
>> $2 = 41
>>
>> But what can I do with 'last_marked'?
>>
>> (gdb) p last_marked[40]
>> 'last_marked' has unknown type; cast it to its declared type
>
> last_marked is an array of Lisp objects, arranged in circular order,
> i.e. when the index reaches the last element, it is reset back to
> zero.
>
> To print the object at last_marked[i], for some i, you do
>
> (gdb) p last_marked[i]
> (gdb) xtype
>
> The xtype command will tell you the type of the Lisp object. You then
> display it with the corresponding xTYPE command: xint for an integer,
> xcons for a cons cell, xstring for a string, xvector for a vector,
> xbuffer for a buffer, etc. Here's a short example:
>
> (gdb) p last_marked_index
> $2 = 1
> (gdb) p last_marked[0]
> $3 = XIL(0x8000000006287630)
> (gdb) xtype
> Lisp_String
> (gdb) xstring
> $4 = (struct Lisp_String *) 0x6287630
> " *buffer-defaults*"
I'm still have no luck to print last_marked item:
(gdb) p last_marked_index
$1 = 278
(gdb) p last_marked[277]
'last_marked' has unknown type; cast it to its declared type
IDK if it make sense, casting last_modified to Lisp_Object gives me
this:
(gdb) p (Lisp_Object)last_marked
$6 = XIL(0x102dc4203)
(gdb) xtype
Lisp_Cons
(gdb) xcons
$7 = (struct Lisp_Cons *) 0x102dc4200
{
u = {
s = {
car = XIL(0x102a3aa15),
u = {
cdr = XIL(0x102dc4213),
chain = 0x102dc4213
}
},
gcaligned = 0x15
}
}
But I found the commit after which error is occurs:
b2949d39261e82c33572ba8a250298ef0b165b95
Commenting out that 'ok = false;' line make Emacs works without errors.
Justin, can you please check if Emacs prior to that commit is works fine
for you?
This bug report was last modified 4 years and 301 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.