breakpoint test from ubuntu_kernel_selftest failed to build on aarch64

Bug #1680507 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
Undecided
Thadeu Lima de Souza Cascardo
glibc (Ubuntu)
New
Undecided
Unassigned
Zesty
Won't Fix
Undecided
Unassigned
Artful
Won't Fix
Undecided
Unassigned
Bionic
New
Undecided
Unassigned
linux (Ubuntu)
Confirmed
Medium
Unassigned
Zesty
Won't Fix
Medium
Unassigned
Artful
Won't Fix
Undecided
Unassigned
Bionic
Confirmed
Medium
Unassigned

Bug Description

stderr:
 breakpoint_test_arm64.c: In function ‘set_watchpoint’:
 breakpoint_test_arm64.c:91:28: error: storage size of ‘dreg_state’ isn’t known
 struct user_hwdebug_state dreg_state;
 ^~~~~~~~~~
 In file included from /usr/include/alloca.h:24:0,
 from /usr/include/stdlib.h:453,
 from ../kselftest.h:13,
 from breakpoint_test_arm64.c:37:
 breakpoint_test_arm64.c:98:32: error: invalid use of undefined type ‘struct user_hwdebug_state’
 iov.iov_len = offsetof(struct user_hwdebug_state, dbg_regs) +
 ^
 breakpoint_test_arm64.c: In function ‘run_test’:
 breakpoint_test_arm64.c:171:25: error: ‘TRAP_HWBKPT’ undeclared (first use in this function)
 if (siginfo.si_code != TRAP_HWBKPT) {
 ^~~~~~~~~~~
 breakpoint_test_arm64.c:171:25: note: each undeclared identifier is reported only once for each function it appears in
 make: *** [breakpoint_test_arm64] Error 1

Full log can be found here: http://pastebin.ubuntu.com/24328194/

ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: linux-image-4.10.0-18-generic 4.10.0-18.20
ProcVersionSignature: User Name 4.10.0-18.20-generic 4.10.8
Uname: Linux 4.10.0-18-generic aarch64
AlsaDevices:
 total 0
 crw-rw---- 1 root audio 116, 1 Apr 6 14:48 seq
 crw-rw---- 1 root audio 116, 33 Apr 6 14:48 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.20.4-0ubuntu3
Architecture: arm64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
Date: Thu Apr 6 14:50:50 2017
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
Lsusb: Error: command ['lsusb'] failed with exit code 1:
PciMultimedia:

ProcFB:

ProcKernelCmdLine: console=ttyS0,9600n8r ro
RelatedPackageVersions:
 linux-restricted-modules-4.10.0-18-generic N/A
 linux-backports-modules-4.10.0-18-generic N/A
 linux-firmware 1.164
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
Changed in linux (Ubuntu):
importance: Undecided → Medium
tags: added: kernel-da-key
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Issue found in Artful, series nominated.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

This is because that glibc is missing several of the TRAP_* constants in the userspace
definitions. Specifically TRAP_BRANCH and TRAP_HWBKPT.
See https://sourceware.org/bugzilla/show_bug.cgi?id=21286

Revision history for this message
Thadeu Lima de Souza Cascardo (cascardo) wrote :
Changed in linux (Ubuntu Zesty):
status: Confirmed → Won't Fix
Revision history for this message
Thadeu Lima de Souza Cascardo (cascardo) wrote :

Will fix for now by disabling the test on our selftest suite.

Cascardo.

tags: added: id-5ab94cd948fea47a514cc379
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Changed in ubuntu-kernel-tests:
status: New → Fix Released
assignee: nobody → Thadeu Lima de Souza Cascardo (cascardo)
Revision history for this message
Andy Whitcroft (apw) wrote : Closing unsupported series nomination.

This bug was nominated against a series that is no longer supported, ie artful. The bug task representing the artful nomination is being closed as Won't Fix.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu Artful):
status: New → Won't Fix
Steve Langasek (vorlon)
Changed in glibc (Ubuntu Artful):
status: New → Won't Fix
Changed in glibc (Ubuntu Zesty):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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