Project

General

Profile

action #99021

action #93441: [sle][security][sle15sp4][CC] CC hand over

[sle][security][sle15sp4][CC][s390x] test fails in setup_net_test_env - make failed

Added by rfan1 25 days ago. Updated 24 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Target version:
-
Start date:
2021-09-22
Due date:
% Done:

20%

Estimated time:
40.00 h
Difficulty:

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

History

#1 Updated by rfan1 25 days 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

#2 Updated by rfan1 25 days ago

  • Related to action #93441: [sle][security][sle15sp4][CC] CC hand over added

#3 Updated by rfan1 25 days ago

  • Parent task set to #93441

#4 Updated by rfan1 25 days 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);

#6 Updated by rfan1 24 days ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 20

code change done

Also available in: Atom PDF