nih-dbus-tool: dbus_connection_send_with_reply() returns NULL pending_call even when returning TRUE if connection is not connected

Bug #477116 reported by James Michael DuPont
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
libnih
Fix Released
Medium
Unassigned
mountall (Ubuntu)
Fix Released
Medium
Scott James Remnant (Canonical)
Nominated for Karmic by Daltronic Piemonade

Bug Description

Binary package hint: mountall

Running mountall produces this output, it never stops.

This is normally a bug in some application using the D-Bus library.
process 12925: arguments to dbus_pending_call_set_notify() were incorrect, assertion "pending != NULL" failed in file dbus-pending-call.c line 596.

Description: Ubuntu 9.10
Release: 9.10
mountall:
  Installed: 1.0
  Candidate: 1.0
  Version table:
 *** 1.0 0
        500 http://de.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

ProblemType: Bug
Architecture: i386
Date: Sat Nov 7 03:34:23 2009
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu-Netbook-Remix 9.10 "Karmic Koala" - Release i386 (20091028.4)
NonfreeKernelModules: nvidia
Package: mountall 1.0
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: mountall
Tags: ubuntu-unr
Uname: Linux 2.6.31-14-generic i686

Revision history for this message
James Michael DuPont (jamesmikedupont) wrote :
Changed in mountall (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
redguy (mateusz-kijowski) wrote :

Any workarounds available? I currently cannot boot Ubuntu due to this bug...

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

There's no workaround, because the cause of this bug is unknown.

It implies that dbus_connection_send_with_reply returns TRUE, but doesn't set the pending call

Revision history for this message
Bjørn Johansen (bjornlljohansen) wrote :

Me too, i just rebooted and cannot get into ubuntu again

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Oh, I see, it's a weirdism of dbus; it'll return TRUE but sending pending_call to NULL if the connection isn't actually connected

Changed in mountall (Ubuntu):
status: Confirmed → Triaged
summary: - Running mountall produces this output, it never stops.
- dbus_pending_call_set_notify
+ nih-dbus-tool: dbus_connection_send_with_reply() returns NULL
+ pending_call even when returning TRUE if connection is not connected
Changed in libnih:
status: New → Triaged
importance: Undecided → Medium
Changed in libnih:
status: Triaged → Fix Committed
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Fixed in libnih 1.0.0, note that this fix will still need to be merged into software using libnih or the software updated to dynamically link to libnih instead.

Changed in libnih:
status: Fix Committed → Fix Released
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

mountall 1.1 used the fixed libnih

mountall (1.1) lucid; urgency=low

  * Update to use external libnih.
  * Updated autoconf details at same time to match libnih.
  * rcS is a job, not an event. LP: #456806.

 -- Scott James Remnant <email address hidden> Sun, 29 Nov 2009 20:16:10 +0000

Changed in mountall (Ubuntu):
status: Triaged → Fix Released
assignee: nobody → Scott James Remnant (scott)
Revision history for this message
Nicolas Delvaux (malizor) wrote :

This bug may be fix on Lucid, but it is not on Karmic.

A friend of mine is encountering this issue.
What can I suggest to him? To reinstall?

We tried to update mountall to the Lucid version but it turned out that there is too many missing dependencies.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote : Re: [Bug 477116] Re: nih-dbus-tool: dbus_connection_send_with_reply() returns NULL pending_call even when returning TRUE if connection is not connected

On Thu, 2010-03-11 at 13:58 +0000, Nicolas Delvaux wrote:

> This bug may be fix on Lucid, but it is not on Karmic.
>
> A friend of mine is encountering this issue.
> What can I suggest to him? To reinstall?
>
He could always update to the Lucid Beta 1 when it's out next week; if
it's a desktop machine, that's probably as stable as Karmic

Scott
--
Have you ever, ever felt like this?
Had strange things happen? Are you going round the twist?

Revision history for this message
Nicolas Delvaux (malizor) wrote :

This is not exactly the fix that I expected... I'm also running Lucid on a laptop and, at least for now, it breaks regularly on upgrades.

The best would be to backport the fix to Karmic or to find another workaround.

Karmic is still maintained for more than a year.
I mean, even if this bug happen rarely, the fact that there is no fix but a reinstall is unacceptable.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

On Thu, 2010-03-11 at 20:05 +0000, Nicolas Delvaux wrote:

> Karmic is still maintained for more than a year.
> I mean, even if this bug happen rarely, the fact that there is no fix but a reinstall is unacceptable.
>
You're quite welcome to apply for an SRU via the usual procedure.

Scott
--
Have you ever, ever felt like this?
Had strange things happen? Are you going round the twist?

Revision history for this message
Nicolas Delvaux (malizor) wrote :

The fact is that we finally succeeded in installing Lucid packages (mountall 1.1 and its dependencies: libnih1 and libnih-dbus1 1.01-1).

Indeed, the "infinite error loop" is gone but we now run into an "unable to mount root file system". Ok, so we now have basic command line access without "live-cd + chroot" but nothing more...

This new error makes me think that a simple backport may not be sufficient (perhaps some architecture changes between Karmic and Lucid?)

I must admit that this is beyond my knowledge. Anyway the computer will be reinstalled soon (it is needed to work).
I just hope that this (random) bug is as rare as it seems...

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

On Thu, 2010-03-11 at 21:36 +0000, Nicolas Delvaux wrote:

> This new error makes me think that a simple backport may not be
> sufficient (perhaps some architecture changes between Karmic and Lucid?)
>
A near-rewrite (again) of this part of the boot system; it's why it's
hard to backport this kind of change.

Scott
--
Have you ever, ever felt like this?
Had strange things happen? Are you going round the twist?

Revision history for this message
Allan Anderson (rubel) wrote :

Ironically, I get booted out of the "sudo do-release-upgrade --devel-release" process when trying to upgrade a Server install. 'mountall' produces that lovely error.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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