debootstrap launches spurious udevd --daemon
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
debootstrap (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
On a 12.04 amd64 system, when running debootstrap to generate a 14.04 image [i386 or amd64], an instance of "udevd --daemon" is launched and persists after debootstrap terminates.
How to reproduce:
Freshly booted system. Before:
# ps www -C udevd
PID TTY STAT TIME COMMAND
449 ? Ss 0:00 /sbin/udevd --daemon
673 ? S 0:00 /sbin/udevd --daemon
674 ? S 0:00 /sbin/udevd --daemon
Now run the following:
# /usr/sbin/
When it has finished:
# ps www -C udevd
PID TTY STAT TIME COMMAND
449 ? Ss 0:00 /sbin/udevd --daemon
673 ? S 0:00 /sbin/udevd --daemon
674 ? S 0:00 /sbin/udevd --daemon
29146 ? Ss 0:00 udevd --daemon
Extra tests:
This *doesn't* happen when building precise i386 on precise.
It *does* happen when building saucy i386 on precise.
It *doesn't* happen when building trusty i386 on trusty (tested in a trusty VM)
Apart from leaking a process, this is the root cause of bug #1287943: a process which runs debootstrap in a pipeline to read stdout finds that the pipeline is never closed (and therefore never terminates) until the udevd --daemon process is manually killed.
Most likely this is because stdout is passed to that process, which doesn't close it.
=== more details ===
Base system is 12.04 fully updated, with the raring enablement stack (kernel 3.8.0-42-generic). In a comment in #1287943 they asked me to include all the sources in /etc/apt/
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
# but pinned so that no packages are taken from this repo, except python-vm-builder
deb http://
deb-src http://
deb http://
deb-src http://
deb http://
deb http://
deb-src http://
deb http://
deb http://
deb-src http://
# No zfs packages currently installed
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: debootstrap 1.0.40~ubuntu0.5
ProcVersionSign
Uname: Linux 3.8.0-42-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.6
Architecture: amd64
Date: Thu Jun 19 16:23:15 2014
InstallationMedia: Ubuntu-Server 12.04.3 LTS "Precise Pangolin" - Release amd64 (20130820.2)
MarkForUpload: True
PackageArchitec
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: debootstrap
UpgradeStatus: No upgrade log present (probably fresh install)
Separate bug #1332165 for udevd --daemon holding stdout open