From: Russ Cox <russcox@gmail.com>
To: David Leimbach <leimy2k@gmail.com>
Cc: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] off-topic linux threading bug complaint
Date: Thu, 10 Feb 2005 15:58:24 -0500 [thread overview]
Message-ID: <ee9e417a05021012584cb31c4f@mail.gmail.com> (raw)
In-Reply-To: <3e1162e6050210123332be7add@mail.gmail.com>
> I tried it on solaris:
>
> sultan% ps -p 1362 -o "lwp user pid ppid taskid pcpu pmem fname"
> LWP USER PID PPID TASKID %CPU %MEM COMMAND
> 1 dave 1362 1354 59 - 0.1 <defunct>
> 2 dave 1362 1354 59 0.0 0.1 x
>
> 2 Light Weight processes, one of which is defunct. Sounds similar to
> the linux behavior.
The Linux behavior -- that ps is misleading and gdb is unusable unless
you have some magic guess as to some other "pid" -- is broken.
SunOS is not broken this way: ps shows a non-zombie
process, and the debugger can attach to it.
% ./a.out &
[3] 12058
% ps -aA -o 'user,pid,stime,time,rss,s,args' | grep a.out
rsc 12058 15:55:40 0:00 920 S ./a.out
% adb a.out
:A 12058
$c
libc.so.1`_libc_nanosleep+4(3e8, ff350234, 0, 0, 0, 0)
sleeper+0xc(0, 0, 0, 0, 0, 0)
libthread.so.1`_lwp_start(0, 0, 0, 0, 0, 0)
^D
%
Russ
next prev parent reply other threads:[~2005-02-10 20:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-10 18:35 Russ Cox
2005-02-10 18:54 ` boyd, rounin
2005-02-10 19:16 ` bs
2005-02-10 19:19 ` Nigel Roles
2005-02-10 19:24 ` bs
2005-02-10 20:24 ` Latchesar Ionkov
2005-02-11 16:22 ` Ronald G. Minnich
2005-02-10 20:33 ` David Leimbach
2005-02-10 20:58 ` Russ Cox [this message]
2005-02-11 1:46 ` Taj Khattra
2005-02-11 16:15 ` Ronald G. Minnich
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=ee9e417a05021012584cb31c4f@mail.gmail.com \
--to=russcox@gmail.com \
--cc=9fans@cse.psu.edu \
--cc=leimy2k@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).