Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Created using
cd /home/shorne/work/openrisc/openadk/target_qemu-or1k_uclibc-ng
~/work/openrisc/qemu/build/or1k-linux-user/qemu-or1k -L . -strace \
./usr/lib/uclibc-ng-test/test/nptl/tst-barrier2 > tst-barrier2.strace 2>&1
16626 readlinkat(AT_FDCWD,"/proc/self/exe",0xffffadd0,4096) = 107
16626 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_UNINITIALIZED,-1,0) = 0xff7ee000
16626 fstatat64(AT_FDCWD,"/etc/ld.so.cache",0xffffbd58,0) = 0
16626 openat(AT_FDCWD,"/etc/ld.so.cache",O_RDONLY|O_CLOEXEC) = 3
16626 mmap2(NULL,173060,PROT_READ,MAP_SHARED,3,0) = 0xff7c2000
16626 close(3) = 0
16626 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0xff7c0000
16626 write(2,0xff7c0000,0) = 0
16626 write(2,0xff7ee000,107)/home/shorne/work/openrisc/openadk/target_qemu-or1k_uclibc-ng/usr/lib/uclibc-ng-test/test/nptl/tst-barrier2 = 107
16626 write(2,0xff7c0002,9): cache ' = 9
16626 write(2,0xff7f6f5c,16)/etc/ld.so.cache = 16
16626 write(2,0xff7c000d,13)' is corrupt
= 13
16626 munmap(0xff7c0000,8192) = 0
16626 munmap(0xff7c2000,173060) = 0
16626 openat(AT_FDCWD,"/usr/lib/libc.so.0",O_RDONLY) = -1 errno=2 (No such file or directory)
16626 openat(AT_FDCWD,"/usr/lib/libc.so.0",O_RDONLY) = -1 errno=2 (No such file or directory)
16626 openat(AT_FDCWD,"/lib//libc.so.0",O_RDONLY) = 3
16626 fstat64(3,0xffffb460) = 0
16626 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_UNINITIALIZED,-1,0) = 0xff7c0000
16626 read(3,0xff7c0000,8192) = 8192
16626 mmap2(NULL,876544,PROT_NONE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0xff6ea000
16626 mmap2(0xff6ea000,768592,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_FIXED,3,0) = 0xff6ea000
16626 mmap2(0xff7a6000,10076,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_FIXED,3,0x5d) = 0xff7a6000
16626 mmap2(0xff7aa000,85124,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0xff7aa000
16626 mprotect(0xff6ea000,768592,PROT_EXEC|PROT_READ|PROT_WRITE) = 0
16626 close(3) = 0
16626 munmap(0xff7c0000,8192) = 0
16626 fstatat64(AT_FDCWD,"/lib/ld-uClibc.so.0",0xffffbd4c,0) = 0
16626 mprotect(0x00006000,8192,PROT_READ) = 0
16626 mprotect(0xff7a6000,8192,PROT_READ) = 0
16626 mprotect(0xff7f8000,8192,PROT_READ) = 0
16626 mprotect(0xff6ea000,768592,PROT_EXEC|PROT_READ) = 0
16626 set_tid_address(-8460216,8192,432572,6,-8413020,1073741823) = 16626
16626 set_robust_list(-8460212,12,432572,6,-8413020,1073741823) = -1 errno=38 (Function not implemented)
16626 rt_sigaction(32,0xffffbd94,NULL) = 0
16626 rt_sigaction(33,0xffffbd94,NULL) = -1 errno=22 (Invalid argument)
16626 rt_sigprocmask(SIG_UNBLOCK,0xffffbda0,NULL) = 0
16626 getrlimit(3,-17012,0,-13,3,16) = 0
https://cgit.openadk.org/cgi/cgit/uclibc-ng.git/tree/libpthread/nptl/init.c#n198
16626 futex(0xff7aaf2c,FUTEX_PRIVATE_FLAG|FUTEX_WAKE,1,NULL,0x00000003,3) = 0
16626 ioctl(0,21505,-17112,0,3,16) = 0
16626 ioctl(1,21505,-17112,-17007,0,13) = -1 errno=25 (Inappropriate ioctl for device)
16626 futex(0xff7a8194,FUTEX_PRIVATE_FLAG|FUTEX_WAKE,1,NULL,NULL,0) = 0
16626 futex(0xff7a80f4,FUTEX_PRIVATE_FLAG|FUTEX_WAKE,1,NULL,0xffffa170,-24208) = 0
16626 brk(NULL) = 0x0000a000
16626 brk(0x0000c000) = 0x0000c000
16626 brk(0x0000c000) = 0x0000c000
16626 futex(0xff7a8194,FUTEX_PRIVATE_FLAG|FUTEX_WAKE,1,NULL,0x00002000,8192) = 0
16626 futex(0xff7a8270,FUTEX_PRIVATE_FLAG|FUTEX_WAKE,1,NULL,0x00002000,8192) = 0
16626 clone(CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|0x11,child_stack=0x00000000,parent_tidptr=0x00000000,tls=0xff7ee848,child_tidptr=0x00000000) = 16628
16626 futex(0xff7a8b18,FUTEX_PRIVATE_FLAG|FUTEX_WAKE,1,NULL,0xff7ee848,-8460216) = 0
= 0
16626 rt_sigaction(SIGALRM,0xffffc00c,0xffffc020) = 0
16626 setitimer(0,-16344,-16360,8,-8460216,0) = 0
16626 rt_sigaction(SIGINT,0xffffc00c,0xffffc020) = 0
16628 setrlimit(4,-16304,-8657068,0,-8460216,0) = 0
16626 wait4(16628,-16304,0,0,-8460216,0)16628 setpgid(0,0,-8657068,0,-8460216,0) = 0
do_test()
https://cgit.openadk.org/cgi/cgit/uclibc-ng-test.git/tree/test/nptl/tst-barrier2.c#n46
16628 openat(AT_FDCWD,"/dev/urandom",O_RDONLY) = 3
16628 read(3,0xffff9f4c,6) = 6
16628 close(3) = 0
16628 openat(AT_FDCWD,"/tmp/tst-barrier2.AYWXFo",O_RDWR|O_CREAT|O_EXCL,0600) = 3
16628 unlinkat(AT_FDCWD,"/tmp/tst-barrier2.AYWXFo",0) = 0
16628 write(3,0xffffa000,8192) = 8192
16628 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_SHARED,3,0) = 0xff6e8000
puts ("going to fork now");
https://cgit.openadk.org/cgi/cgit/uclibc-ng-test.git/tree/test/nptl/tst-barrier2.c#n124
16628 write(1,0x3d2c,17)going to fork now = 17
16628 write(1,0xffff9fc7,1)
= 1
16628 futex(0xff7a80f4,FUTEX_PRIVATE_FLAG|FUTEX_WAKE,1,NULL,NULL,0) = 0
16628 clone(CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|0x11,child_stack=0x00000000,parent_tidptr=0x00000000,tls=0xff7ee848,child_tidptr=0x00000000) = 16630
16628 futex(0xff7a8b18,FUTEX_PRIVATE_FLAG|FUTEX_WAKE,1,NULL,0xff7ee848,-8460216) = 0
= 0
16628 setitimer(0,-24616,-24632,0,-8460216,1) = 0
16630 setitimer(0,-24616,-24632,0,-8460216,1) = 0
16628 futex(0xff6e8008,FUTEX_WAKE,1,NULL,0xff7ee848,-8460216) = 0
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216)16630 futex(0xff6e8004,FUTEX_WAKE,2147483647,NULL,0xff7ee848,-8460216) = 1
= 0
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216)16630 = -1 errno=11 (Resource temporarily unavailable)
futex(16628 0xff6e8008,futex(FUTEX_WAIT0xff6e8004,,2,FUTEX_WAITNULL,,0,0xff7ee848,NULL,-84602160xff7ee848,)-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
[.....]
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
16628 futex(0xff6e8004,FUTEX_WAIT,0,NULL,0xff7ee848,-8460216) = -1 errno=11 (Resource temporarily unavailable)
--- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL, si_pid=0, si_uid=0} ---
= -1 errno=4 (Interrupted system call)
--- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL, si_pid=0, si_uid=0} ---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.