From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 129175 invoked by alias); 19 Oct 2017 11:39:07 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 129135 invoked by uid 89); 19 Oct 2017 11:39:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 19 Oct 2017 11:39:06 +0000 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B5C0D13206; Thu, 19 Oct 2017 11:39:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com B5C0D13206 Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=palves@redhat.com Received: from [127.0.0.1] (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 149CFBE743; Thu, 19 Oct 2017 11:39:03 +0000 (UTC) Subject: Re: "The target is not responding to interrupt requests" after re-attach To: Dmitry Antipov , GDB Development References: <6c9c532c-8094-9df5-1a8c-556ea92a9b5a@nvidia.com> From: Pedro Alves Message-ID: Date: Thu, 19 Oct 2017 11:39:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <6c9c532c-8094-9df5-1a8c-556ea92a9b5a@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2017-10/txt/msg00055.txt.bz2 On 10/17/2017 03:02 PM, Dmitry Antipov wrote: > But it doesn't work for the next time: > > $ gdb -q > (gdb) set sysroot / > (gdb) target extended-remote :8888 > Remote debugging using :8888 > (gdb) attach 9320 > Attaching to process 9320 > Reading symbols from /tmp/t-nanosleep...done. > Reading symbols from /lib64/libc.so.6...(no debugging symbols > found)...done. > Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols > found)...done. > 0x00007eff44c65420 in __nanosleep_nocancel () from /lib64/libc.so.6 > (gdb) c > Continuing. > ^C > ^CThe target is not responding to interrupt requests. > Stop debugging it? (y or n) y > > Even if it works as expected, what are the reasons for being > inconsistent here? > No good reason. Sounds like you found a bug. Thanks, Pedro Alves