Segfault in colortail - fixed in newer versions?

Bug #800504 reported by Mike Forbes
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
colortail (Ubuntu)
New
Undecided
Unassigned

Bug Description

colortail segfaults if it reads a line greater than 1024 characters in length.

This is less than ideal :)

It's fixed in newer versions. Is there any reason this couldn't be moved into lucid?

(from the changelog of the maintainer)
Fixed stupid off by one error in TailFile.cc that caused a segfault if a line in the tailed file was longer that 1024 characters.

see: https://github.com/joakim666/colortail/commit/85af5c4821ff852b36de165a44e181dc3cc5cccd

1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu
Description: Ubuntu 10.04.2 LTS
Release: 10.04

2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center
$ dpkg -l|grep colortail
ii colortail 0.3.2-2

3) What you expected to happen
No segfaults :)

4) What happened instead
Segfault!

backtrace and valgrind reports available if required.

(I used cat to pipe a file into logger, then tail -f syslog == boom (segfault))

Revision history for this message
Elías Alejandro (ealmdz) wrote : Re: [Bug 800504] [NEW] Segfault in colortail - fixed in newer versions?

Dear Mike,

On Wed, Jun 22, 2011 at 07:09:47AM -0000, Launchpad Bug Tracker wrote:
> 2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center
> $ dpkg -l|grep colortail
> ii colortail 0.3.2-2
>
> 3) What you expected to happen
> No segfaults :)
>

check out:
https://launchpad.net/ubuntu/+source/colortail

at least under Debian:
ii colortail 0.3.3-1

Regards,

--
Elías Alejandro

Revision history for this message
Mike Forbes (mike.forbes) wrote :

I expected this and backported 0.3.3-1 into lucid:

(here's my .dsc)

https://launchpad.net/~koordinates/+archive/dev/+files/colortail_0.3.3-1ubuntu1.dsc

I get the same result.

shell1 # colortail -f /var/log/syslog

shell2 # logger < file.with.lots.of.text.on.one.line (1429 bytes)

shell1 #
kernel: [2401351.415188] colortail[8943]: segfault at 7fff153a5004 ip 00007f29570d3b50 sp 00007fff1539e5b8 error 6 in libc-2.11.1.so[7f2957051000+17a000]

tags: added: update
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.