public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "dimitar.zhekov at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug mi/15863] New: -var-update if the program is not running crashes gdb
Date: Tue, 20 Aug 2013 16:15:00 -0000	[thread overview]
Message-ID: <bug-15863-4717@http.sourceware.org/bugzilla/> (raw)

http://sourceware.org/bugzilla/show_bug.cgi?id=15863

            Bug ID: 15863
           Summary: -var-update if the program is not running crashes gdb
           Product: gdb
           Version: 7.6
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mi
          Assignee: unassigned at sourceware dot org
          Reporter: dimitar.zhekov at gmail dot com
              Host: Linux xos4 3.10-2-686-pae #1 SMP Debian 3.10.5-1
                    (2013-08-07) i686 GNU/Linux
            Target: Linux xos4 3.10-2-686-pae #1 SMP Debian 3.10.5-1
                    (2013-08-07) i686 GNU/Linux

Steps to reproduce:

$ gdb --interpreter=mi ~/hello
=thread-group-added,id="i1"
~"Reading symbols from /home/build/hello..."

(gdb) -var-create - * main
^done,name="var1",numchild="0",value="{int (void)} 0x80483fc <main>",type="int
(void)",has_more="0"

(gdb) -data-evaluate-expression main
^done,value="{int (void)} 0x80483fc <main>"

(gdb) -var-update *
~"/build/gdb-CewkFW/gdb-7.6/gdb/thread.c:615: internal-error: is_thread_state:
Assertion `tp' failed.\nA problem internal to GDB has been detected,\nfurther
debugging may prove unreliable.\nQuit this debugging session? "
~"(y or n) "
y
Aborted (core dumped)

--

The program doesn't matter; any C or C++ program compiled with -g will do.

Evaluating main() doesn't make much sense, but it crashes on any global symbol.

Using @ or 0 for stack frame makes no difference.

-var-update works fine _while the program is running_, and crashes again if it
has been terminated.

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


             reply	other threads:[~2013-08-20 16:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-20 16:15 dimitar.zhekov at gmail dot com [this message]
2014-06-16 18:51 ` [Bug mi/15863] " cvs-commit at gcc dot gnu.org
2014-06-16 18:52 ` keiths at redhat dot com

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-15863-4717@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).