Bug 168023 - gnome-system-log crash upon exit
Summary: gnome-system-log crash upon exit
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-utils
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Ray Strode [halfline]
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-09-11 01:13 UTC by Luke Macken
Modified: 2016-09-20 02:36 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-09-20 15:25:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Patch to fix gnome-system-log crash when no logs are open (by short-circuiting one of the conditionals) (437 bytes, patch)
2005-09-11 01:13 UTC, Luke Macken
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 316738 0 None None None Never

Description Luke Macken 2005-09-11 01:13:25 UTC
Description of problem:
When opening the gnome-system-log as an unprivileged user (which is by default,
since it doesn't prompt for a superuser password), no logfiles are opened. 
Closing the gnome-system-log application with no log files open will then cause
a crash.

gdb provides me with this info:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1209120224 (LWP 8792)]
0x08054c99 in destroy (object=0x9a91df8, data=0x9a91df8) at logview.c:221
221        if (window->curlog->monitored)

A patch to fix this issue is attached.

Version-Release number of selected component (if applicable):
gnome-utils-2.12.0-1 (issue in CVS as well)

How reproducible:
Always


Steps to Reproduce:
1. Open System Tools->System Log as a regular user
2. Close the application
  
Actual results:
Segfault.

Expected results:
Exit quietly.

Additional info:
This issue could also be resolved by prompting the user for the root password
before opening the program, which will launch it with a bunch of logfiles open,
thus alleviating the problem.

Comment 1 Luke Macken 2005-09-11 01:13:25 UTC
Created attachment 118683 [details]
Patch to fix gnome-system-log crash when no logs are open (by short-circuiting one of the conditionals)

Comment 2 Luke Macken 2005-09-20 15:25:57 UTC
----------------------------
revision 1.139
date: 2005/09/20 14:17:41;  author: vnoel;  state: Exp;  lines: +1 -1
2005-09-20  Vincent Noel  <vnoel>

        * logview.c: Fix a crash when exiting without any log opened.
        Fix bug #316738. Patch from Luke Macken.
----------------------------


Note You need to log in before you can comment on or make changes to this bug.