mdadm segfaults in lxd container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mdadm (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Inside a 16.04 lxd container (running in default unprivileged mode), inside a 16.04 host:
# /etc/cron.
Segmentation fault (core dumped)
# strace -f /sbin/mdadm --monitor --scan --oneshot
...
brk(0x1ba1000) = 0x1ba1000
mknod("
--- SIGSEGV {si_signo=SIGSEGV, si_code=
+++ killed by SIGSEGV (core dumped) +++
Segmentation fault (core dumped)
This is troublesome because (a) mdadm is installed by default, (b) mdadm runs under a daily cron job, (c) cron sends out errors via E-mail. So you get spammed from each container.
As others have observed[^1], the workaround is to remove mdadm from inside lxd containers.
[^1] https:/
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: mdadm 3.3-2ubuntu7.2
ProcVersionSign
Uname: Linux 4.8.0-52-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
Date: Thu May 18 13:48:22 2017
Lsusb:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 413c:a001 Dell Computer Corp. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: Dell Inc. PowerEdge R230
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: mdadm
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 01/12/2017
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 2.0.8
dmi.board.name: 0DWX9P
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 23
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.
dmi.product.name: PowerEdge R230
dmi.sys.vendor: Dell Inc.
etc.blkid.tab: Error: [Errno 2] No such file or directory: '/etc/blkid.tab'
initrd.files: Error: [Errno 2] No such file or directory: '/boot/
Status changed to 'Confirmed' because the bug affects multiple users.