From: Petr Sumbera <petr.sumbera@oracle.com>
To: gdb@sourceware.org
Subject: Re: Solaris - procfs: couldn't find pid 32748 (kernel thread 21) in procinfo list
Date: Mon, 1 Jun 2020 13:39:22 +0200 [thread overview]
Message-ID: <cb9b2b25-75a0-059d-348d-eb83e703b631@oracle.com> (raw)
In-Reply-To: <5ab0b8b1-6072-6717-1ae0-ba06339254b8@oracle.com>
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
> <http://gnu.org/licenses/gpl.html>
> 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:
> <http://www.gnu.org/software/gdb/bugs/>.
> Find the GDB manual and other documentation resources online at:
> <http://www.gnu.org/software/gdb/documentation/>.
>
> 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
next prev parent reply other threads:[~2020-06-01 11:39 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-28 15:29 Petr Sumbera
2020-05-28 16:01 ` Rainer Orth
2020-06-01 12:47 ` Petr Sumbera
2020-06-01 11:39 ` Petr Sumbera [this message]
2020-06-01 19:12 ` Pedro Alves
2020-06-02 7:32 ` Petr Sumbera
2020-06-02 14:53 ` Pedro Alves
2020-06-02 16:30 ` Petr Sumbera
2020-06-02 17:14 ` Pedro Alves
2020-06-03 13:09 ` Petr Sumbera
2020-06-08 9:51 ` Petr Sumbera
2020-06-08 13:47 ` Pedro Alves
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cb9b2b25-75a0-059d-348d-eb83e703b631@oracle.com \
--to=petr.sumbera@oracle.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox