[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#630608: [bash] Everything Segfaults After lib6 -7 Upgrade



On Sat, Jun 18, 2011 at 06:22:46PM -0500, Jonathan Nieder wrote:
> (Side note:
> 
> libc6.preinst tries to check for stray ld-*.so files, but I see a
> loophole in that:
> 
> 	# Binaries owned packages are considered to do the right thing
> 	if dpkg-query -L libc6 2>/dev/null | grep -q "$i"; then
> 	    continue
> 	fi
> 
> The grep pattern should be anchored and it would be comforting to

I agree that it should be anchored. In practice given the filenames
involved it doesn't make a difference.

> check for diversions.

I don't agree with that part. The fact that the file is diverted doesn't
change the issue. If ld.so is not in sync with libc.so you should expect
a crash. If ld.so is diverted, only libc.so will be unpack and the crash
will happen.

> 
> 	if test -z "$(dpkg-divert --listpackage "$i")" &&
> 	   dpkg-query -L libc6 2>/dev/null | grep -q "^$i\$"; then
> 	    continue
> 	fi
> )
 

-- 
Aurelien Jarno	                        GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net



Reply to: