scrashme failed to build on s390x

Bug #1689240 reported by Po-Hsu Lin
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
Medium
Po-Hsu Lin
linux (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

This test case failed to build on LPAR Ubuntu (s2lp4)
Maybe we should disable it from the test suite.

cc -Wall -W -Wshadow -g -O2 -o scrashme.o -c scrashme.c
Makefile:13: recipe for target 'scrashme.o' failed
stderr:
scrashme.c: In function 'mkcall':
scrashme.c:150:13: error: 'NR_SYSCALLS' undeclared (first use in this function)
if (call > NR_SYSCALLS)
^~~~~~~~~~~
scrashme.c:150:13: note: each undeclared identifier is reported only once for each function it appears in
scrashme.c: In function 'do_syscall':
scrashme.c:258:27: error: 'NR_SYSCALLS' undeclared (first use in this function)
cl = rand() / (RAND_MAX/NR_SYSCALLS);
^~~~~~~~~~~
scrashme.c: In function 'syscall_list':
scrashme.c:293:15: error: 'NR_SYSCALLS' undeclared (first use in this function)
for (i=0; i<=NR_SYSCALLS; i++) {
^~~~~~~~~~~
scrashme.c: In function 'parse_args':
scrashme.c:337:18: error: 'NR_SYSCALLS' undeclared (first use in this function)
for (i=0; i<=NR_SYSCALLS; i++) {
^~~~~~~~~~~
scrashme.c:371:13: error: 'KERNEL_ADDR' undeclared (first use in this function)
regval = KERNEL_ADDR;
^~~~~~~~~~~
scrashme.c: In function 'run_mode':
scrashme.c:522:15: error: 'NR_SYSCALLS' undeclared (first use in this function)
 if (rep > NR_SYSCALLS) {
^~~~~~~~~~~
scrashme.c: In function 'main':
scrashme.c:588:13: error: 'syscalls_i386' undeclared (first use in this function)
syscalls = syscalls_i386;
^~~~~~~~~~~~~
scrashme.c: In function 'run_setup':
scrashme.c:467:2: warning: ignoring return value of 'seteuid', declared with attribute warn_unused_result [-Wunused-result]
seteuid(65536);
^~~~~~~~~~~~~~
scrashme.c:468:2: warning: ignoring return value of 'seteuid', declared with attribute warn_unused_result [-Wunused-result]
seteuid(65536);
^~~~~~~~~~~~~~
scrashme.c:469:2: warning: ignoring return value of 'setgid', declared with attribute warn_unused_result [-Wunused-result]
(void)setgid(65536);
^~~~~~~~~~~~~~~~~~~
scrashme.c:470:2: warning: ignoring return value of 'seteuid', declared with attribute warn_unused_result [-Wunused-result]
seteuid(65536);
^~~~~~~~~~~~~~
scrashme.c:486:2: warning: ignoring return value of 'chroot', declared with attribute warn_unused_result [-Wunused-result]
chroot("tmp");
^~~~~~~~~~~~~
make: *** [scrashme.o] Error 1

ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: linux-image-4.8.0-52-generic 4.8.0-52.55
ProcVersionSignature: Ubuntu 4.8.0-52.55-generic 4.8.17
Uname: Linux 4.8.0-52-generic s390x
NonfreeKernelModules: zfs zunicode zcommon znvpair zavl
AlsaDevices: Error: command ['ls', '-l', '/dev/snd/'] failed with exit code 2: ls: cannot access '/dev/snd/': No such file or directory
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.20.3-0ubuntu8.2
Architecture: s390x
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not found.
Date: Mon May 8 03:25:31 2017
HibernationDevice: RESUME=UUID=46fcf640-03e2-4fd5-b7d6-321d6a11ff8d
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
Lsusb: Error: command ['lsusb'] failed with exit code 1:
PciMultimedia:

ProcFB: Error: [Errno 2] No such file or directory: '/proc/fb'
ProcKernelCmdLine: root=UUID=4a1de891-d624-42df-be09-50199aec3d11 crashkernel=196M debug BOOT_IMAGE=0
RelatedPackageVersions:
 linux-restricted-modules-4.8.0-52-generic N/A
 linux-backports-modules-4.8.0-52-generic N/A
 linux-firmware 1.161.1
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Dimitri John Ledkov (xnox) wrote : Re: scrashme failed to build on LPAR Ubuntu

Wasn't scrashme renamed into trinity in December 2010 (as per https://lwn.net/Articles/536173/)?

https://github.com/kernelslacker/trinity

Trinity claims s390x support and compiles successfully for me.

Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Do we need to escalate this back to IBM Kernel team to resolve upstream / stable?

Po-Hsu Lin (cypressyew)
summary: - scrashme failed to build on LPAR Ubuntu
+ scrashme failed to build on s390x
tags: added: artful boinic xenial
Po-Hsu Lin (cypressyew)
Changed in linux (Ubuntu):
assignee: nobody → Po-Hsu Lin (cypressyew)
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

We're replacing it with LTP syscall test:
http://kernel.ubuntu.com/git/ubuntu/autotest-client-tests.git/commit/?h=master-next&id=fb077e6e207fc37f9bd4cf0b0d33beaad3d80688

Trinity will take too much time and storage space for it.

Changed in ubuntu-kernel-tests:
assignee: nobody → Po-Hsu Lin (cypressyew)
importance: Undecided → Medium
status: New → Fix Released
Changed in linux (Ubuntu):
status: Confirmed → Invalid
Po-Hsu Lin (cypressyew)
Changed in linux (Ubuntu):
assignee: Po-Hsu Lin (cypressyew) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.