Re: SMP Sparc64 : bug in clone?

Erik de Castro Lopo <[email protected]> Sat, 23 Mar 2002 03:33:59 +0000
Newsgroups org.kernel.vger.ultralinux
Message-ID <marc-linux-ultrasparc-101685447618718@msgid-missing>
On Sat, 23 Mar 2002 13:15:45 +1100
Erik de Castro Lopo <[email protected]> wrote:

> and then strace hangs. I think this is actually a problem with strace rather than 
> a result of what my program is trying to do.

I have compiled a new sparc64 version of strace (with the right kernel headers) and
and strace no longer bombs. New output from "strace -f ./clone_test" :

    mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7001a000
    write(1, "parent running\n", 15parent running
    )        = 15
    clone(PTRACE_ATTACH: Operation not permitted
    Too late?
    child_stack=0x61cc8, flags=0x14)  = 5659
    --- SIGCHLD (Child exited) ---
    wait4(5659, [WIFSIGNALED(s) && WTERMSIG(s) = SIGSEGV], WUNTRACED, NULL) = 5659
    write(1, "parent about to exit\n", 21parent about to exit
    )  = 21
    munmap(0x7001a000, 8192)                = 0
    exit(0)                                 = ?

Erik
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo  [email protected] (Yes it's valid)
+-----------------------------------------------------------+
"One of the great things about books is sometimes there are 
some fantastic pictures" - George W. Bush