public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "xdje42 at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug guile/17923] scheme exception about invalid object in a backtrace
Date: Wed, 11 Feb 2015 13:57:00 -0000	[thread overview]
Message-ID: <bug-17923-4717-sDgbBMGICq@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-17923-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=17923

--- Comment #7 from Doug Evans <xdje42 at gmail dot com> ---
(In reply to Marcus Daniels from comment #6)
> "for the frame problem, is it possible to set a breakpoint on one of the
> frame functions early on, when f_smob->inferior is not NULL, set a
> watchpoint on it, and then continue?  When the watchpoint triggers a
> backtrace may be sufficient to isolate the culprit."
> 
> Could you clarify if there is ever a situation in which f_smob->inferior
> ought to become NULL, even if the debugged program is continuing?

There are only two situations where f_smob->inferior changes from non-NULL to
NULL:
1) when the inferior goes away,
2) when the frame's Scheme object is garbage collected.

> For now I'm trying to add guards to frame-* calls using the modified
> frame-valid to see what other problems I run into.  If it is an endless
> chain of problems, I can't afford to keep debugging and need to take another
> approach.  If it is a bounded set, then perhaps I can afford to debug these
> issues.

All I'm asking for is to run gdb under gdb with a watchpoint set to catch the
changing of f_smob->inferior from non-NULL to NULL and then sending me a
backtrace. I'm hoping this will be doable.
If you need instructions please let me know.
Basically, run gdb under gdb, and set a breakpoint at the end of
frscm_scm_from_frame *after* this line:

  f_smob->inferior = inferior;

Then in the parent gdb do "watch -l f_smob->inferior",
and then "continue" the child gdb and continue the session
doing whatever tickles this bug.
When the bug is tickled (presumably) the watchpoint will fire
and you will be in the parent gdb.  Then do "backtrace".

Thanks!

-- 
You are receiving this mail because:
You are on the CC list for the bug.


      parent reply	other threads:[~2015-02-11  6:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-04  6:34 [Bug guile/17923] New: " mdaniels at lanl dot gov
2015-02-06 12:24 ` [Bug guile/17923] " xdje42 at gmail dot com
2015-02-06 15:28 ` mdaniels at lanl dot gov
2015-02-07  4:26 ` mdaniels at lanl dot gov
2015-02-07  4:31 ` dje at google dot com
2015-02-07 14:46 ` dje at google dot com
2015-02-08 22:02 ` mdaniels at lanl dot gov
2015-02-11 13:57 ` xdje42 at gmail dot com [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-17923-4717-sDgbBMGICq@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).