Mike Frysinger wrote: > i'm not sure if this is a Blackfin thing, but the first arg to execve() isnt > decoded correctly. also, the forked programs hit the PANIC code instead of > decoding the exit ? for example, the above strace shows:
> [pid 228] execve(NULL, [0x2a0e520], [/* 0 vars */]) = 0 > [pid 228] stat(NULL, {st_mode=S_IFREG|0644, st_size=959, ...}) = 46679552 > [pid 228] open(0x3, O_RDONLY) = 0 > [pid 228] mmap2(0x27e0000, 959, PROT_READ, MAP_PRIVATE, 3, 0) = 0x3 > [pid 228] close(0) = 41812877 > [pid 228] open(0x3, O_RDONLY) = 3 > [pid 228] fstat(0, {st_mode=S_IFREG|0755, st_size=229660, ...}) = 0 > [pid 228] mmap2(0x27e1000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE| > MAP_ANONYMOUS|0x4000000, -1, 0) = 0x3 > [pid 228] read(4096, "", 4096) = 0 > [pid 228] mmap2(0x2cc0000, 221828, PROT_READ|PROT_EXEC, MAP_PRIVATE| > MAP_DENYWRITE|MAP_EXECUTABLE, 3, 0) = 0 > [pid 228] mmap2(0x2a50000, 15544, PROT_READ|PROT_WRITE, MAP_PRIVATE| > MAP_ANONYMOUS, -1, 0) = 0x3 > [pid 228] pread(7028, "ECT", 7028, 949978046398464) = 3 > [pid 228] close(0) = 41816064 > [pid 228] munmap(0, 4096) = 41811968 > [pid 228] munmap(0, 959) = 34001760 > [pid 228] stat(NULL, {st_mode=S_IFREG|0755, st_size=20260, ...}) = 0 Almost every syscall is showing the wrong first argument and the wrong result. Blackfin agument and result handling are clearly a mess. I cannot emphasise that enough :-) My patches don't touch that bit at all. > [pid 228] getuid32() = 0 > PANIC: attached pid 228 exited with 0 Let's not worry about my patches until Blackfin's got the basics working :-) > everything here looks fine except for the first execve() and that PANIC: ... > the second execve() where it shows NULL i think is a Blackfin thing as it is > trying to decode the args at the exit point of execve() ... Nearly all of them are implausible; execve doesn't look special. Fwiw, the patches are fine on x86. -- Jamie _______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev