fglrx deb postrm script hangs indefinitely

Bug #1338603 reported by RichardNeill on 2014-07-07
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
fglrx-installer (Ubuntu)
Medium
Unassigned

Bug Description

I just installed fglrx (2:13.350.1-0ubuntu3) on Utopic.
It causes a CPU hang (see Bug 1338177), so I wanted to remove it.

Running:
  sudo apt-get purge fglrx fglrx-amdcccle
silently hangs, indefinitely. The prompt just never returns (not even with Ctrl-C).

I tracked the bug down to this script:
/var/lib/dpkg/info/fglrx.postrm
whose process I was able to kill, and dpkg then continued (to a non-graceful exit);

--
Purging configuration files for fglrx (2:13.350.1-0ubuntu3) ...
dpkg: error processing package fglrx (--purge):
 subprocess installed post-removal script was killed by signal (Terminated)
Errors were encountered while processing:
 fglrx
E: Sub-process /usr/bin/dpkg returned an error code (1)
---

The offending line in the postrm script is this one:
update-rc.d atieventsd remove >/dev/null

Having commented it out, I was then able to re-run the
sudo apt-get purge fglrx fglrx-amdcccle
successfully.

The root cause seems to be that the command:
  /usr/lib/insserv/insserv
will sit there interminably, inactively, and unkillably.
even sudo killall -9 insserv won't stop it.

To fully recover from the insserv hang, I had to shut down the machine, with shutdown -h now,
and even that didn't fully go down; I had to eventually physically reset the box.

There are really 3 bugs here:

1. The fglrx package cannot be gracefully uninstalled.
2. insserv needs to be killed with fire.
3. the kernel's reboot or shutdown commands fail if a process like insserv is stuck in the "D" state.
---
ApportVersion: 2.14.4-0ubuntu1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC3: rjn 2616 F.... pulseaudio
 /dev/snd/controlC2: rjn 2616 F.... pulseaudio
 /dev/snd/controlC0: rjn 2616 F.... pulseaudio
 /dev/snd/controlC1: rjn 2616 F.... pulseaudio
DistroRelease: Ubuntu 14.10
HibernationDevice: RESUME=UUID=dd46a6f0-bcb8-4e75-b77d-6158117027ac
InstallationDate: Installed on 2014-07-06 (0 days ago)
InstallationMedia: Kubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140416.1)
IwConfig:
 eth0 no wireless extensions.

 eth1 no wireless extensions.

 lo no wireless extensions.
MachineType: System manufacturer System Product Name
Package: linux (not installed)
ProcEnviron:
 LANGUAGE=en_GB:en
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcFB: 0 radeondrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.15.0-6-generic root=UUID=591b7866-2111-434a-8423-b79bbf373c85 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.15.0-6.11-generic 3.15.0
PulseList:
 Error: command ['pacmd', 'list'] failed with exit code 1: Home directory not accessible: Permission denied
 No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-3.15.0-6-generic N/A
 linux-backports-modules-3.15.0-6-generic N/A
 linux-firmware 1.132
RfKill:

Tags: utopic
Uname: Linux 3.15.0-6-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

_MarkForUpload: True
dmi.bios.date: 07/01/2013
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 4105
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: P8Z68-V LX
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev X.0x
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr4105:bd07/01/2013:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP8Z68-VLX:rvrRevX.0x:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: System Product Name
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1338603

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

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

Changed in linux (Ubuntu):
status: New → Incomplete

apport information

tags: added: apport-collected utopic
description: updated

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Changed in linux (Ubuntu):
importance: Undecided → Critical
affects: linux (Ubuntu) → fglrx-installer (Ubuntu)
Changed in fglrx-installer (Ubuntu):
importance: Critical → Medium
status: Confirmed → New
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers