Re: BUG: NTPL: waitpid() doesn't return?

From: Matthias Urlichs (smurf_at_smurf.noris.de)
Date: 01/31/04

  • Next message: Willem Riede: "Re: The survival of ide-scsi in 2.6.x [PATCH 1/3]"
    Date:	Sat, 31 Jan 2004 22:11:09 +0100
    To: Linus Torvalds <torvalds@osdl.org>
    
    

    Hi,

    Linus Torvalds:
    > The strace case I'm more than willing to pass off as a strace problem.
    > I find it quite common that strace doesn't detach from processes, leaving
    > some of them in a stopped state. So I assumed that the particular trace
    > wasn't very interesting.
    >
    Hmm. "Unfortunately", the test program which bert posted DOES work
    correctly under strace.

    So there's definitely something fishy going on here.

    > The bugs seems to be something totally different: you create a
    > "CLONE_DETACHED" child, and then you expect to be able to wait for it.

    That's not "me", that's "the fork() in the NPTL library".

    Besides, bert's test program exhibits exactly the same clone()
    arguments, yet it works ...

    -- 
    Matthias Urlichs     |     noris network AG     |     http://smurf.noris.de/
    -
    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/
    

  • Next message: Willem Riede: "Re: The survival of ide-scsi in 2.6.x [PATCH 1/3]"

    Relevant Pages

    • Re: BUG: NTPL: waitpid() doesnt return?
      ... > Your test program works... ... except that it reports, when I strace it, ... This is an strace bug. ...
      (Linux-Kernel)
    • Re: 2.4.23 SMP: kernel BUG at mmap.c
      ... I also managed to capture ls segfaulting. ... The strace produced 59 lines: ... iris:~# cat asdf ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: BUG: NTPL: waitpid() doesnt return?
      ... The strace case I'm more than willing to pass off as a strace problem. ... I find it quite common that strace doesn't detach from processes, ... So I assumed that the particular trace ... "CLONE_DETACHED" child, and then you expect to be able to wait for it. ...
      (Linux-Kernel)
    • infinite loop? with mmap, nfs, pwrite, O_DIRECT
      ... unkillable state*, and makes the system load consume an entire CPU. ... *the process is killable if run under strace, but the system load does not drop when the strace is ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: infinite loop? with mmap, nfs, pwrite, O_DIRECT
      ... > *the process is killable if run under strace, but the system load does not drop when the strace is ... > Pass this the name of a target file on an NFS mount. ... have you tried this test on other local and remote file system types? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)