Solaris - procfs: couldn't find pid 32748 (kernel thread 21) in procinfo list

Petr Sumbera petr.sumbera@oracle.com
Mon Jun 1 11:39:22 GMT 2020


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


More information about the Gdb mailing list