[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [BusyBox] small fix for tail
From:       William Barsse <wbarsse () pfn ! com>
Date:       2004-09-30 14:22:50
Message-ID: 415C16BA.2090707 () pfn ! com
[Download RAW message or body]

Hi Glenn,

Well I tried with no options at all and with -f, both showed the same 
behavior (SIGSEGV); I think it was tied to the size of the files more 
than the options used.

I can run another gdb session to get better details on it if you like.

Cheers,
- William

Glenn McGrath wrote:
> On Wed, 29 Sep 2004 14:58:32 -0400
> William Barsse <wbarsse@pfn.com> wrote:
> 
> 
>>Hi,
>>
>>When I run 'tail' on more than one file I get a SIGSEGV, this seems to
>>
>>be due to some variables not being reinitialized when from the first 
>>files to the next.
> 
> 
> Thanks, ive checked in your patch.
> 
> What options were you using to get the segfault ?
> 
> The bug i see it fix is the following
> 
> Before patch
> $ ./busybox tail -n 2 AUTHORS TODO
> ==> AUTHORS <==
>     devfsd and size optimizations in strings, openvt, chvt, deallocvt,
> hdparm and fdformat.
> 
> 
> ==> TODO <==
> $
> 
> After patch
> $ ./busybox tail -n 2 AUTHORS TODO
> ==> AUTHORS <==
>     devfsd and size optimizations in strings, openvt, chvt, deallocvt,
> hdparm and fdformat.
> 
> 
> ==> TODO <==
> ----
> 
> $
> 
> Note the first example didnt have any lines under TODO.
> 
> 
> 
> Glenn
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> busybox mailing list
> busybox@mail.busybox.net
> http://codepoet.org/mailman/listinfo/busybox
_______________________________________________
busybox mailing list
busybox@mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic