From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13404 invoked by alias); 19 Mar 2015 11:16:00 -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 13370 invoked by uid 48); 19 Mar 2015 11:15:59 -0000 From: "palves at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug remote/17397] i686-w64-mingw32 remote multiprocess debugging: thread.c:1002: internal-error: switch_to_thread: Assertion `inf != NULL' failed. Date: Thu, 19 Mar 2015 11:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: remote X-Bugzilla-Version: 7.8 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: palves at redhat 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: Message-ID: In-Reply-To: References: 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: 2015-q1/txt/msg00465.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17397 --- Comment #9 from Pedro Alves --- Thanks. I can reproduce this with GNU/Linux gdbserver. On one shell: $ gdbserver --multi :9999 a.out On another, connect with extended-remote, so we can start two processes under the same gdbserver: $ gdb a.out -ex "tar extended-remote :9999" ... GNU gdb (GDB) 7.9.50.20150318-cvs ... Reading symbols from ./a.out...done. Remote debugging using :9999 ... 0x0000003615a011f0 in _start () from /lib64/ld-linux-x86-64.so.2 (gdb) info inferiors Num Description Executable * 1 process 24970 a.out (gdb) add-inferior Added inferior 2 (gdb) inferior 2 [Switching to inferior 2 [] ()] (gdb) info inferiors Num Description Executable * 2 1 process 24970 a.out (gdb) file a.out Reading symbols from a.out...done. (gdb) info inferiors Num Description Executable * 2 a.out 1 process 24970 a.out (gdb) start Temporary breakpoint 1 at 0x411b67: main. (2 locations) Starting program: /home/pedro/a.out Temporary breakpoint 1, main (argc=1, argv=0x7fffffffd908) at /home/pedro/foo.c:10 10 return 0; (gdb) info inferiors Num Description Executable * 2 process 24977 a.out 1 process 24970 a.out Now, disconnect, and reconnect, to emulate the OPs use case. (gdb) disconnect Ending remote debugging. (gdb) info inferiors Num Description Executable * 2 a.out 1 a.out (gdb) tar remote :9999 Remote debugging using :9999 Reading symbols from /lib64/libdl.so.2...Reading symbols from /usr/lib/debug (...) main (argc=1, argv=0x7fffffffd908) at /home/pedro/foo.c:10 10 return 0; (gdb) info inferiors Num Description Executable * 2 process 24977 a.out 1 a.out (gdb) info threads Id Target Id Frame * 2 Thread 24977 main (argc=1, argv=0x7fffffffd908) at /home/pedro/foo.c:10 1 Thread 24970 /home/pedro/gdb/mygit/src/gdb/thread.c:1182: internal-error: switch_to_thread: Assertion `inf != NULL' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) -- You are receiving this mail because: You are on the CC list for the bug.