Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#9461 - aufs bug - pacman crashes system

Attached to Project: Arch Linux
Opened by Michael Towers (gradgrind) - Monday, 04 February 2008, 06:40 GMT
Last edited by Simo Leone (neotuli) - Saturday, 17 May 2008, 09:05 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Paul Mattal (paul)
Simo Leone (neotuli)
Architecture All
Severity Critical
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Recent changes to pacman have uncovered a nasty bug in aufs.

Additional info:
* package version(s)
aufs-20071017-6 (with pacman-3.1.1)

Steps to reproduce:
Running pacman -Sy(u) within an aufs union (i.e. in general a 'live' system) causes a system crash.

Steps to fix:
Use current aufs, it has now been fixed (CVS as of 20080204)
This task depends upon

Closed by  Simo Leone (neotuli)
Saturday, 17 May 2008, 09:05 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed upstream
Comment by Paul Mattal (paul) - Thursday, 07 February 2008, 05:12 GMT
Thanks for spotting this. Will jump on it tomorrow.
Comment by Tobias Powalowski (tpowa) - Sunday, 10 February 2008, 09:53 GMT
hrm is this already fixed with .24 kernel and package from testing?
Comment by Michael Towers (gradgrind) - Sunday, 10 February 2008, 12:45 GMT
As the fix only appeared on 20080204, aufs-20080125 cannot be fixed.
Comment by Paul Mattal (paul) - Monday, 11 February 2008, 04:44 GMT
I have placed new aufs{,-utils}-20080210-1 in [testing].

Do these help?
Comment by Michael Towers (gradgrind) - Tuesday, 11 March 2008, 09:14 GMT
Package 20080210 has been working pretty well, but Tobias has now kindly included the splice patch in the kernel (2.6.24.3-3), and the latest aufs (20080310) has a further bug-fix potentially relevant to pacman and also a new feature (option to show whiteouts), which I am using in larch, so it would be nice if a new version could be released. Here's the PKGBUILD I'm using, which adds 'CONFIG_AUFS_SPLICE_PATCH = y' and 'CONFIG_AUFS_SHWH = y':

pkgname=aufs
pkgver=20080311
pkgrel=1
_kernver='2.6.24-ARCH'
pkgdesc="Another Unionfs Implementation that supports NFS branches"
arch=('i686' 'x86_64')
url="http://aufs.sourceforge.net/"
license=('GPL2')
depends=('kernel26>=2.6.24.3-3' 'aufs-utils')
install=$pkgname.install
options=(!makeflags)

_cvsr=":pserver:anonymous:@aufs.cvs.sourceforge.net:/cvsroot/aufs"
_cvsmod="aufs"

build() {
msg "Connecting to $_cvsmod.sourceforge.net CVS server...."
cvs -d$_cvsr checkout -D $pkgver $_cvsmod

msg "CVS checkout done or server timeout"
msg "Starting make..."

rm -rf $startdir/src/$_cvsmod-build
cp -r $startdir/src/$_cvsmod $startdir/src/$_cvsmod-build

cd $startdir/src/$_cvsmod-build

sed -i 's|.*CONFIG_AUFS_SHWH =.*|CONFIG_AUFS_SHWH = y|' \
local.mk || return 1

# configure for NFS by:
# 1) configure local.mk to use FILP and LHASH
sed -i 's|CONFIG_AUFS_PUT_FILP_PATCH =|CONFIG_AUFS_PUT_FILP_PATCH = y|' \
local.mk || return 1
sed -i 's|CONFIG_AUFS_LHASH_PATCH =|CONFIG_AUFS_LHASH_PATCH = y|' \
local.mk || return 1
# 2) configure local.mk NOT to use FAKE_DM
sed -i 's|CONFIG_AUFS_FAKE_DM = y|CONFIG_AUFS_FAKE_DM = |' \
local.mk || return 1

# For kernel patch splice-2.6.23.patch - important for loopback fs mounts
sed -i 's|CONFIG_AUFS_SPLICE_PATCH =|CONFIG_AUFS_SPLICE_PATCH = y|' \
local.mk || return 1

# build
make KDIR=/usr/src/linux-$_kernver/ -f local.mk || return 1

# install
install -D -m644 fs/aufs/aufs.ko \
$startdir/pkg/lib/modules/$_kernver/fs/aufs/aufs.ko || return 1

# tweak the install script for the right kernel version
sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
$startdir/$pkgname.install || return 1
}
Comment by Greg (dolby) - Wednesday, 14 May 2008, 17:12 GMT
Still a problem with aufs 20080421-2 ?

Loading...