LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-29-2009, 12:23 PM   #1
Ron Parker
LQ Newbie
 
Registered: Jul 2009
Posts: 5

Rep: Reputation: 1
xz corruption bug in 4.999.8beta


According to http://tukaani.org/xz/ there is a data corruption bug in XZ Utils versions prior to 4.999.9beta. I know I can update it locally but I didn't know what Slackware's position was on updating bugs like this in a stable release, especially since 13.0 uses xz for distributing packages.

BTW, it is soooo nice to finally have a stable 64-bit version for use at work. Thank you, thank you, thank you. Now, I just chuckle watching the other dev's constantly downloading huge updates.
 
Old 09-29-2009, 01:36 PM   #2
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
I won't speak for Pat, but I personally haven't seen it, nor have I seen any reports of corruption.

Updating to the new 4.999.9beta isn't an option, as it now requires libtool-2.x:
Quote:
commit 696d7ee3953beaf4f0ed18e78917ccf300431966
Author: Lasse Collin <lasse.collin@tukaani.org>
Date: Thu Aug 27 15:43:54 2009 +0300

Require GNU libtool 2.2.
However, if you prefer, you could apply this patch from git and rebuild xz
(I'm also attaching the patch):

Code:
diff --git a/src/liblzma/lz/lz_encoder.h b/src/liblzma/lz/lz_encoder.h
index 4904c22..35e9ebb 100644
--- a/src/liblzma/lz/lz_encoder.h
+++ b/src/liblzma/lz/lz_encoder.h
@@ -234,7 +234,7 @@ mf_avail(const lzma_mf *mf)
 static inline uint32_t
 mf_unencoded(const lzma_mf *mf)
 {
-	return mf->write_pos - mf->read_pos - mf->read_ahead;
+	return mf->write_pos - mf->read_pos + mf->read_ahead;
 }
I'll point Pat to this thread, but to be honest, I doubt there will be an update since nobody has reported any problems with the version we have.
Attached Files
File Type: txt xz-fix_data_corruption_in_lz_encoder.patch.txt (396 Bytes, 14 views)
 
Old 09-29-2009, 06:21 PM   #3
sahko
Senior Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 1,041

Rep: Reputation: Disabled
Quote:
Originally Posted by rworkman View Post
I won't speak for Pat, but I personally haven't seen it, nor have I seen any reports of corruption.
Haven't seen it either and i use xz exclusively.

Quote:
Originally Posted by rworkman View Post
Updating to the new 4.999.9beta isn't an option, as it now requires libtool-2.x:
Sorry for asking, as well as my ignorance, but what is wrong with libtool-2.x.y?
And does this mean that xz on Slackware will always be beta?
 
Old 09-29-2009, 08:45 PM   #4
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
Originally Posted by sahko View Post
Sorry for asking, as well as my ignorance, but what is wrong with libtool-2.x.y?
And does this mean that xz on Slackware will always be beta?
Not too terribly long ago, lots of other upstream stuff didn't like it too well, and other distros that had moved to libtool2 were having some issues; at least one of them shipped both libtool1 and libtool2, and quite frankly, that's not something that I had ANY desire to work out all the details involved.

Lately though, it seems to be fine in my testing here; there are a few things that have to be rebuilt, and so far, everything I've tried to build has compiled just fine. Long story short, I don't know the answer to your second question, but also don't expect libtool to be a holdup. Of course, that's not my decision though :-)

Last edited by rworkman; 09-29-2009 at 08:46 PM.
 
Old 09-30-2009, 01:42 PM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Uh, I checked this out today, and xz-4.999.9beta builds just fine with older versions of libtool. I'm still using libtool-1.5.22.
As far as libtool-2.x, it supposedly fixes at least one long-standing, subtle-but-serious bug.

The new version of xz has a significant number of fixes -some of which may improve the memory footprint. Probably worth having a longer look at it.
 
Old 10-01-2009, 11:40 PM   #6
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
Originally Posted by gnashley View Post
Uh, I checked this out today, and xz-4.999.9beta builds just fine with older versions of libtool. I'm still using libtool-1.5.22.
Interesting. I haven't actually tried building it - I was just basing my conclusion on the git log.

Quote:
As far as libtool-2.x, it supposedly fixes at least one long-standing, subtle-but-serious bug.
Is that the one where unnecessary "deps" are included to the libtool archive (.la) file? If so, that's good - several of the xorg-related updates wouldn't have been necessary but for that bug.

Quote:
The new version of xz has a significant number of fixes -some of which may improve the memory footprint. Probably worth having a longer look at it.
Well, I'll definitely check it out for -current, but I still wouldn't get hopes up for 13.0 /patches :-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel bug causes EXT3 FS corruption? Gralgrathor Linux - General 6 10-24-2008 11:34 PM
LXer: Linux: Introducing The Data Corruption Bug LXer Syndicated Linux News 0 01-05-2007 01:24 AM
LXer: Linux: 2.6.20-rc3 Fixes Corruption Bug LXer Syndicated Linux News 0 01-03-2007 11:33 PM
LXer: Linux: Data Corruption Bug Fixed LXer Syndicated Linux News 0 12-29-2006 02:03 PM
N00b #999,999..... Cambren LinuxQuestions.org Member Intro 2 10-13-2006 08:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration