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 153673 - doesn't handle dbus restarts
doesn't handle dbus restarts
Status: RESOLVED WONTFIX
Product: gnome-volume-manager
Classification: Deprecated
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Robert Love
Robert Love
Depends on:
Blocks:
 
 
Reported: 2004-09-24 20:58 UTC by Sebastien Bacher
Modified: 2008-06-11 14:47 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
reconnect to dbus after dbus restart (3.80 KB, patch)
2004-10-18 09:16 UTC, Martin Pitt
none Details | Review
new version of the patch used in the debian/ubuntu packages (4.33 KB, patch)
2004-12-11 00:18 UTC, Sebastien Bacher
none Details | Review

Description Sebastien Bacher 2004-09-24 20:58:20 UTC
apparently gnome-volume-manager doesn't handle dbus restarts. That's a problem
for the distribution because it stops working when dbus is updated.
Comment 1 Robert Love 2004-10-12 16:40:45 UTC
Agreed.  Need to fix this.
Comment 2 Martin Pitt 2004-10-18 09:16:34 UTC
Created attachment 32718 [details] [review]
reconnect to dbus after dbus restart

This is the patch we use in Ubuntu; it works great with hal 0.2.98 (plus some
CVS patches) and g-v-m 1.0.2. However, I heard that it segfaults with hal CVS
HEAD, so YMMV.
Comment 3 Sebastien Bacher 2004-12-11 00:18:27 UTC
Created attachment 34721 [details] [review]
new version of the patch used in the debian/ubuntu packages
Comment 4 Robert Love 2005-02-01 05:43:05 UTC
Does this also segfault or does it work?  If it works, we can apply it.
Comment 5 Sebastien Bacher 2005-02-01 10:13:54 UTC
we use it in the debian/ubuntu packages for month and that work fine
Comment 6 Luis Villa 2005-02-28 14:38:18 UTC
Then lets get it in :) Robert?
Comment 7 Robert Love 2005-02-28 15:46:07 UTC
That other bug, now closed, which was a showstopped was believed to be caused by
this...
Comment 8 Luis Villa 2005-02-28 15:55:56 UTC
Oh, caused by this patch, you mean? Ah... I'll shut my yap then :)
Comment 9 Jeffrey Stedfast 2005-07-18 18:47:06 UTC
I'm tempted to just close this...
Comment 10 Sebastien Bacher 2005-07-18 19:11:00 UTC
because crashing on dbus restarting is not a bug?
Comment 11 Jeffrey Stedfast 2005-08-03 18:40:25 UTC
what crash? there is no crash in CVS if dbus gets shut down or restarted.

g-v-m shuts down cleanly when that happens... that's all it can do.
Comment 12 Jeffrey Stedfast 2005-08-03 18:52:25 UTC

*** This bug has been marked as a duplicate of 170894 ***
Comment 13 Sebastien Bacher 2005-08-03 19:02:54 UTC
I disagree with that. Some users update dbus, keep working, notice g-c-m magic
doesn't happen and fill bugs. Some other restart the session and store is for a
random session and from then g-v-m is not listed by the session and GNOME
doesn't work as expected. How do you want them to know that updating dbus will
stop g-v-m?
It should handle dbus restart (the Debian/Ubuntu patch for this works fine now).
If you don't agree you that you could open a dialog saying that g-v-m needs to
be restarted. 
Comment 14 Jeffrey Stedfast 2005-08-03 19:09:19 UTC
then don't stop/restart dbus when it gets upgraded. you're not supposed to be
doing that anyway.

*** This bug has been marked as a duplicate of 170894 ***
Comment 15 Sebastien Bacher 2005-08-03 19:24:21 UTC
You may agree or not on the bug but this is not a duplicate. The other bug is
about a crasher due to a distribution patch, this one is a feature request.
Comment 16 Jeffrey Stedfast 2005-08-03 19:29:04 UTC
ok, fine...
Comment 17 Sebastien Bacher 2005-08-03 19:31:52 UTC
So you will keep refusing patches for this. Thanks for carring about users and
other distributions around
Comment 18 Robert Love 2005-08-03 19:36:11 UTC
That is totally the wrong attitude.

And just wrong, anyhow, as  Red Hat takes the same position as us on this: Treat
DBUS upgrades as major system events.

Also, this patch has been the cause of a HUGE number of bug reports.  There is
no crash without it.  There are reports of a crash with it.

It is nontrivial and imperfect to catch DBUS restarts.
Comment 19 Sebastien Bacher 2005-08-03 21:52:54 UTC
Redhat does the same, and Debian/Ubuntu restart services on update on purpose
... every distribution has its reasons, that's not really a point to discuss here.

We are sorry for the number of bugs but you didn't pinged any distribution guy
about it nor you commented on the patches which was staying on bugzilla for
month. Note that the patche has been updated on bugzilla with a fixed version. 

Maybe detecting dbus restarts is tricky but displaying a dialog before existing
should not be a big deal. That would not make any difference for distributions
which don't restart dbus and warn users on what happen for people who do.
Comment 20 John Levon 2008-06-08 21:26:27 UTC
I would like to add another perspective here. There are certain operating
systems such as Solaris that have significant support for withstanding
service interruptions and continuing running. As an example, the system is capable
of receiving certain hardware errors, correctly restarting the software services affected by this error, and logging a detailed explanation of what happened.

From this perspective it's always unacceptable that a long-running service can't be successfully restarted. And yes, this even applies to GUIs. It has nothing to do with updates.

As systems get larger and the need for fault tolerance and resilience grows more and more relevant, handling restarts becomes more and more important.

I understand that it might be difficult to do, but this is certainly not an invalid request.