From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25683 invoked by alias); 5 Dec 2013 03:23:50 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 25660 invoked by uid 48); 5 Dec 2013 03:23:49 -0000 From: "brobecker at gnat dot com" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: python X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: brobecker at gnat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-q4/txt/msg00512.txt.bz2 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.