From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14715 invoked by alias); 2 Apr 2014 19:46:05 -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 14683 invoked by uid 48); 2 Apr 2014 19:46:03 -0000 From: "dje at google dot com" To: gdb-prs@sourceware.org Subject: [Bug server/16801] New: can't attach in async/non-stop, plus subsequent gdbserver assert failure on reconnect Date: Wed, 02 Apr 2014 19:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: server X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dje at google 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: 2014-q2/txt/msg00003.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16801 Bug ID: 16801 Summary: can't attach in async/non-stop, plus subsequent gdbserver assert failure on reconnect Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: server Assignee: unassigned at sourceware dot org Reporter: dje at google dot com Created attachment 7522 --> https://sourceware.org/bugzilla/attachment.cgi?id=7522&action=edit testcase for repro bash1$ ./forever-threads.x64 >&foo.log & 13595 bash1$ gdbserver-devel --multi :1234 bash2$ gdb-devel forever-threads.x64 (gdb) tar ext :1234 (gdb) set target-async on (gdb) set non-stop on (gdb) attach 13595 Attaching to program: /home/dje/src/play/forever-threads.x64, process 13595 Attaching to process 13595 failed with: T0006:ffffffff00000000;07:20ea7501ff7f0000;10:ddb064b1707f0000;thread:p351b.351b;core:6; (gdb) tar ext :1234 Already connected to a remote target. Disconnect? (y or n) y Remote debugging using :1234 Remote connection closed (gdb) The second connection to gdbserver causes: ../../../trunk/gdb/gdbserver/server.c:2696: A problem internal to GDBserver has been detected. queue_stop_reply_callback: Assertion `thread->last_status.kind != TARGET_WAITKIND_IGNORE' failed. So there are (at least) two bugs here: 1) How come the attach failed? 1b) Seems like gdbserver should be detached from the inferior at this point. 2) gdbserver crash -- You are receiving this mail because: You are on the CC list for the bug.