public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/28279] New: Assertion `this != current_program_space' failed.
@ 2021-08-27  9:24 andrew.burgess at embecosm dot com
  0 siblings, 0 replies; only message in thread
From: andrew.burgess at embecosm dot com @ 2021-08-27  9:24 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 28279
           Summary: Assertion `this != current_program_space' failed.
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: andrew.burgess at embecosm dot com
  Target Milestone: ---

While debugging an unrelated issue with the test
gdb.threads/forking-threads-plus-breakpoint.exp I ran into this assertion:

  ../../src/gdb/progspace.c:140: internal-error:
program_space::~program_space(): Assertion `this != current_program_space'
failed.

I was running on x86-64 GNU/Linux.  Build the test executable, then run this
GDB script:

  set height 0
  set trace-commands on
  set sysroot
  set non-stop on
  file
/tmp/build/gdb/testsuite/outputs/gdb.threads/forking-threads-plus-breakpoint/forking-threads-plus-breakpoint
  break -qualified main
  target remote | gdbserver -
/tmp/build/gdb/testsuite/outputs/gdb.threads/forking-threads-plus-breakpoint/forking-threads-plus-breakpoint
  continue
  set breakpoint condition-evaluation host
  set detach-on-fork off
  set displaced off
  break 107 if zero == 1
  continue &

After the 'continue &' I see output like this:

  +continue &
  (gdb) [New Thread 1763853.1763864]
  [New Thread 1763853.1763854]
  [New Thread 1763853.1763855]
  [New Thread 1763853.1763856]
  [New Thread 1763853.1763857]
  [New Thread 1763853.1763858]
  [New Thread 1763853.1763859]
  [New Thread 1763853.1763860]
  [New Thread 1763853.1763861]
  [New Thread 1763853.1763862]
  [New Thread 1763853.1763863]
  [New inferior 2 (process 1763865)]
  [New inferior 3 (process 1763866)]
  [Inferior 2 (process 1763865) exited normally]
  [New inferior 4 (process 1763869)]
  [Inferior 3 (process 1763866) exited normally]
  [Inferior 4 (process 1763869) exited normally]
  [New inferior 5 (process 1763870)]
  [New inferior 6 (process 1763871)]
  [Inferior 5 (process 1763870) exited normally]
  [Inferior 6 (process 1763871) exited normally]
  [New inferior 7 (process 1763872)]
  [New inferior 8 (process 1763874)]
  [Inferior 7 (process 1763872) exited normally]
  [New inferior 9 (process 1763875)]
  ... snip ...
  [Inferior 97 (process 1763974) exited normally]
  [New inferior 98 (process 1763977)]
  [Inferior 98 (process 1763977) exited normally]
  [New inferior 99 (process 1763978)]
  [New inferior 100 (process 1763979)]
  [Inferior 99 (process 1763978) exited normally]
  [New inferior 101 (process 1763980)]
  [Inferior 100 (process 1763979) exited normally]
  [Inferior 101 (process 1763980) exited normally]
  [Inferior 1 (process 1763853) exited normally]
  ../../src/gdb/progspace.c:140: internal-error:
program_space::~program_space(): Assertion `this != current_program_space'
failed.

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-27  9:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-27  9:24 [Bug gdb/28279] New: Assertion `this != current_program_space' failed andrew.burgess at embecosm 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).