/tmp/<blar>/proc is not cleaned up correctly on error

Bug #727774 reported by Lee Jones
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Image Tools
Incomplete
Undecided
Unassigned

Bug Description

On error l-m-c seems to try to delete the /proc filesystem it created.

This results in 1000's of these:
rm: cannot remove `/tmp/tmpaGDA58/binary/proc/dahdi/1': Operation not permitted
rm: cannot remove `/tmp/tmpaGDA58/binary/proc/asound/Intel': Operation not permitted
rm: cannot remove `/tmp/tmpaGDA58/binary/proc/asound/card0/id': Operation not permitted
rm: cannot remove `/tmp/tmpaGDA58/binary/proc/asound/card0/codec#0': Operation not permitted
rm: cannot remove `/tmp/tmpaGDA58/binary/proc/asound/card0/pcm1c/sub0/prealloc_max': Operation not permitted
rm: cannot remove `/tmp/tmpaGDA58/binary/proc/asound/card0/pcm1c/sub0/prealloc': Operation not permitted
rm: cannot remove `/tmp/tmpaGDA58/binary/proc/asound/card0/pcm1c/sub0/status': Operation not permitted
rm: cannot remove `/tmp/tmpaGDA58/binary/proc/asound/card0/pcm1c/sub0/sw_params': Operation not permitted
rm: cannot remove `/tmp/tmpaGDA58/binary/proc/asound/card0/pcm1c/sub0/hw_params': Operation not permitted
rm: cannot remove `/tmp/tmpaGDA58/binary/proc/asound/card0/pcm1c/sub0/info': Operation not permitted
rm: cannot remove `/tmp/tmpaGDA58/binary/proc/asound/card0/pcm1c/info': Operation not permitted
rm: cannot remove `/tmp/tmpaGDA58/binary/proc/asound/card0/pcm1p/sub0/prealloc_max': Operation not permitted
rm: cannot remove `/tmp/tmpaGDA58/binary/proc/asound/card0/pcm1p/sub0/prealloc': Operation not permitted

Revision history for this message
Guilherme Salgado (salgado) wrote : Re: [Bug 727774] [NEW] /tmp/<blar>/proc is not cleaned up correctly on error

What version of l-m-c were you running when this happened? This issue
(bug 660196) was fixed recently.

Changed in linaro-image-tools:
status: New → Incomplete
Revision history for this message
Peter Maydell (pmaydell) wrote :

Bug 660196 claims this bug was fixed in linaro-image-tools 0.3; however I still see it in 0.4.3-0ubuntu2.

Revision history for this message
Guilherme Salgado (salgado) wrote : Re: [Bug 727774] Re: /tmp/<blar>/proc is not cleaned up correctly on error

Can you reproduce it reliably?

This used to happen when interrupting the script (Ctrl-C) during the
hwpack installation, but I can't seem to reproduce it here using trunk.

Revision history for this message
Peter Maydell (pmaydell) wrote :

Yes, it's 100% reproducible -- just hit ctrl-c at the apt-get prompt:
Reading state information... Done
The following NEW packages will be installed:
  devio flash-kernel linux-firmware linux-image-2.6.38-1000-linaro-omap
  linux-image-linaro-omap u-boot-linaro-omap3-beagle u-boot-tools
  uboot-mkimage wireless-crda x-loader-omap3-beagle
0 upgraded, 10 newly installed, 0 to remove and 8 not upgraded.
Need to get 0 B/35.1 MB of archives.
After this operation, 0 B of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  wireless-crda linux-image-2.6.38-1000-linaro-omap devio flash-kernel
  linux-firmware linux-image-linaro-omap u-boot-linaro-omap3-beagle
  u-boot-tools uboot-mkimage x-loader-omap3-beagle
Install these packages without verification [y/N]?

(or alternatively, type 'n' and then hit ^C afterwards while l-m-c is cleaning up.)

Revision history for this message
Guilherme Salgado (salgado) wrote :

That bug was actually fixed after 0.4.3; I commented there and will get
someone with the necessary rights to change the state of the tasks
there.

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.