From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from aserp2120.oracle.com (aserp2120.oracle.com [141.146.126.78]) by sourceware.org (Postfix) with ESMTPS id F3F1B3851C17 for ; Mon, 1 Jun 2020 11:39:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org F3F1B3851C17 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 051BSZ3M027029 for ; Mon, 1 Jun 2020 11:39:26 GMT Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 31bfekx7uc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 01 Jun 2020 11:39:26 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 051BXB2w110315 for ; Mon, 1 Jun 2020 11:39:25 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userp3030.oracle.com with ESMTP id 31c1dvc7d5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 01 Jun 2020 11:39:25 +0000 Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 051BdOsW016936 for ; Mon, 1 Jun 2020 11:39:24 GMT Received: from [192.168.15.238] (/89.233.184.135) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 01 Jun 2020 04:39:24 -0700 Subject: Re: Solaris - procfs: couldn't find pid 32748 (kernel thread 21) in procinfo list To: gdb@sourceware.org References: <5ab0b8b1-6072-6717-1ae0-ba06339254b8@oracle.com> From: Petr Sumbera Organization: Oracle Corporation Message-ID: Date: Mon, 1 Jun 2020 13:39:22 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: <5ab0b8b1-6072-6717-1ae0-ba06339254b8@oracle.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9638 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxlogscore=999 spamscore=0 bulkscore=0 adultscore=0 suspectscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006010087 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9638 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 suspectscore=0 mlxlogscore=999 priorityscore=1501 bulkscore=0 phishscore=0 clxscore=1015 impostorscore=0 adultscore=0 spamscore=0 mlxscore=0 lowpriorityscore=0 cotscore=-2147483648 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006010087 X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00, BODY_8BITS, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2020 11:39:28 -0000 The issue seems to be that the LWP exits and the status->kind is set to TARGET_WAITKIND_SPURIOUS: https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=gdb/procfs.c;h=f6c6b0e71c16224d3e7345ca09e011cdcf06349a;hb=HEAD#l2214 But instantly it's added into the list again here: https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=gdb/infrun.c;h=95fc3bfe45930b53c33cb4de165db9c070449ad8;hb=HEAD#l5200 But there is no longer such LWP in /proc. Any suggestion? Thanks, Petr On 28.05.2020 17:29, Petr Sumbera via Gdb wrote: > Hi, > > I'm running into the issue below. Any suggestion how to this? > > # DISPLAY=:1 gdb /opt/firefox/bin/firefox > GNU gdb (GDB) 9.2 > Copyright (C) 2020 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 "sparc-sun-solaris2.11". > 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"... > Reading symbols from /opt/firefox/bin/firefox... > (gdb) run -P > Starting program: /opt/firefox/bin/firefox -P > [Thread debugging using libthread_db enabled] > [New Thread 1 (LWP 1)] > [New LWP    2        ] > [New LWP    3        ] > [New LWP    4        ] > [New LWP    5        ] > [New LWP    6        ] > [New LWP    7        ] > [New LWP    8        ] > [New LWP    9        ] > [New LWP    10        ] > [New LWP    11        ] > [New LWP    12        ] > [New LWP    13        ] > [New LWP    14        ] > [New LWP    15        ] > [New LWP    16        ] > [New LWP    17        ] > [New LWP    18        ] > [New LWP    19        ] > [New LWP    20        ] > [New LWP    21        ] > [New LWP    22        ] > [New LWP    23        ] > [New LWP    24        ] > [New LWP    25        ] > [New LWP    26        ] > [LWP    20         exited] > [New LWP    20        ] > [LWP    21         exited] > [New LWP    21        ] > procfs: couldn't find pid 32748 (kernel thread 21) in procinfo list. > procfs: couldn't find pid 32748 (kernel thread 21) in procinfo list. > (gdb) > > --- > > Is this Solaris GDB issue? Any suggestion where to look in GDB code? > > Thanks! > > Petr