After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 327614 - [PATCH] gnome-system-log crashes on startup
[PATCH] gnome-system-log crashes on startup
Status: RESOLVED FIXED
Product: gnome-utils
Classification: Deprecated
Component: logview
2.13.x
Other All
: Normal critical
: ---
Assigned To: gnome-utils Maintainers
gnome-utils Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-01-18 23:16 UTC by Joe Marcus Clarke
Modified: 2006-01-19 13:09 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Fix abort crash on startup (285 bytes, patch)
2006-01-18 23:16 UTC, Joe Marcus Clarke
accepted-commit_now Details | Review

Description Joe Marcus Clarke 2006-01-18 23:16:16 UTC
Steps to reproduce:
1. Start gnome-system-log
2. Witness crash
3. 


Stack trace:
GConf-CRITICAL **: gconf_client_get_list: assertion `err == NULL || *err ==
NULL' failed
aborting...

Program received signal SIGTRAP, Trace/breakpoint trap.

Thread 167786800 (LWP 100254)

  • #0 IA__g_logv
    at gmessages.c line 503
  • #1 IA__g_log
    at gmessages.c line 517
  • #2 IA__g_return_if_fail_warning
    at gmessages.c line 532
  • #3 gconf_client_get_list
    at gconf-client.c line 1587
  • #4 prefs_init
    at userprefs.c line 134
  • #5 main
    at main.c line 118


Other information:
The attached patch solves the problem by setting the GError* err to NULL.
Comment 1 Joe Marcus Clarke 2006-01-18 23:16:50 UTC
Created attachment 57624 [details] [review]
Fix abort crash on startup
Comment 2 Vincent Noel 2006-01-19 10:00:53 UTC
Please commit.
Comment 3 Emmanuele Bassi (:ebassi) 2006-01-19 13:09:41 UTC
fixed in HEAD.

2006-01-19  Emmanuele Bassi  <ebassi@cvs.gnome.org>

	* userprefs.c (prefs_load): Initialize GError before using it (fix
	bug #327614).  Plus, clean up the code.