测试用例地址:
https://github.com/linux-test-project/ltp/commit/b54a54e5881a0f9438ce4a862dee724130a9874f#diff-61ca0ddb356007047210a92fb128896c
(1)失败打印:
POSIX:conformance/interfaces/pthread_barrier_wait/pthread_barrier_wait_6-1: execution: SIGNALED:
(2)问题原因与解决:(Remove pthread_barrier_wait_6-1 because it is unreliable,应移除用例)
原因是未初始化的barrier变量,陷入系统调用会返回-ESYS,glibc库查看返回值如果是-ESYS,则报错误。
分析记录:
/ltp/conformance/interfaces/pthread_barrier_wait # chmp^C
/ltp/conformance/interfaces/pthread_barrier_wait # chmod 777 strace.1043le
/ltp/conformance/interfaces/pthread_barrier_wait # ./strace.1043le pthread_barri
er_wait61
./strace.1043le: Can't stat 'pthread_barrier_wait61': No such file or directory
/ltp/conformance/interfaces/pthread_barrier_wait # ./strace.1043le ./pthread_bar
rier_wait61
execve("./pthread_barrier_wait61", ["./pthread_barrier_wait61"], [/* 12 vars */]) = 0
brk(NULL) = 0x28848000
faccessat(AT_FDCWD, "/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/tls/aarch64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/lib/tls/aarch64", 0xffffe38e0200, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/tls/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/lib/tls", 0xffffe38e0200, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/aarch64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/lib/aarch64", 0xffffe38e0200, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD