FS#22034 - Pacman ignores disk full errors and exit(0) at the end

Attached to Project: Pacman
Opened by Dieter Plaetinck (Dieter_be) - Thursday, 09 December 2010, 17:18 GMT
Last edited by Allan McRae (Allan) - Monday, 13 December 2010, 04:18 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Medium
Priority Normal
Reported Version 3.4.1
Due in Version 3.5.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

when the disk gets full, pacman continues processing, ignoring all errors, and finishes off claiming "Package Installation Complete." and exits' with exitcode 0.

I made a separate ticket then ` FS#11639  - pacman fails miserably when the disk gets full ` because that one is about putting checks and protections in place to prevent disk-full issues.


What follows is the output of:
pacman --root /mnt --config /tmp/pacman.conf --noconfirm -S "attr" "bash" "binutils" "bzip2" "coreutils" "cryptsetup" "dash" "dcron" "device-mapper" "dhcpcd" "diffutils" "e2fsprogs" "file" "filesystem" "findutils" "gawk" "gcc-libs" "gen-init-cpio" "gettext" "glibc" "grep" "grub" "gzip" "initscripts" "iputils" "jfsutils" "kernel26" "less" "libusb" "licenses" "logrotate" "lvm2" "mailx" "man-db" "man-pages" "mdadm" "nano" "net-tools" "pacman" "pciutils" "pcmciautils" "perl" "ppp" "procps" "psmisc" "reiserfsprogs" "rp-pppoe" "sed" "shadow" "sysfsutils" "syslog-ng" "sysvinit" "tar" "tcp_wrappers" "texinfo" "udev" "usbutils" "util-linux-ng" "vi" "wget" "which" "wpa_supplicant" "xfsprogs"

resolving dependencies...
looking for inter-conflicts...

Targets (97): linux-api-headers-2.6.34-1 tzdata-2010o-1 glibc-2.12.1-4 attr-2.4.44-1 ncurses-5.7-4 readline-6.1.002-2 bash-4.1.009-1 zlib-1.2.5-2 binutils-2.20.1-4 bzip2-1.0.6-1 gcc-libs-4.5.1-2 db-5.1.19-3 cracklib-2.8.16-1 pam-1.1.1-2 shadow-4.1.4.2-3 acl-2.2.49-1 gmp-5.0.1-1 libcap-2.19-1 coreutils-8.7-1 iana-etc-2.30-1 filesystem-2010.10-1 util-linux-ng-2.18-3 libusb-0.1.12-4 pcre-8.10-2 glib2-2.26.1-1 module-init-tools-3.12-1 udev-164-1 device-mapper-2.02.77-1 libgpg-error-1.9-2 libgcrypt-1.4.6-1 popt-1.16-2 cryptsetup-1.1.3-1 dash-0.5.6.1-1 dcron-4.4-2 dhcpcd-5.2.8-1 diffutils-3.0-1 e2fsprogs-1.41.12-1 file-5.04-3 findutils-4.4.2-3 gawk-3.1.8-2 gen-init-cpio-2.6.32-1 gettext-0.18.1.1-1 grep-2.7-1 sed-4.2.1-3 grub-0.97-17 gzip-1.4-2 net-tools-1.60-14 kbd-1.15.2-1 sysvinit-2.88-2 initscripts-2010.07-2 iputils-20100214-2 jfsutils-1.1.14-2 linux-firmware-20101108-1 mkinitcpio-busybox-1.17.2-1 which-2.20-4 mkinitcpio-0.6.7-1 kernel26-2.6.36.1-3 less-436-2 licenses-2.6-1 logrotate-3.7.9-1 lvm2-2.02.77-1 mailx-8.1.1-7 gdbm-1.8.3-7 perl-5.12.1-3 texinfo-4.13a-4 groff-1.20.1-4 man-db-2.5.9-1 man-pages-3.31-1 mdadm-3.1.4-1 nano-2.2.6-1 xz-5.0.0-1 openssl-1.0.0.c-1 expat-2.0.1-5 libarchive-2.8.4-2 libfetch-2.33-1 pacman-mirrorlist-20100825-1 pacman-3.4.1-1 pciutils-3.1.7-1 sysfsutils-2.1.0-5 pcmciautils-017-1 libnl-1.1-2 libpcap-1.1.1-1 ppp-2.4.5-1 procps-3.2.8-2 psmisc-22.13-1 reiserfsprogs-3.6.21-2 rp-pppoe-3.10-5 eventlog-0.2.12-1 tcp_wrappers-7.6-12 syslog-ng-3.1.2-1 tar-1.25-1 usbutils-0.91-1 vi-050325-3 wget-1.12-2 dbus-core-1.4.0-1 wpa_supplicant-0.7.3-1 xfsprogs-3.1.3-1

Total Download Size: 0.00 MB
Total Installed Size: 403.17 MB

Proceed with installation? [Y/n]
checking package integrity...
checking for file conflicts...
installing linux-api-headers...
installing tzdata...
Optional dependencies for tzdata
sh: required by tzselect
installing glibc...
installing attr...
installing ncurses...
installing readline...
installing bash...
installing zlib...
installing binutils...
installing bzip2...
installing gcc-libs...
installing db...
installing cracklib...
installing pam...
installing shadow...
installing acl...
installing gmp...
installing libcap...
installing coreutils...
installing iana-etc...
installing filesystem...
installing util-linux-ng...
Optional dependencies for util-linux-ng
perl: for chkdupexe support
installing libusb...
installing pcre...
installing glib2...
error: could not create directory /mnt/var/lib/pacman/local/glib2-2.26.1-1/: No space left on device
installing module-init-tools...
error: could not create directory /mnt/var/lib/pacman/local/module-init-tools-3.12-1/: No space left on device
installing udev...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/udev-164-1/: No space left on device
installing device-mapper...
error: could not create directory /mnt/var/lib/pacman/local/device-mapper-2.02.77-1/: No space left on device
installing libgpg-error...
error: could not create directory /mnt/var/lib/pacman/local/libgpg-error-1.9-2/: No space left on device
installing libgcrypt...
error: could not create directory /mnt/var/lib/pacman/local/libgcrypt-1.4.6-1/: No space left on device
installing popt...
error: could not create directory /mnt/var/lib/pacman/local/popt-1.16-2/: No space left on device
installing cryptsetup...
error: could not create directory /mnt/var/lib/pacman/local/cryptsetup-1.1.3-1/: No space left on device
installing dash...
error: could not create directory /mnt/var/lib/pacman/local/dash-0.5.6.1-1/: No space left on device
installing dcron...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/dcron-4.4-2/: No space left on device
installing dhcpcd...
error: could not create directory /mnt/var/lib/pacman/local/dhcpcd-5.2.8-1/: No space left on device
installing diffutils...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/diffutils-3.0-1/: No space left on device
installing e2fsprogs...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/e2fsprogs-1.41.12-1/: No space left on device
installing file...
error: could not create directory /mnt/var/lib/pacman/local/file-5.04-3/: No space left on device
installing findutils...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/findutils-4.4.2-3/: No space left on device
installing gawk...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/gawk-3.1.8-2/: No space left on device
installing gen-init-cpio...
error: could not create directory /mnt/var/lib/pacman/local/gen-init-cpio-2.6.32-1/: No space left on device
installing gettext...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/gettext-0.18.1.1-1/: No space left on device
installing grep...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/grep-2.7-1/: No space left on device
installing sed...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/sed-4.2.1-3/: No space left on device
installing grub...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/grub-0.97-17/: No space left on device
installing gzip...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/gzip-1.4-2/: No space left on device
installing net-tools...
error: could not create directory /mnt/var/lib/pacman/local/net-tools-1.60-14/: No space left on device
installing kbd...
error: could not create directory /mnt/var/lib/pacman/local/kbd-1.15.2-1/: No space left on device
installing sysvinit...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/sysvinit-2.88-2/: No space left on device
installing initscripts...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/initscripts-2010.07-2/: No space left on device
installing iputils...
error: could not create directory /mnt/var/lib/pacman/local/iputils-20100214-2/: No space left on device
installing jfsutils...
error: could not create directory /mnt/var/lib/pacman/local/jfsutils-1.1.14-2/: No space left on device
installing linux-firmware...
error: could not create directory /mnt/var/lib/pacman/local/linux-firmware-20101108-1/: No space left on device
installing mkinitcpio-busybox...
error: could not create directory /mnt/var/lib/pacman/local/mkinitcpio-busybox-1.17.2-1/: No space left on device
installing which...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/which-2.20-4/: No space left on device
installing mkinitcpio...
error: could not create directory /mnt/var/lib/pacman/local/mkinitcpio-0.6.7-1/: No space left on device
installing kernel26...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/kernel26-2.6.36.1-3/: No space left on device
installing less...
error: could not create directory /mnt/var/lib/pacman/local/less-436-2/: No space left on device
installing licenses...
error: could not create directory /mnt/var/lib/pacman/local/licenses-2.6-1/: No space left on device
installing logrotate...
error: could not create directory /mnt/var/lib/pacman/local/logrotate-3.7.9-1/: No space left on device
installing lvm2...
error: could not create directory /mnt/var/lib/pacman/local/lvm2-2.02.77-1/: No space left on device
installing mailx...
error: could not create directory /mnt/var/lib/pacman/local/mailx-8.1.1-7/: No space left on device
installing gdbm...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/gdbm-1.8.3-7/: No space left on device
installing perl...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/perl-5.12.1-3/: No space left on device
installing texinfo...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/texinfo-4.13a-4/: No space left on device
installing groff...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/groff-1.20.1-4/: No space left on device
installing man-db...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/man-db-2.5.9-1/: No space left on device
installing man-pages...
error: could not create directory /mnt/var/lib/pacman/local/man-pages-3.31-1/: No space left on device
installing mdadm...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/mdadm-3.1.4-1/: No space left on device
installing nano...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/nano-2.2.6-1/: No space left on device
installing xz...
error: could not create directory /mnt/var/lib/pacman/local/xz-5.0.0-1/: No space left on device
installing openssl...
error: could not create directory /mnt/var/lib/pacman/local/openssl-1.0.0.c-1/: No space left on device
installing expat...
error: could not create directory /mnt/var/lib/pacman/local/expat-2.0.1-5/: No space left on device
installing libarchive...
error: could not create directory /mnt/var/lib/pacman/local/libarchive-2.8.4-2/: No space left on device
installing libfetch...
error: could not create directory /mnt/var/lib/pacman/local/libfetch-2.33-1/: No space left on device
installing pacman-mirrorlist...
error: could not create directory /mnt/var/lib/pacman/local/pacman-mirrorlist-20100825-1/: No space left on device
installing pacman...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/pacman-3.4.1-1/: No space left on device
installing pciutils...
error: could not create directory /mnt/var/lib/pacman/local/pciutils-3.1.7-1/: No space left on device
installing sysfsutils...
error: could not create directory /mnt/var/lib/pacman/local/sysfsutils-2.1.0-5/: No space left on device
installing pcmciautils...
error: could not create directory /mnt/var/lib/pacman/local/pcmciautils-017-1/: No space left on device
installing libnl...
error: could not create directory /mnt/var/lib/pacman/local/libnl-1.1-2/: No space left on device
installing libpcap...
error: could not create directory /mnt/var/lib/pacman/local/libpcap-1.1.1-1/: No space left on device
installing ppp...
error: could not create directory /mnt/var/lib/pacman/local/ppp-2.4.5-1/: No space left on device
installing procps...
error: could not create directory /mnt/var/lib/pacman/local/procps-3.2.8-2/: No space left on device
installing psmisc...
error: could not create directory /mnt/var/lib/pacman/local/psmisc-22.13-1/: No space left on device
installing reiserfsprogs...
error: could not create directory /mnt/var/lib/pacman/local/reiserfsprogs-3.6.21-2/: No space left on device
installing rp-pppoe...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/rp-pppoe-3.10-5/: No space left on device
installing eventlog...
error: could not create directory /mnt/var/lib/pacman/local/eventlog-0.2.12-1/: No space left on device
installing tcp_wrappers...
error: could not create directory /mnt/var/lib/pacman/local/tcp_wrappers-7.6-12/: No space left on device
installing syslog-ng...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/syslog-ng-3.1.2-1/: No space left on device
installing tar...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/tar-1.25-1/: No space left on device
installing usbutils...
error: could not create directory /mnt/var/lib/pacman/local/usbutils-0.91-1/: No space left on device
installing vi...
error: could not create directory /mnt/var/lib/pacman/local/vi-050325-3/: No space left on device
installing wget...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/wget-1.12-2/: No space left on device
installing dbus-core...
error: could not create temp directory
error: could not create directory /mnt/var/lib/pacman/local/dbus-core-1.4.0-1/: No space left on device
installing wpa_supplicant...
error: could not create directory /mnt/var/lib/pacman/local/wpa_supplicant-0.7.3-1/: No space left on device
installing xfsprogs...
error: could not create directory /mnt/var/lib/pacman/local/xfsprogs-3.1.3-1/: No space left on device
/sbin/ldconfig: /usr/lib/libpcreposix.so is not an ELF file - it has the wrong magic bytes at the start.

/sbin/ldconfig: /usr/lib/libpcreposix.so.0 is not an ELF file - it has the wrong magic bytes at the start.

/sbin/ldconfig: /usr/lib/libpcrecpp.so.0 is not an ELF file - it has the wrong magic bytes at the start.

/sbin/ldconfig: /usr/lib/libpcrecpp.so is not an ELF file - it has the wrong magic bytes at the start.

/sbin/ldconfig: /usr/lib/libpcreposix.so.0.0.0 is not an ELF file - it has the wrong magic bytes at the start.

/sbin/ldconfig: /usr/lib/libpcrecpp.so.0.0.0 is not an ELF file - it has the wrong magic bytes at the start.

/sbin/ldconfig: Writing of cache data failed: No space left on device
error: command failed to execute correctly

Package Installation Complete.
This task depends upon

Closed by  Allan McRae (Allan)
Monday, 13 December 2010, 04:18 GMT
Reason for closing:  Fixed
Additional comments about closing:  In git:
http://projects.archlinux.org/pacman.git /commit/?id=209d0643
Comment by Dan McGee (toofishes) - Thursday, 09 December 2010, 17:40 GMT
Yeah,  FS#11639  will hopefully address the cause, but we still should not be exiting with status code 0. I think this is fixed on Allan's working branch with http://projects.archlinux.org/users/allan/pacman.git/commit/?h=working&id=01721b5be16980.
Comment by Allan McRae (Allan) - Thursday, 09 December 2010, 22:00 GMT
Yes - disk full errors cause an exit with no zero status with that commit.

Loading...