action #99021
closedaction #93441: [sle][security][sle15sp4][CC] CC hand over
[sle][security][sle15sp4][CC][s390x] test fails in setup_net_test_env - make failed
100%
Description
Observation¶
openQA test in scenario sle-15-SP4-Online-s390x-cc_net_case_server@s390x-kvm-sle12 fails in
setup_net_test_env
Test suite description¶
Reproducible¶
Fails since (at least) Build 36.1
Expected result¶
Last good: (unknown) (or more recent)
Further details¶
Always latest result in this scenario: latest
Updated by rfan1 over 3 years ago
- Subject changed from [sle][security][sle15sp4][CC][s390x] test fails in setup_net_test_env make failed to [sle][security][sle15sp4][CC][s390x] test fails in setup_net_test_env - make failed
Updated by rfan1 over 3 years ago
- Related to action #93441: [sle][security][sle15sp4][CC] CC hand over added
Updated by rfan1 over 3 years ago
susetest:/tmp/audit-test-sle15-master/audit-test/utils/bin # make -o do_semop.c do_semop
cc -g -O2 -Wall -Werror -D_GNU_SOURCE -fno-strict-aliasing -DSUSE -DS390X -I../include do_semop.c -o do_semop
In file included from do_semop.c:18:0:
ipc_common.c: In function ‘do_semop’:
ipc_common.c:272:20: error: ‘NR_semop’ undeclared (first use in this function); did you mean ‘NR_shmdt’?
return syscall(__NR_semop, semid, &sops, 1);
~~~~~~~~~
__NR_shmdt
ipc_common.c:272:20: note: each undeclared identifier is reported only once for each function it appears in
ipc_common.c:274:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1: all warnings being treated as errors
make: *** [: do_semop] Error 1
I did some investigation, and found that it might be a bug [may be by design on s390x, need confirm with developer later]
susetest:~ # cat /usr/include/asm/unistd_64.h |grep semop
susetest:~ # cat /usr/include/asm-generic/unistd.h|grep semop
#define NR_semop 193
__SYSCALL(NR_semop, sys_semop)
We can see that the syscall was not included in unistd_64.h file.
I did a minor fix on this c code:
susetest:/tmp/audit-test-sle15-master/audit-test/utils/bin # cat ipc_common.c |grep -A1 NR_semop, make can passed, but not sure if we can pass the tests
/* return syscall(__NR_semop, semid, &sops, 1); */
return semop(semid, &sops, 1);
Updated by rfan1 over 3 years ago
https://bugzilla.suse.com/show_bug.cgi?id=1190778 was filed as well
Updated by rfan1 over 3 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 20
code change done
Updated by rfan1 about 3 years ago
- Copied to action #101885: [sle][security][sle15sp4][CC][manual] Implement audit-remote tests added
Updated by rfan1 about 3 years ago
- Copied to deleted (action #101885: [sle][security][sle15sp4][CC][manual] Implement audit-remote tests)
Updated by rfan1 about 3 years ago
- Status changed from In Progress to Resolved
- Estimated time changed from 40.00 h to 20.00 h