[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help please! To track down GC trying to free an already freed object
From: |
Alan Mackenzie |
Subject: |
Re: Help please! To track down GC trying to free an already freed object. |
Date: |
Wed, 3 Apr 2019 10:01:13 +0000 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
Hello, Eli.
On Wed, Apr 03, 2019 at 07:39:35 +0300, Eli Zaretskii wrote:
> > Date: Tue, 2 Apr 2019 20:46:53 +0000
> > From: Alan Mackenzie <address@hidden>
> > Cc: Daniel Colascione <address@hidden>, address@hidden
> > > GDB supports reverse execution as well, on some platforms.
> > On my GNU/Linux system, I tried to run 'reverse-next', and got the error
> > message:
> > Target multi-thread does not support this command.
> I think you are supposed to record the execution, and then say
> (gdb) target record-core
> or
> (gdb) target record-btrace
> before the reverse execution is available.
Yes. I thought there was something missing. ;-) There's no mention of
such recording in the GDB manual's "Reverse Execution" page, nor any
cross reference to "Process Record and Replay" there.
I'll try again and see if I can get it working.
> But I was always able to debug GC problems by using last_marked array.
The problem I think I'm up against is that the symbol-with-pos object is
not being marked at a particular garbage_collect_1, and thus gets freed
prematurely.
I intend to get the hex values of the Lisp_Objects which constitute the
list in which the symbol-with-pos is embedded and search for these in
last_marked. Putting a conditional breakpoint on Fcons slows down Emacs
somewhat. ;-)
--
Alan Mackenzie (Nuremberg, Germany).
- Help please! To track down GC trying to free an already freed object., Alan Mackenzie, 2019/04/02
- Re: Help please! To track down GC trying to free an already freed object., Daniel Colascione, 2019/04/02
- Re: Help please! To track down GC trying to free an already freed object., Eli Zaretskii, 2019/04/02
- Re: Help please! To track down GC trying to free an already freed object., Alan Mackenzie, 2019/04/02
- Re: Help please! To track down GC trying to free an already freed object., Daniel Colascione, 2019/04/02
- Re: Help please! To track down GC trying to free an already freed object., Eli Zaretskii, 2019/04/03
- Re: Help please! To track down GC trying to free an already freed object.,
Alan Mackenzie <=
- Re: Help please! To track down GC trying to free an already freed object., Eli Zaretskii, 2019/04/03
- Re: Help please! To track down GC trying to free an already freed object., Paul Eggert, 2019/04/03
Re: Help please! To track down GC trying to free an already freed object., Alan Mackenzie, 2019/04/02
- Re: Help please! To track down GC trying to free an already freed object., Daniel Colascione, 2019/04/02
- Re: Help please! To track down GC trying to free an already freed object., Alan Mackenzie, 2019/04/02
- Re: Help please! To track down GC trying to free an already freed object., Alex, 2019/04/05
- Re: Help please! To track down GC trying to free an already freed object., Alan Mackenzie, 2019/04/05
- Comparing symbol-with-position using eq (was: Help please! To track down GC trying to free an already freed object.), Alex, 2019/04/05
- Re: Comparing symbol-with-position using eq, Alan Mackenzie, 2019/04/05
- Re: Comparing symbol-with-position using eq, Daniel Colascione, 2019/04/05