assertion failure: g_once_init_leave: assertion `initialization_value != 0' failed

Bug #449378 reported by Laurent Bonnaud
126
This bug affects 25 people
Affects Status Importance Assigned to Milestone
PolicyKit
Fix Released
Medium
PolicyKit GNOME
Invalid
Undecided
Unassigned
policykit-1 (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Lucid by Laurent Bonnaud
policykit-1-gnome (Debian)
Fix Released
Unknown

Bug Description

Binary package hint: policykit-1-gnome

Each time I report a bug with ubuntu-bug, it extracts messages from my .xsession-errors file and among those is the following error message:

 (polkit-gnome-authentication-agent-1:3501): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

I am using KDE4 with some GNOME software if that matters.

In order to weed out noise in bug reports, could someone please fix this assertion ?

BTW, a critical assertion failure in a security sensitive piece of software is probably something that needs to be fixed anyway.

ProblemType: Bug
Architecture: i386
Date: Mon Oct 12 11:31:20 2009
DistroRelease: Ubuntu 9.10
Package: policykit-1-gnome 0.94-1+1git.230873 [modified: usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1]
ProcVersionSignature: Ubuntu 2.6.31-13.44-generic-pae
SourcePackage: policykit-1-gnome
Uname: Linux 2.6.31-13-generic-pae i686
XsessionErrors:
 (polkit-gnome-authentication-agent-1:3501): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (gnome-settings-daemon:3528): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed

Revision history for this message
In , Matthias Clasen (mclasen) wrote :

*** Bug 24175 has been marked as a duplicate of this bug. ***

Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

Binary package hint: policykit-1-gnome

Each time I report a bug with ubuntu-bug, it extracts messages from my .xsession-errors file and among those is the following error message:

 (polkit-gnome-authentication-agent-1:3501): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

I am using KDE4 with some GNOME software if that matters.

In order to weed out noise in bug reports, could someone please fix this assertion ?

BTW, a critical assertion failure in a security sensitive piece of software is probably something that needs to be fixed anyway.

ProblemType: Bug
Architecture: i386
Date: Mon Oct 12 11:31:20 2009
DistroRelease: Ubuntu 9.10
Package: policykit-1-gnome 0.94-1+1git.230873 [modified: usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1]
ProcVersionSignature: Ubuntu 2.6.31-13.44-generic-pae
SourcePackage: policykit-1-gnome
Uname: Linux 2.6.31-13-generic-pae i686
XsessionErrors:
 (polkit-gnome-authentication-agent-1:3501): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (gnome-settings-daemon:3528): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed

Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :
Revision history for this message
In , Zeuthen (zeuthen) wrote :

This is all generated code right? If so, it's an eggdbus bug...

Revision history for this message
Hernando Torque (htorque) wrote :

I see too, in combination with a warning:

$ ./polkit-gnome-authentication-agent-1

(polkit-gnome-authentication-agent-1:7814): GLib-GObject-WARNING **: cannot register existing type `_PolkitError'

(polkit-gnome-authentication-agent-1:7814): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

policykit-1-gnome:
  Installed: 0.96-2
  Candidate: 0.96-2
  Version table:
 *** 0.96-2 0
        500 http://archive.ubuntu.com lucid/main Packages
        100 /var/lib/dpkg/status

Revision history for this message
Hernando Torque (htorque) wrote :
Revision history for this message
Hernando Torque (htorque) wrote :
Revision history for this message
Hernando Torque (htorque) wrote :
Revision history for this message
Hernando Torque (htorque) wrote :
Changed in policykit-1-gnome (Ubuntu):
status: New → Confirmed
Revision history for this message
Bogdan Butnaru (bogdanb) wrote :

Note that I'm seeing the same in Lucid with a pure Gnome desktop.

Revision history for this message
Bogdan Butnaru (bogdanb) wrote :

In fact, I see two consecutive lines in ~/.xsession-errors:

(polkit-gnome-authentication-agent-1:3370): GLib-GObject-WARNING **: cannot register existing type `_PolkitError'

(polkit-gnome-authentication-agent-1:3370): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

Revision history for this message
dino99 (9d9) wrote :

here are the same warnings with Lucid32 B1 and gnome (nothing from kde)

Changed in policykit-1-gnome (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

This bug still exists in this version:

Package: policykit-1-gnome
Version: 0.96-2ubuntu2

in a pure GNOME system and libraries updated as of now.

Revision history for this message
Marco Cimmino (cimmo) wrote :

I have the same issue visiting www.pollycoke.org using Firefox 3.5.8 under Kubuntu Karmic 9.10 the crash is 100% reproducible.

Revision history for this message
Marco Cimmino (cimmo) wrote :

Sorry I wrote something that might be totally unrelated, was filing a bug with apport on a Firefox crash :(

Revision history for this message
tekstr1der (tekstr1der) wrote :

Seeing this on up-to-date lucid Beta 2 as well.

Revision history for this message
In , Sharmanchris2 (sharmanchris2) wrote :

Created an attachment (id=35379)
xsession error log

I see these messages on Ubuntu 10.04 Lucid Lynx final release.
I've just installed it, with a /home partition inherited from Ubuntu 9.10.

I also don't get a proper panel on boot/autologin:
I get a light grey bar top left, about the normal depth, 40% width, nothing on it.
To workaround, I right click where the panel ought to be, select properties, select the background tab, and click none, or solid colour. The panel then appears with applications, places, system etc.
Without this step I can do nothing.
I'm presuming it's related to these errors - can anyone confirm that, or should I be logging a separate bug?

Thanks
Chris

Revision history for this message
Chris Sharman (sharman-chris) wrote :

I see this on Lucid final release.
I also don't get a proper panel on boot/autologin:
I get a light grey bar top left, about the normal depth, 40% width, nothing on it.
To workaround, I right click where the panel ought to be, select properties, select the background tab, and click none, or solid colour. The panel then appears with applications, places, system etc.
Without this step I can do nothing.
I'm presuming it's related to these errors - can anyone confirm that, or should I be logging a separate bug?

Thanks
Chris

Revision history for this message
Gabe Gorelick (gabegorelick) wrote :

@Chris
You should file a separate bug report for your issues, as they are unrelated to these pretty harmless warnings.

Revision history for this message
Berni (jc4you) wrote :

Today I got this:

(polkit-gnome-authentication-agent-1:1249): GLib-GObject-WARNING **: cannot register existing type `_PolkitError'

(polkit-gnome-authentication-agent-1:1249): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
** Message: couldn't communicate with already running daemon: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
** Message: couldn't initialize running daemon

I guess this agent is initiated twice somewhere.

Revision history for this message
Berni (jc4you) wrote :
Revision history for this message
Gabe Gorelick (gabegorelick) wrote :

@Berni
The bug you are experiencing is bug 445303 and not this one. You get the g_once_init_leave warning because pretty much everyone gets it, but that is not related to any other issues you may experience.

Revision history for this message
Chris Sharman (sharman-chris) wrote :
Revision history for this message
Gabe Gorelick (gabegorelick) wrote :

Gnome bug #613230 is not the upstream bug for the original report.

Changed in policykit-1-gnome:
importance: Unknown → Undecided
status: Unknown → New
Revision history for this message
In , David Tombs (dgtombs) wrote :

Created an attachment (id=36368)
backtrace of CRITICAL message

Attaching backtraces from <https://bugs.launchpad.net/debian/+source/policykit-1-gnome/+bug/449378>. Hope it helps.

Revision history for this message
In , David Tombs (dgtombs) wrote :

Created an attachment (id=36369)
backtrace of WARNING message

Revision history for this message
David Tombs (dgtombs) wrote :

Thankfully our Debian friends have already analyzed this. Bug linked.

Revision history for this message
David Tombs (dgtombs) wrote :

This does not actually appear to be a bug in -gnome, it's a bug in polickykit-1. (See fd.o bug.)

Changed in policykit-1-gnome:
status: New → Invalid
Changed in policykit-1-gnome (Debian):
status: Unknown → Confirmed
Revision history for this message
In , Zeuthen (zeuthen) wrote :

With the port to gdbus, this is no longer a problem.

Changed in policykit-1:
importance: Unknown → Medium
status: Unknown → Fix Released
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

I also see this bug in maverick with KDE 4.5.2. My ~/.xsession-errors file contains this line:

(<unknown>:5265): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

and process 5265 is:

$ ps aux | grep 5265
bonnaud 5265 0.0 0.4 98628 19784 ? Sl 17:36 0:00 /usr/lib/kde4/libexec/polkit-kde-authentication-agent-1 -session 10dbdee967000127083187200000058120018_1287588980_249112

Revision history for this message
David Tombs (dgtombs) wrote :

Reassigning to policykit-1 per upstream bug. (Should have done this earlier.)

affects: policykit-1-gnome (Ubuntu) → policykit-1 (Ubuntu)
Changed in policykit-1-gnome (Debian):
status: Confirmed → Fix Released
Changed in policykit-1:
importance: Medium → Unknown
Changed in policykit-1:
importance: Unknown → Medium
Revision history for this message
Laurent Bonnaud (laurent-bonnaud) wrote :

I do not see this bug any longer with the KDE 4.6 backport in maverick.

Changed in policykit-1 (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
dinexi (im-dinexi) wrote :

In Maverick amd64 I see it again:

(polkit-gnome-authentication-agent-1:8733): GLib-GObject-WARNING **: cannot register existing type `_PolkitError'
(polkit-gnome-authentication-agent-1:8733): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

Revision history for this message
David Tombs (dgtombs) wrote :

dinexi: the fix is not released in Maverick. It will be in Natty. Thanks.

Revision history for this message
demilord (demilord) wrote :

Why dont you backport the polkit fixes to maverick.. its not a huge change as far as I can see..

Revision history for this message
David Tombs (dgtombs) wrote :
Revision history for this message
Mario Capurso (m-capurso) wrote :

This bug affects Lucid Lynx today with all updates received, and I think 10.04 LTS stands for LONG TERM SUPPORT.
Really I do not see support for 10.04 LTS. Bugs are corrected in new versions but not in LTS. Is is annoying.

Changed in policykit-1:
status: Fix Released → Confirmed
Changed in policykit-1:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.