debootstrap launches spurious udevd --daemon

Bug #1332155 reported by Brian Candler on 2014-06-19
This bug affects 4 people
Affects Status Importance Assigned to Milestone
debootstrap (Ubuntu)

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
  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/debootstrap --arch=i386 trusty /tmp/tmpBQAxhc

When it has finished:

# ps www -C udevd
  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/sources.list[.d] so here they are:

deb precise main restricted
deb-src precise main restricted

deb precise-updates main restricted
deb-src precise-updates main restricted

deb precise universe
deb-src precise universe
deb precise-updates universe
deb-src precise-updates universe

deb precise multiverse
deb-src precise multiverse
deb precise-updates multiverse
deb-src precise-updates multiverse

deb precise-backports main restricted universe multiverse
deb-src precise-backports main restricted universe multiverse

deb precise-security main restricted
deb-src precise-security main restricted
deb precise-security universe
deb-src precise-security universe
deb precise-security multiverse
deb-src precise-security multiverse

deb precise-proposed restricted main multiverse universe
# but pinned so that no packages are taken from this repo, except python-vm-builder

deb precise main
deb-src precise main
deb precise main
deb-src precise main
deb precise main
deb precise main
deb-src precise main
deb ubuntu ubiquiti

deb precise main
deb-src precise main
# No zfs packages currently installed

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: debootstrap 1.0.40~ubuntu0.5
ProcVersionSignature: Ubuntu 3.8.0-42.62~precise1-generic
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
PackageArchitecture: all
 PATH=(custom, no user)
SourcePackage: debootstrap
UpgradeStatus: No upgrade log present (probably fresh install)

Brian Candler (b-candler) wrote :
Brian Candler (b-candler) wrote :

Separate bug #1332165 for udevd --daemon holding stdout open

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in debootstrap (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers