From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 44063 invoked by alias); 24 Mar 2017 06:27:39 -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 44049 invoked by uid 89); 24 Mar 2017 06:27:37 -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,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=experiencing, online X-HELO: mail-wr0-f173.google.com Received: from mail-wr0-f173.google.com (HELO mail-wr0-f173.google.com) (209.85.128.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 24 Mar 2017 06:27:36 +0000 Received: by mail-wr0-f173.google.com with SMTP id l43so2893518wre.1 for ; Thu, 23 Mar 2017 23:27:37 -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:from:date:message-id:subject:to; bh=3/MZRYV/YsDbEnsBU9GouezBFFAhvxnEpN3XR1/OVdI=; b=IT36jP+ce1XSVjojnbqxKLUbOxFU+Nfz1mZvv1ZHXA5752ZI9XFgR/y0VmrdhosZaj LebtkJkJ7DYvvTFFp+PXC7BUBpXVBANeFy96Zz4Mtgpt/KVREgfvI7hCw6Rj1bpeVpK7 ZsBSgVzWNPX7aX7ma+qA5dsspGkBOrFD2SWFRFQry6DK7gjKXZlr3KL2PhWKjsMXonI+ lWZXel3kHX/2iBk8pBAK/7EFzHJLxHVU9/JGnFsEeELHeka/ytaZ8hYmq8B9inNXdEuk cg/GKk6JGP1iOtaj1FKVYPKyq3A30bMXY3tXzYZcPE/iCXl/Kd++JibA17qg3fmRZtfJ jWaA== X-Gm-Message-State: AFeK/H2iH4sO75J+E+vWk+Pe1n+nbBOM8UaAy0nWbYMJdSEmLeu+Y6gIVlIvoPS0krZuVx7GgRkPTi1w86n6yg== X-Received: by 10.223.174.131 with SMTP id y3mr5884351wrc.40.1490336855178; Thu, 23 Mar 2017 23:27:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.142.90 with HTTP; Thu, 23 Mar 2017 23:27:34 -0700 (PDT) From: RAJESH DASARI Date: Fri, 24 Mar 2017 06:27:00 -0000 Message-ID: Subject: Reg : gdb crash is seen while attaching a process to gdb. To: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2017-03/txt/msg00054.txt.bz2 Hi , I am experiencing a gdb crash when i am trying to attach and dettach a process(this process is a multi threaded application) to gdb on my mips64 based linux environment. ps -L -p 7889 | wc -l 15 # gdb -p 7889 GNU gdb (GDB) 7.12.1 Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "mips64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". Attaching to process 7889 [New LWP 7895] [New LWP 7896] Couldn't write debug register: No such process. (gdb) quit A debugging session is active. Inferior 1 [process 7889] will be detached. 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. Thanks, Rajesh Dasari.