Summary: | colortail segfaults under newer gcc builds | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Paul Giordano <paul_giordano> |
Component: | Current packages | Assignee: | Karl Trygve Kalleberg (RETIRED) <karltk> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | 1.3 | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Attachment per request. |
Description
Paul Giordano
2002-08-24 16:22:09 UTC
For some reason, your patch fails to apply at all, although it appears fine by visual inspection. I suspect some whitespace issues. Could you upload it as an attachment ? Created attachment 3521 [details, diff]
Attachment per request.
With your patch applied, it segfaults when compiled with 2.95.3: Starting program: /usr/bin/colortail -k /tmp/fobozz /var/log/everything/current ==> /var/log/everything/current <== Sep 2 17:36:52 [sshd] Did not receive identification string from 192.168.1.197 Program received signal SIGSEGV, Segmentation fault. 0x4010f691 in free () from /lib/libc.so.6 (gdb) bt #0 0x4010f691 in free () from /lib/libc.so.6 #1 0x4004df87 in __builtin_delete () from /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/libstdc++-libc6.2-2.so.3 #2 0x0804e350 in TailFile::print_to_stdout (this=0x8057da0, str=0xbffff45c "Sep 2 17:36:52 [sshd] Did not receive identification string from 192.168.1.197\n") at TailFile.cc:584 #3 0x0804ddd4 in TailFile::print (this=0x8057da0, n=10) at TailFile.cc:134 #4 0x0804c69a in ColorTail::start (this=0x8057be0, argc=4, argv=0xbffffb84) at ColorTail.cc:198 #5 0x0804e6ac in main (argc=4, argv=0xbffffb84) at main.cc:41 #6 0x400b53c1 in __libc_start_main () from /lib/libc.so.6 Without your patch applied, it works with works with 2.95.3. However, with your patch applied, it appears to work nicely when compiled with 3.2. Do you know if there's any chance we can modify the patch so that it compiles and runs cleanly with both 2.95.3 and 3.2 ? Ebuild now only applies patch if compiled with compilers newer than 2.95.x. Available as app-misc/colortail-0.3.0-r3 |