From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 38745 invoked by alias); 24 Mar 2017 11:32:33 -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 38730 invoked by uid 89); 24 Mar 2017 11:32:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=management X-HELO: mail-qt0-f176.google.com Received: from mail-qt0-f176.google.com (HELO mail-qt0-f176.google.com) (209.85.216.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 24 Mar 2017 11:32:31 +0000 Received: by mail-qt0-f176.google.com with SMTP id n21so8105281qta.1 for ; Fri, 24 Mar 2017 04:32:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=TzoTIzSk78nv+aBCiG9LJuhgVlsiY7k5SIOacM1WXq4=; b=EbMdabRE/Sn7s4uaOjunVenbh67QNRoP9NlmAkKX/LZMr59KVP9zA69kjwgYl5EQm8 hzn/S3JGOeTPgbmF9Qt2w4DGr4hvV6o5JcC1s30Wu/GHYwGlu8HuvXELQRR5R/ArWRLa LnlLVhZY2Y0AGdFUlsGfTPZPISwvX8t+ji2lDYkEGkezNz36VlPtuM4t1u8Afl1gXh3c FKDYqS1KcvubByP7QquMXwuX+aHJ82RsvODOabSgJTonxEOOUeFueX1yahefkif6oN5S 3JvWlAtfdRWBpCdeOtuyW5JKerpu6S7857GhbqCUQvkrUjc7rgKL41nRrxTA43rXouko BddA== X-Gm-Message-State: AFeK/H0X794LzUdfTX5xE4abaz5rlX6cmosqTGaD0ZCBq1ez4KZxXxLCUMjJUIaJr1JXT83qz5tVJKOfB3eKZA== X-Received: by 10.237.33.69 with SMTP id 63mr7090271qtc.109.1490355151249; Fri, 24 Mar 2017 04:32:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.140.130 with HTTP; Fri, 24 Mar 2017 04:32:30 -0700 (PDT) In-Reply-To: References: From: Yao Qi Date: Fri, 24 Mar 2017 11:32:00 -0000 Message-ID: Subject: Re: Reg : gdb crash is seen while attaching a process to gdb. To: RAJESH DASARI Cc: GDB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2017-03/txt/msg00055.txt.bz2 On Fri, Mar 24, 2017 at 6:27 AM, RAJESH DASARI wr= ote: > > Quit anyway? (y or n) y > gdb-7.12.1/gdb/thread.c:1010: internal-error: int > is_executing(ptid_t): Assertion `tp' failed. > A problem internal to GDB has been detected, > further debugging may prove unreliable. > Quit this debugging session? (y or n) y > > This is a bug, please report it. For instructions, see: > . > > gdb-7.12.1/gdb/thread.c:1010: internal-error: int > is_executing(ptid_t): Assertion `tp' failed. > A problem internal to GDB has been detected, > further debugging may prove unreliable. > Create a core file of GDB? (y or n) y > Aborted (core dumped) > > > I notice this problem only for some processes, there are few more > multi-threaded processes which are not showing this problem. Could you > please share some pointers on what could be causing this gdb crash. > > I suspect it is related to the improper management of thread_info's refcount. I've already had some patches in my local tree, but don't have time posting them. Let me find them, and polish them. --=20 Yao (=E9=BD=90=E5=B0=A7)