Messages in this thread | | | Date | Wed, 28 Jul 2004 13:54:44 +0200 | From | Marc Ballarin <> | Subject | Re: Interesting race condition... |
| |
On Wed, 28 Jul 2004 01:05:46 -0700 Paul Jackson <pj@sgi.com> wrote:
> Rob wrote: > > I just saw a funky thing. Here's the cut and past from the xterm... > > Can you reproduce this by cat'ing /proc/<pid>/cmdline? Can you get a > dump of the proc cmdline file to leak the environment sometimes? > > It is this file that 'ps' is dumping for these options. Adding the > 'e' option would also dump the /proc/<pid>/environ file (if readable). > > But you aren't adding 'e', so presumably the environment is "leaking" > into the the cmdline file. > > I suspect a kernel bug here - the ps code seems rather obvious and > unimpeachable. >
I ran the following loop for a while (> 9 million times) and could not reproduce the bug, but that might just be coincidence. Conditions were the same as in my other, succesful test.
while [ 1 ];do cat /proc/self/cmdline >> TEST done
Marc - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |