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 326785 - Assertion failure when starting a second shell with NetworkManager support configured
Assertion failure when starting a second shell with NetworkManager support co...
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Shell
2.6.x (obsolete)
Other Linux
: Normal major
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
: 326696 329574 329619 329755 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-01-13 03:57 UTC by Dave Malcolm
Modified: 2013-09-13 00:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Only init the nm dbus connection once (997 bytes, patch)
2006-01-13 04:56 UTC, Dave Malcolm
none Details | Review

Description Dave Malcolm 2006-01-13 03:57:35 UTC
If evolution is already running, and I start a 2nd instance of evolution, the 1st instance of evolution quits with an assertion failure in the NetworkManager code (the 2nd instance gets the 1st instance to activate a new shell, and the assertion fires there).

The assertion failure is:
** ERROR **: file dbus-gmain.c: line 265 (connection_setup_add_watch): assertion failed: (dbus_watch_get_data (watch) == NULL)
aborting...

Program received signal SIGTRAP, Trace/breakpoint trap.

  • #0 g_logv
    from /usr/lib/libglib-2.0.so.0
  • #1 g_log
    from /usr/lib/libglib-2.0.so.0
  • #2 g_assert_warning
    from /usr/lib/libglib-2.0.so.0
  • #3 dbus_g_connection_flush
    from /usr/lib/libdbus-glib-1.so.2
  • #4 dbus_g_connection_flush
    from /usr/lib/libdbus-glib-1.so.2
  • #5 dbus_connection_setup_with_g_main
    from /usr/lib/libdbus-glib-1.so.2
  • #6 libnm_glib_shutdown
    from /usr/lib/libnm_glib.so.0
  • #7 libnm_glib_init
    from /usr/lib/libnm_glib.so.0
  • #8 e_shell_nm_glib_initialise
    at e-shell-nm-glib.c line 65
  • #9 e_shell_window_new
    at e-shell-window.c line 589
  • #10 e_shell_create_window
    at e-shell.c line 937
  • #11 impl_Shell_createNewWindow
    at e-shell.c line 239
  • #12 _ORBIT_skel_small_GNOME_Evolution_Shell_createNewWindow
    at Evolution-common.c line 32
  • #13 IOP_start_profiles
    from /usr/lib/libORBit-2.so.0
  • #14 ORBit_OAObject_invoke
    from /usr/lib/libORBit-2.so.0
  • #15 ORBit_small_invoke_adaptor
    from /usr/lib/libORBit-2.so.0
  • #16 ORBit_recv_buffer_return_sys_exception
    from /usr/lib/libORBit-2.so.0
  • #17 ORBit_recv_buffer_return_sys_exception
    from /usr/lib/libORBit-2.so.0
  • #18 giop_thread_queue_process
    from /usr/lib/libORBit-2.so.0
  • #19 giop_init
    from /usr/lib/libORBit-2.so.0
  • #20 link_io_add_watch_fd
    from /usr/lib/libORBit-2.so.0
  • #21 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #22 g_main_context_check
    from /usr/lib/libglib-2.0.so.0
  • #23 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #24 bonobo_main
    from /usr/lib/libbonobo-2.so.0
  • #25 main
    at main.c line 606
  • #26 __libc_start_main
    from /lib/libc.so.6
  • #27 _start

This is on Fedora with development packages ("rawhide"):
evolution-2.5.4-7
dbus-glib-0.60-3
NetworkManager-glib-0.5.1-5.1
Comment 1 Dave Malcolm 2006-01-13 03:59:55 UTC
*** Bug 326696 has been marked as a duplicate of this bug. ***
Comment 2 Dave Malcolm 2006-01-13 04:56:29 UTC
Created attachment 57261 [details] [review]
Only init the nm dbus connection once 

Does this need to be made threadsafe?  I believe it only ever gets called from the main GUI thread.
Comment 3 Srinivasa Ragavan 2006-02-05 04:38:12 UTC
Dave, looks fine to commit.
Comment 4 Shreyas Srinivasan 2006-02-05 04:41:12 UTC
Committed on behalf of Dave. Since it gets called from the gui thread only there is no need to make it thread safe. 
Comment 5 Shreyas Srinivasan 2006-02-05 04:43:26 UTC
fixed. Thanks for the patch. 
Comment 6 Shreyas Srinivasan 2006-02-05 04:51:41 UTC
*** Bug 329574 has been marked as a duplicate of this bug. ***
Comment 7 Shreyas Srinivasan 2006-02-05 04:53:15 UTC
*** Bug 329755 has been marked as a duplicate of this bug. ***
Comment 8 Shreyas Srinivasan 2006-02-05 04:56:26 UTC
*** Bug 329619 has been marked as a duplicate of this bug. ***