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

[SOLVED] Re: very very strange bash/sed bug !!



Le mer 29/01/2003 à 13:39, Seneca a écrit :
> On Wed, Jan 29, 2003 at 11:52:36AM +0100, Xavier Bestel wrote:
> > it's been a loong time I have a bug on my system: ./libtool is
> > incorrectly generated by ./configure. I haven't been able to correct it
> > for months.
> > 
> > Today I discovered where lies the bug: it's somewhere between bash and
> > sed.
> > 
> > First and foremost, I'm running debian/unstable, and have sed 3.02-8.1,
> > bash 2.05b-6 and libtool 1.4.3-5 (but it's been there since several
> > versions).
> > 
> > Now the bug:
> > 
> > echo xx >lt1
> > echo xx >lt2
> > sed '' /usr/share/libtool/ltmain.sh >>lt1
> > sed '' /usr/share/libtool/ltmain.sh |less >>lt2
> > diff lt1 lt2
> > 
> > They differ !!! And surprisingly, only lt2 is correct !
> 
> I ran those commands and lt1 and lt2 do not differ. I use the same
> versions of sed, bash, and libtool as you. What is the
> difference between lt1 and lt2?

Ok, I found the cause: it was a reiserfs bug in 2.4.20-pre6 (and
before), which made it somehow "realign" the file around 128k and loose
some chars.

I had 2 chars missing in lt1 at 128k into the file, when lt1 was on a
reiserfs partition. I just upgraded to 2.4.20 and now all is OK.

Still, as I had numerous problems with reiserfs, I think I'll switch to
ext3 soon.

Thanks for helping,

	Xav



Reply to: