ltp测试套件-pthread_barrier_wait_6-1分析记录

测试用例地址:

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值