|
I'm getting segfaults with the latest version (first version I've
really tried). [root@www multitail-3.2.0]# uname -a Linux www.prince.org 2.4.20-28.7 #1 Thu Dec 18 11:31:59 EST 2003 i686 unknown [root@www multitail-3.2.0]# cat /etc/redhat-release Red Hat Linux release 7.3 (Valhalla) [root@www multitail-3.2.0]# glib-config --version 1.2.10 When I run: ./multitail /var/log/qmail/qmail-send/current /var/log/qmail/qmail-smtpd/current I get: (clear screen, halfway down:) I tried compiling with debug, and getting a core file... [root@www multitail-3.2.0]# gdb ./multitail core.30428 GNU gdb Red Hat Linux (5.2-2) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux"... Core was generated by `./multitail /var/log/qmail/qmail-send/current /var/log/qmail/qmail-smtpd/curren'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/lib/libncurses.so.5...done. Loaded symbols for /usr/lib/libncurses.so.5 Reading symbols from /lib/libutil.so.1...done. Loaded symbols for /lib/libutil.so.1 Reading symbols from /lib/i686/libm.so.6...done. Loaded symbols for /lib/i686/libm.so.6 Reading symbols from /lib/i686/libc.so.6...done. Loaded symbols for /lib/i686/libc.so.6 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 #0 0x4207acfd in free () from /lib/i686/libc.so.6 (gdb) bt #0 0x4207acfd in free () from /lib/i686/libc.so.6 #1 0x08052d72 in draw_gui_window_header (last_changed_window=0x8084778) at mt.c:3670 #2 0x080553dd in main (argc=3, argv=0xbfffe924) at mt.c:4712 #3 0x42017589 in __libc_start_main () from /lib/i686/libc.so.6 (gdb) l mt.c:3670 3665 new_str = replace_string(in, pos, pos + 1, repl_str); 3666 free(in); 3667 in = new_str; 3668 str_len = strlen(in); 3669 pos += strlen(repl_str); 3670 free(repl_str); 3671 } 3672 else 3673 { 3674 pos += 2; Kinda stuck. Seems like it's freeing repl_str, which should definitely still be valid, as it's inside the if (repl_str) block... unless replace_string can invalidate it as well. Just in case file perms on the target files were problems (I'm doing this as root... probably not...): [root@www multitail-3.2.0]# ls -l /var/log/qmail/qmail-send/current /var/log/qmail/qmail-smtpd/current -rw-r--r-- 1 qmaill nofiles 91570 May 19 11:13 /var/log/qmail/qmail-send/current -rw-r--r-- 1 qmaill nofiles 44054 May 19 11:13 /var/log/qmail/qmail-smtpd/current Any ideas? -Ben Folkert van Heusden wrote: Hi, I've released version 3.2.0. That version is the same as development version 3.1.93. This version has been running on my systems for quiet a while without any problems so I've decided to release it as a stable release. Folkert van Heusden +--------------------------------------------------------------------------+ | UNIX sysop? Then give MultiTail ( http://www.vanheusden.com/multitail/ ) | | a try, it brings monitoring logfiles (and such) to a different level! | +---------------------------------------------------= www.vanheusden.com =-+ -------------------------------------------------------------------------------------- This message was sent through the MultiTail mailinglist (www.vanheusden.com/multitail) -- Ben Margolin -- ben@prince.org prince.org: "the Independent and Unofficial Prince Fan Community Site" |