ls -l segfault

Denis Vlasenko vda.linux at googlemail.com
Thu Mar 15 13:17:57 PDT 2007


On Thursday 15 March 2007 14:25, Jan Evert van Grootheest wrote:
> > > I propose the following:
> > > 
> > > 1) try latest svn
> > > 2) add debug printouts to ls.c [using write, not printf!
> > >    printf can make such 'volatile' bugs disappear]:
> > >        write(2, "HERE\n", 5);
> > >    by adding them here and there, rerunning ls, you
> > >    will fairly quickly narrow it down.
> > > 3) show results to the list
> > 
> > I cannot reproduce this with the snapshot of 20070315.
> > 
> > Now, I guess I should try the changes between 1.4.1 and 
> > today... Fortunately, there are not too many patches in 
> > coreutils/ls.c. Lets hope the bug is in ls.c and not somewhere else.
> 
> Rev 17994 is the only real change to ls.c and that did not make a difference.
> So I guess the bug is somewhere else...
> Any suggestions?

Only this one:

   add debug printouts to ls.c [using write, not printf!
   printf can make such 'volatile' bugs disappear]:
       write(2, "HERE\n", 5);
   by adding them here and there, rerunning ls, you
   will fairly quickly narrow it down.

You can do it on failing bbox (1.4.1). Or just hope it was
really fixed, not masked by something...
--
vda


More information about the busybox mailing list