gnome-system-log assert failure: gnome-system-log:ERROR:logview-log.c:910:logview_log_get_uri: assertion failed: (LOGVIEW_IS_LOG (log))

Bug #486380 reported by Daniel Hermansson
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnome-utils
New
Critical
gnome-utils (Ubuntu)
Triaged
Medium
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gnome-utils

to reproduce crash:
close all files in gnome-system-log fast one by one

ProblemType: Crash
Architecture: amd64
AssertionMessage: gnome-system-log:ERROR:logview-log.c:910:logview_log_get_uri: assertion failed: (LOGVIEW_IS_LOG (log))
CrashCounter: 1
Date: Sat Nov 21 18:23:10 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/gnome-system-log
Package: gnome-utils 2.28.1-0ubuntu1
ProcCmdline: gnome-system-log --sync
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=sv_SE.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-15.50-generic
Signal: 6
SourcePackage: gnome-utils
StacktraceTop:
 *__GI_raise (sig=<value optimized out>)
 *__GI_abort () at abort.c:92
 g_assertion_message () from /lib/libglib-2.0.so.0
 g_assertion_message_expr ()
 ?? ()
Title: gnome-system-log assert failure: gnome-system-log:ERROR:logview-log.c:910:logview_log_get_uri: assertion failed: (LOGVIEW_IS_LOG (log))
Uname: Linux 2.6.31-15-generic x86_64
UserGroups: adm admin audio cdrom dialout dip fax floppy fuse kvm libvirtd lpadmin netdev plugdev sambashare scanner tape vboxusers video

Revision history for this message
Daniel Hermansson (daniel.h) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt (retraced)

StacktraceTop:*__GI_raise (sig=<value optimized out>)
*__GI_abort () at abort.c:92
g_assertion_message () from /lib/libglib-2.0.so.0
g_assertion_message_expr ()
logview_log_get_uri (log=0x7f96880012c0)

Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt (retraced)
Changed in gnome-utils (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thank you for your bug report. This bug has been reported to the developers of the software. You can track it and make comments at:
 https://bugzilla.gnome.org/show_bug.cgi?id=604294

visibility: private → public
Changed in gnome-utils (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
status: New → Triaged
Changed in gnome-utils:
importance: Unknown → Critical
status: Unknown → New
Revision history for this message
Artem Kuskis (artem-kuskis) wrote :

This bug stay in Centos 6.4 and Ubuntu 12.10 ... found this bug yesterday, fix it on my home pc, and today found that Cosimo Cecchi did it in April but current versions of gnome-system-log are old.

Bug: When you press Ctrl+W and there is no log file selected in the right list widget...

Patch info : https://git.gnome.org/browse/gnome-system-log/commit/src/logview-manager.c?id=ad9153b8bcd8a2556d7a1f5fcca890680c4677de

Patch file:

From ad9153b8bcd8a2556d7a1f5fcca890680c4677de Mon Sep 17 00:00:00 2001
From: Cosimo Cecchi <email address hidden>
Date: Thu, 11 Apr 2013 21:25:20 +0000
Subject: manager: add some safety NULL-checks

https://bugzilla.gnome.org/show_bug.cgi?id=697790
---
(limited to 'src/logview-manager.c')

diff --git a/src/logview-manager.c b/src/logview-manager.c
index 29dcba9..b948bfa 100644
--- a/src/logview-manager.c
+++ b/src/logview-manager.c
@@ -398,6 +398,10 @@ logview_manager_close_active_log (LogviewManager *manager)
   g_assert (LOGVIEW_IS_MANAGER (manager));

   active_log = manager->priv->active_log;
+ if (active_log == NULL) {
+ return;
+ }
+
   log_uri = logview_log_get_uri (active_log);
   file = logview_log_get_gfile (active_log);

--
cgit v0.9.2

Revision history for this message
Artem Kuskis (artem-kuskis) wrote :

PS: not right.. left widget with file names

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.