public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "brobecker at gnat dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug python/16294] New: failed assertion if running program from exited event handler (Python) Date: Thu, 05 Dec 2013 03:23:00 -0000 [thread overview] Message-ID: <bug-16294-4717@http.sourceware.org/bugzilla/> (raw) https://sourceware.org/bugzilla/show_bug.cgi?id=16294 Bug ID: 16294 Summary: failed assertion if running program from exited event handler (Python) Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: python Assignee: unassigned at sourceware dot org Reporter: brobecker at gnat dot com Created attachment 7313 --> https://sourceware.org/bugzilla/attachment.cgi?id=7313&action=edit Python script file With the following dummy program... | int | main (void) | { | return 0; | } ... compiled using ... % gcc -g -o dummy dummy.c ... and the following Python/GDB script called 'crun.py' ... | do_rerun = True | def exit_handler(event): | global do_rerun | if do_rerun: | do_rerun = False | print "Program exited once. Run it a second time." | gdb.execute('run') | gdb.events.exited.connect(exit_handler) ... the following scenario produces a failed assertion: | % gdb dummy | (gdb) source crun.py | (gdb) run | Starting program: /[...]/dummy | [Inferior 1 (process 22353) exited normally] | Program exited once. Run it a second time. | [Inferior 1 (process 22357) exited normally] | /[...]/gdb/infrun.c:1183: internal-error: remove_displaced_stepping_state: Assertion `pid != 0' failed. I had hoped to be able to investigate this problem quickly. But I've been stuck doing other things, at the moment, so I am creating this PR to make sure I don't forget it. -- You are receiving this mail because: You are on the CC list for the bug.
next reply other threads:[~2013-12-05 3:23 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-12-05 3:23 brobecker at gnat dot com [this message] 2013-12-05 3:24 ` [Bug python/16294] " brobecker at gnat dot com 2013-12-05 3:27 ` brobecker at gnat 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-16294-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: linkBe 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).