GNOME Bugzilla – Bug 335148
gnome-system-log crashes when a log is moved
Last modified: 2007-07-23 14:05:35 UTC
That bug has been opened on https://launchpad.net/distros/ubuntu/+source/gnome-utils/+bug/35263 "version gnome-utils 2.14.0-0ubuntu1 gnome-system-log was running as background when it suddenly crashed /var/log/messages was open on log viewer. ... > Thanks for your bug. The backtrace has not useful information. Could you rebuild a debug package of gnome-utils (https://wiki.ubuntu.com/DebuggingProgramCrash) to get a proper one? Have you find a way to get the issue or did it happen only once? ... Sure, I'll try with debug build. I did actually get crash for the second time by deleting and touching a monitored log file. I'll see if I manage to do it again. ... Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1223969088 (LWP 27609)] 0x0804ecfc in logview_update_statusbar (logview=0x80d6018) at log_repaint.c:180 180 size = gnome_vfs_format_file_size_for_display (log->stats->file_size); (gdb) thread apply all bt
+ Trace 67057
Thread 1 (Thread -1223969088 (LWP 27609))
stacktrace was produced by * opening gnome-sytem-log * viewing file /var/log/messages (with monitoring enabled from menu) * renaming /var/log/messages to /var/log/messages.old"
still happening with 2.15.4
still crashing with 2.16.0
I haven't quite confirmed this bug, because I'm on a friend's computer. I looks solid though. It looks like putting something at monitor.c:59 like this would make it not crash: if (logview->curlog == log && event_type != GNOME_VFS_MONITOR_EVENT_DELETED) That's just bold the log, and not try to update the status bar with file stats that don't exist. I initially though just closing the log would be good, but do you really want to stop the display if the file has been deleted?
the bug submitter states it didn't happen for some time, closing for now