public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/16294] New: failed assertion if running program from exited event handler (Python)
@ 2013-12-05  3:23 brobecker at gnat dot com
  2013-12-05  3:24 ` [Bug python/16294] " brobecker at gnat dot com
  2013-12-05  3:27 ` brobecker at gnat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: brobecker at gnat dot com @ 2013-12-05  3:23 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug python/16294] failed assertion if running program from exited event handler (Python)
  2013-12-05  3:23 [Bug python/16294] New: failed assertion if running program from exited event handler (Python) brobecker at gnat dot com
@ 2013-12-05  3:24 ` brobecker at gnat dot com
  2013-12-05  3:27 ` brobecker at gnat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: brobecker at gnat dot com @ 2013-12-05  3:24 UTC (permalink / raw)
  To: gdb-prs

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

Joel Brobecker <brobecker at gnat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at sourceware dot org   |brobecker at adacore dot com

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug python/16294] failed assertion if running program from exited event handler (Python)
  2013-12-05  3:23 [Bug python/16294] New: failed assertion if running program from exited event handler (Python) brobecker at gnat dot com
  2013-12-05  3:24 ` [Bug python/16294] " brobecker at gnat dot com
@ 2013-12-05  3:27 ` brobecker at gnat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: brobecker at gnat dot com @ 2013-12-05  3:27 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from Joel Brobecker <brobecker at gnat dot com> ---
I was able to reproduce the problem in 7.4 and 7.5 as well. So I think we can
rule out that this is a recent regression (and thus not block 7.7 for this
bug).

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-12-05  3:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-05  3:23 [Bug python/16294] New: failed assertion if running program from exited event handler (Python) brobecker at gnat dot com
2013-12-05  3:24 ` [Bug python/16294] " brobecker at gnat dot com
2013-12-05  3:27 ` brobecker at gnat dot com

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).