Ticket #3032 (closed defect: fixed)

Opened 21 months ago

Last modified 15 months ago

Gajim shuts down/crashes after Dbus restart

Reported by: jumijoze Owned by: asterix
Priority: high Milestone: 0.11.2
Component: None Version: 0.11.1
Severity: major Keywords: crash d-bus dbus
Cc: OS: All

Description

Gajim on Gentoo Linux behaves strangely since version 0.11.0.7951 and 0.11.1 by crashing completely without any warning. The verbose debug messages don't seem to show any helpful information:

DEBUG: socket       got   <presence type='unavailable' to='jumijoze@jabber.***.de' from='9607***@icq.jabber.***.de'/>
DEBUG: dispatcher   ok    Got jabber:client/presence stanza
DEBUG: dispatcher   ok    Dispatching presence stanza with type->unavailable props->[] id->None
10 Mär 2007 00:59:12 Gajim: PresenceCB: unavailable
Playing WAVE '../data/sounds/disconnected.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
DEBUG: socket       got   <presence to='jumijoze@jabber.teamidiot.de' from='2868***@icq.jabber.***.de'/>
DEBUG: dispatcher   ok    Got jabber:client/presence stanza
DEBUG: dispatcher   ok    Dispatching presence stanza with type-> props->[] id->None
10 Mär 2007 01:04:29 Gajim: PresenceCB: None
DEBUG: roster       ok    Setting roster item 286***@icq.jabber.***.de for resource ...
DEBUG: socket       got   <presence to='jumijoze@jabber.***.de' from='286***@icq.jabber.***.de'>
  <show>away</show>
  </presence>
DEBUG: dispatcher   ok    Got jabber:client/presence stanza
DEBUG: dispatcher   ok    Dispatching presence stanza with type-> props->[u'jabber:client'] id->None
10 Mär 2007 01:16:39 Gajim: PresenceCB: None
DEBUG: roster       ok    Setting roster item 2868***@icq.jabber.***.de for resource ...
jumijoze@joze-O-mat ~ $

Attachments

gajim-strace (15.9 kB) - added by jumijoze 21 months ago.
Strace of gajim crash after stopping d-bus init script

Change History

Changed 21 months ago by anonymous

  • component changed from chat to None

Changed 21 months ago by anonymous

  • severity changed from normal to critical

Changed 21 months ago by misc

Can you try to obtain a gdb backtrace, or maybe running it under strace to see what is causing the problem exactly ?

Do you see something in the log about dbus, as i have mostly seen this type of silent crash when dbus is restarted ?

Changed 21 months ago by jumijoze

Strace of gajim crash after stopping d-bus init script

Changed 21 months ago by jumijoze

  • keywords d-bus dbus added

You hit the bull's eye misc, it _was_ just D-Bus restarting, which caused the crash :)

After unplugging my AC-adapter plug of my notebook, I recognized that this caused the Gajim crash.

I use a "battery" runlevel for powermanagement and forgot to add HAL daemon and D-Bus to add to this runlevel, so D-Bus was stopping everytime I unplugged the AC-plug and caused to switch to the battery runlevel, which stopped also D-Bus. After adding HALd and D-Bus to the new runlevel, everything works fine.

I uploaded a strace of Gajim crashing, right after D-Bus was deactivated.

Changed 21 months ago by asterix

  • keywords gentoo random removed
  • severity changed from critical to major
  • milestone changed from 0.11.1 to 0.12

dbus is not supposed to be restarted. but I agree that we should not crash as we don't require DBUS to run Gajim.

Changed 18 months ago by asterix

  • os set to All
  • summary changed from Gajim randomly shuts down/crashes after many hours to Gajim shuts down/crashes after Dbus restart

Changed 18 months ago by asterix

The problem only appear when network manager option is enable (even if network manager is not present) It's the only code that access to the session bus. I sent a mail to simon mcvittie who already helped us with dbus python binding.

If you set the networkmanager_support option to False you won't have this problem anymore

commenting

bus = system_bus.SystemBus()

(and followings) in src/network_manager_listener.py also fixes the problem.

Changed 18 months ago by asterix

  • status changed from new to closed
  • resolution set to fixed

(In [8307]) don't stop Gajim when dbus is stopped. Fixes #3032

Changed 15 months ago by roidelapluie

(In [8589]) Don't stop Gajim when dbus is stopped. Fix #3032.

Changed 15 months ago by roidelapluie

  • milestone changed from 0.12 to 0.11.2

Add/Change #3032 (Gajim shuts down/crashes after Dbus restart)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.