public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* /proc visibility patch breaks GDB, etc.
@ 2004-02-26  6:27 Peter Chubb
  2004-02-26  6:44 ` Andrew Morton
  0 siblings, 1 reply; 11+ messages in thread
From: Peter Chubb @ 2004-02-26  6:27 UTC (permalink / raw)
  To: akpm, kingsley; +Cc: linux-kernel


In fs/proc/base.c:proc_pid_lookup(), the patch

        read_unlock(&tasklist_lock); 
        if (!task) 
                goto out; 
+       if (!thread_group_leader(task)) 
+               goto out_drop_task; 
  
        inode = proc_pid_make_inode(dir->i_sb, task, PROC_TGID_INO); 

means that threads other than the thread group leader don't appear in
the /proc top-level directory.  Programs that are informed via pid of
events can no longer find the appropriate process -- for example,
using gdb on a multi-threaded process, or profiling using perfmon.

The immediate symptom is GDB saying:
    Could not open /proc/757/status
when 757 is a TID not a PID.


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-02-26 23:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-26  6:27 /proc visibility patch breaks GDB, etc Peter Chubb
2004-02-26  6:44 ` Andrew Morton
2004-02-26 16:02   ` Daniel Jacobowitz
2004-02-26 19:39   ` David Mosberger
2004-02-26 20:09     ` Andrew Morton
2004-02-26 21:59       ` Kingsley Cheung
2004-02-26 22:14         ` Peter Chubb
2004-02-26 23:19         ` Andrew Morton
2004-02-26 23:29           ` Kingsley Cheung
2004-02-26 23:48           ` Peter Chubb
2004-02-26 20:10     ` Peter Chubb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox