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 405646 - crash in Evolution: Exited Evolution. Hadn't...
crash in Evolution: Exited Evolution. Hadn't...
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: API
0.6.6
Other All
: High critical
: ---
Assigned To: Dan Williams
Dan Williams
: 419885 424026 432796 447125 449174 449659 450544 452304 454498 455158 457830 459958 461644 464531 465528 467771 470472 473508 475393 478992 484452 485200 485883 485924 486400 488224 488530 489697 490285 491634 493393 493400 493852 495353 495760 496338 497514 498731 499079 499143 499236 499310 502134 502838 503830 503994 515333 517187 518335 521474 521852 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2007-02-08 06:56 UTC by Simon Geard
Modified: 2008-03-20 18:11 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
close the connection before unrefering it (405 bytes, patch)
2007-03-09 01:10 UTC, Claudio Saavedra
none Details | Review
Revised patch (746 bytes, patch)
2007-03-25 01:56 UTC, Matthew Barnes
committed Details | Review

Description Simon Geard 2007-02-08 06:56:35 UTC
What were you doing when the application crashed?
Exited Evolution. Hadn't done anything more than start it, check a POP account, and quit.


Distribution: Unknown
Gnome Release: 2.16.3 2007-01-31 (GNOME.Org)
BugBuddy Version: 2.16.1

System: Linux 2.6.20 #2 PREEMPT Wed Feb 7 20:05:35 NZDT 2007 i686
X Vendor: The X.Org Foundation
X Vendor Release: 70199903
Selinux: No
Accessibility: Disabled

Memory status: size: 90718208 vsize: 0 resident: 90718208 share: 0 rss: 24891392 rss_rlim: 0
CPU usage: start_time: 1170917730 rtime: 0 utime: 160 stime: 0 cutime:148 cstime: 0 timeout: 12 it_real_value: 0 frequency: 0

Backtrace was generated from '/usr/bin/evolution-2.8'

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1232496960 (LWP 3321)]
[New Thread -1274025072 (LWP 3335)]
[Thread debugging using libthread_db enabled]
[New Thread -1232496960 (LWP 3321)]
[New Thread -1274025072 (LWP 3335)]
[Thread debugging using libthread_db enabled]
[New Thread -1232496960 (LWP 3321)]
[New Thread -1274025072 (LWP 3335)]
[New Thread -1254880368 (LWP 3334)]
[New Thread -1263744112 (LWP 3332)]
[New Thread -1238058096 (LWP 3328)]
0xffffe410 in ?? ()

Thread 1 (Thread -1232496960 (LWP 3321))

  • #0 ??
  • #1 ??
  • #2 ??
  • #3 ??
  • #4 __waitpid_nocancel
    from /lib/libpthread.so.0
  • #5 libgnomeui_segv_handle
    from /usr/lib/libgnomeui-2.so.0
  • #6 <signal handler called>
  • #7 ??
  • #8 ??
  • #9 ??
  • #10 ??
  • #11 raise
    from /lib/libc.so.6
  • #12 abort
    from /lib/libc.so.6
  • #13 _dbus_abort
    from /usr/lib/libdbus-1.so.3
  • #14 _dbus_warn_check_failed
    from /usr/lib/libdbus-1.so.3
  • #15 dbus_connection_unref
    from /usr/lib/libdbus-1.so.3
  • #16 libnm_glib_ctx_free
    from /usr/lib/libnm_glib.so.0
  • #17 e_shell_nm_glib_dispose
  • #18 impl_dispose
  • #19 g_object_run_dispose
    from /usr/lib/libgobject-2.0.so.0
  • #20 gtk_object_destroy
    from /usr/lib/libgtk-x11-2.0.so.0
  • #21 gtk_widget_destroy
    from /usr/lib/libgtk-x11-2.0.so.0
  • #22 e_shell_close_all_windows
  • #23 es_run_quit
  • #24 g_timeout_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #25 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #26 g_main_context_iterate
    from /usr/lib/libglib-2.0.so.0
  • #27 g_main_loop_run
    from /usr/lib/libglib-2.0.so.0
  • #28 bonobo_main
    from /usr/lib/libbonobo-2.so.0
  • #29 main
  • #0 ??


----------- .xsession-errors ---------------------
** (evolution-2.8:3321): DEBUG: mailto URL command: evolution %s
** (evolution-2.8:3321): DEBUG: mailto URL program: evolution
(evolution-2.8:3321): e-utils-WARNING **: can't load plugin '/usr/lib/evolution/2.8/plugins/liborg-gnome-groupwise-features.so: undefined symbol: _'
process 3321: The last reference on a connection was dropped without closing the connection. This is a bug in an application. See dbus_connection_unref() documentation for details.
Most likely, the application was supposed to call dbus_connection_close(), since this is a private connection.
  D-Bus not built with -rdynamic so unable to print a backtrace
** (bug-buddy:3340): WARNING **: Couldn't load icon for Bonobo Component Browser
** (bug-buddy:3340): WARNING **: Couldn't load icon for F-Spot Photo Manager
** (bug-buddy:3340): WARNING **: Couldn't load icon for F-Spot Photo Viewer
** (bug-buddy:3340): WARNING **: Couldn't load icon for Open Folder
--------------------------------------------------
Comment 1 ebbywiselyn 2007-02-09 06:05:58 UTC
Thanks for taking the time to report this bug.
Unfortunately, that stack trace is missing some elements that will help a lot to solve the problem, so it will be hard for the developers to fix that crash. Can you get us a stack trace with debugging symbols? Please see http://live.gnome.org/GettingTraces for more information on how to do so. Thanks in advance!
Comment 2 Simon Geard 2007-02-09 07:10:39 UTC
Everything here is built from sources, so rebuilding packages with debug symbols will take some time. I'm rebuilding Evolution and E-D-S now - is there anything else which might be required as well?
Comment 3 Simon Geard 2007-02-09 08:50:00 UTC
Ok, disregard the last message - rebuilding relevant packages didn't take as long as I thought it would. Updated stack trace is below...

Looks like the problem is something to do with Evolution's use of NetworkManager to monitor network availability. If it matters, this is using NM 0.6.4 and dbus-1.0.2.

Backtrace was generated from '/usr/bin/evolution-2.8'

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1232841024 (LWP 6105)]
[New Thread -1283040368 (LWP 6122)]
[Thread debugging using libthread_db enabled]
[New Thread -1232841024 (LWP 6105)]
[New Thread -1283040368 (LWP 6122)]
[Thread debugging using libthread_db enabled]
[New Thread -1232841024 (LWP 6105)]
[New Thread -1283040368 (LWP 6122)]
[New Thread -1274377328 (LWP 6120)]
[New Thread -1265984624 (LWP 6119)]
[New Thread -1255228528 (LWP 6115)]
[New Thread -1238402160 (LWP 6111)]
0xffffe410 in ?? ()

Thread 6 (Thread -1238402160 (LWP 6111))

  • #0 ??
  • #1 ??
  • #2 ??
  • #3 ??
  • #4 ___newselect_nocancel
    from /lib/libc.so.6
  • #5 e_msgport_wait
    at e-msgport.c line 643
  • #6 thread_dispatch
    at e-msgport.c line 1035

Comment 4 Claudio Saavedra 2007-02-23 22:51:58 UTC
I'm hitting the same crasher with latest trunk. An updated stacktrace follows:

(gdb) thread apply all bt


Comment 5 Claudio Saavedra 2007-03-09 01:08:56 UTC
Seems to be a problem in libnm:

"The last reference on a connection was dropped without closing the connection. This is a bug in an application. See dbus_connection_unref() documentation for details."

The problem is that libnm is getting a private connection, which it seems should be closed before unrefered. Moving to NetworkManager.
Comment 6 Claudio Saavedra 2007-03-09 01:10:51 UTC
Created attachment 84286 [details] [review]
close the connection before unrefering it

This fixes the issue for me.
Comment 7 Nicolas Mailhot 2007-03-17 08:51:18 UTC
Just hit this in Fedora Devel evolution-2.10.0-2.fc7.x86_64
Comment 8 Kjartan Maraas 2007-03-20 20:29:12 UTC
Shouldn't it check that the refcount is 1 before calling close? Or can it never be > 1?
Comment 9 Matthew Barnes 2007-03-25 01:56:52 UTC
Created attachment 85239 [details] [review]
Revised patch

Comment #5 is correct, but it looks like there's a second place where dbus_connection_close() needs to be called.
Comment 10 Dan Williams 2007-03-25 17:03:40 UTC
hmm, need to get johnp's comments on this...  j5?
Comment 11 John (J5) Palmieri 2007-03-25 21:47:24 UTC
If you have a private connection you need to close it at some point before the last unref becuase your app needs to be able to respond to the disconnect messages before the object is destroyed.  Or something to that effect.

In any case libnm should know when it no longer needs the private connection and close it at that point (regaurdless of if you are unreffing at that point though in practice you will always unref after a close). 
Comment 12 Sitsofe Wheeler 2007-03-26 07:42:37 UTC
Should this bug still be in NEEDINFO?
Comment 13 Dan Williams 2007-04-02 04:13:29 UTC
committed to stable, thanks!
Comment 14 palfrey 2007-05-28 13:50:56 UTC
*** Bug 424026 has been marked as a duplicate of this bug. ***
Comment 15 Christopher Aillon 2007-06-05 07:40:51 UTC
This has been fixed already.  Thanks for the patch, Matt.
Comment 16 Matthew Barnes 2007-06-18 14:44:27 UTC
*** Bug 432796 has been marked as a duplicate of this bug. ***
Comment 17 André Klapper 2007-06-19 23:12:16 UTC
*** Bug 449174 has been marked as a duplicate of this bug. ***
Comment 18 Karsten Bräckelmann 2007-06-21 02:49:38 UTC
*** Bug 449659 has been marked as a duplicate of this bug. ***
Comment 19 palfrey 2007-06-25 00:11:39 UTC
*** Bug 450544 has been marked as a duplicate of this bug. ***
Comment 20 palfrey 2007-06-30 15:20:44 UTC
*** Bug 452304 has been marked as a duplicate of this bug. ***
Comment 21 Karsten Bräckelmann 2007-07-01 18:03:14 UTC
*** Bug 447125 has been marked as a duplicate of this bug. ***
Comment 22 palfrey 2007-07-07 21:27:27 UTC
*** Bug 454498 has been marked as a duplicate of this bug. ***
Comment 23 Iestyn Pryce 2007-07-30 16:32:30 UTC
*** Bug 461644 has been marked as a duplicate of this bug. ***
Comment 24 André Klapper 2007-08-01 15:03:38 UTC
*** Bug 455158 has been marked as a duplicate of this bug. ***
Comment 25 André Klapper 2007-08-01 15:03:42 UTC
*** Bug 457830 has been marked as a duplicate of this bug. ***
Comment 26 Matthew Barnes 2007-09-21 15:26:00 UTC
Reopening.  The patch in that fixed this bug (comment #9) got removed somehow.
Comment 27 Kjartan Maraas 2007-10-07 10:16:17 UTC
Looks like it's still there on both the stable branch and trunk. Even though this is true I saw that exact crash myself recently with a current rawhide setup. Reported in bug 478992
Comment 28 Kjartan Maraas 2007-10-07 10:16:39 UTC
*** Bug 478992 has been marked as a duplicate of this bug. ***
Comment 29 Tobias Mueller 2007-10-07 18:17:22 UTC
*** Bug 484452 has been marked as a duplicate of this bug. ***
Comment 30 Tobias Mueller 2007-10-07 18:17:49 UTC
*** Bug 475393 has been marked as a duplicate of this bug. ***
Comment 31 Tobias Mueller 2007-10-07 18:19:42 UTC
*** Bug 473508 has been marked as a duplicate of this bug. ***
Comment 32 Tobias Mueller 2007-10-07 18:19:47 UTC
*** Bug 470472 has been marked as a duplicate of this bug. ***
Comment 33 Tobias Mueller 2007-10-07 18:20:51 UTC
*** Bug 465528 has been marked as a duplicate of this bug. ***
Comment 34 Tobias Mueller 2007-10-07 18:21:05 UTC
*** Bug 467771 has been marked as a duplicate of this bug. ***
Comment 35 Tobias Mueller 2007-10-07 18:22:04 UTC
*** Bug 464531 has been marked as a duplicate of this bug. ***
Comment 36 Tobias Mueller 2007-10-07 18:22:33 UTC
*** Bug 459958 has been marked as a duplicate of this bug. ***
Comment 37 Tobias Mueller 2007-10-10 08:37:37 UTC
*** Bug 485200 has been marked as a duplicate of this bug. ***
Comment 38 Tobias Mueller 2007-10-12 10:25:02 UTC
*** Bug 485883 has been marked as a duplicate of this bug. ***
Comment 39 Tobias Mueller 2007-10-12 10:25:09 UTC
*** Bug 485924 has been marked as a duplicate of this bug. ***
Comment 40 Karsten Bräckelmann 2007-10-14 01:41:50 UTC
*** Bug 486400 has been marked as a duplicate of this bug. ***
Comment 41 Tobias Mueller 2007-10-22 23:08:48 UTC
*** Bug 488224 has been marked as a duplicate of this bug. ***
Comment 42 Tobias Mueller 2007-10-22 23:08:58 UTC
*** Bug 488530 has been marked as a duplicate of this bug. ***
Comment 43 Tobias Mueller 2007-10-24 20:19:57 UTC
*** Bug 489697 has been marked as a duplicate of this bug. ***
Comment 44 Tobias Mueller 2007-10-25 23:28:07 UTC
*** Bug 490285 has been marked as a duplicate of this bug. ***
Comment 45 Tobias Mueller 2007-10-30 11:16:00 UTC
*** Bug 491634 has been marked as a duplicate of this bug. ***
Comment 46 André Klapper 2007-11-05 13:00:23 UTC
*** Bug 493400 has been marked as a duplicate of this bug. ***
Comment 47 André Klapper 2007-11-05 13:00:25 UTC
*** Bug 493393 has been marked as a duplicate of this bug. ***
Comment 48 Tobias Mueller 2007-11-05 23:23:12 UTC
*** Bug 493852 has been marked as a duplicate of this bug. ***
Comment 49 Tobias Mueller 2007-11-11 11:56:52 UTC
*** Bug 495760 has been marked as a duplicate of this bug. ***
Comment 50 Tobias Mueller 2007-11-11 12:49:23 UTC
*** Bug 495353 has been marked as a duplicate of this bug. ***
Comment 51 Tobias Mueller 2007-11-14 01:10:04 UTC
*** Bug 496338 has been marked as a duplicate of this bug. ***
Comment 52 Dan Williams 2007-11-15 22:14:26 UTC
should be fixed for a while in stable and head.
Comment 53 Tobias Mueller 2007-11-16 23:17:47 UTC
*** Bug 497514 has been marked as a duplicate of this bug. ***
Comment 54 Tobias Mueller 2007-11-21 16:16:32 UTC
*** Bug 498731 has been marked as a duplicate of this bug. ***
Comment 55 Tobias Mueller 2007-11-23 20:44:30 UTC
*** Bug 499236 has been marked as a duplicate of this bug. ***
Comment 56 Tobias Mueller 2007-11-23 21:20:09 UTC
*** Bug 499143 has been marked as a duplicate of this bug. ***
Comment 57 Tobias Mueller 2007-11-23 21:24:07 UTC
*** Bug 499079 has been marked as a duplicate of this bug. ***
Comment 58 Susana 2007-11-24 13:59:56 UTC
*** Bug 499310 has been marked as a duplicate of this bug. ***
Comment 59 palfrey 2007-12-06 19:11:58 UTC
*** Bug 502134 has been marked as a duplicate of this bug. ***
Comment 60 palfrey 2007-12-10 15:58:29 UTC
*** Bug 502838 has been marked as a duplicate of this bug. ***
Comment 61 Susana 2007-12-16 17:27:57 UTC
*** Bug 503830 has been marked as a duplicate of this bug. ***
Comment 62 Tobias Mueller 2007-12-17 07:58:31 UTC
*** Bug 503994 has been marked as a duplicate of this bug. ***
Comment 63 Tobias Mueller 2008-02-09 12:22:48 UTC
*** Bug 515333 has been marked as a duplicate of this bug. ***
Comment 64 Tobias Mueller 2008-02-18 15:02:55 UTC
*** Bug 517187 has been marked as a duplicate of this bug. ***
Comment 65 Tobias Mueller 2008-02-24 14:10:08 UTC
*** Bug 518335 has been marked as a duplicate of this bug. ***
Comment 66 Tobias Mueller 2008-03-10 08:16:58 UTC
*** Bug 521474 has been marked as a duplicate of this bug. ***
Comment 67 Tobias Mueller 2008-03-12 16:30:33 UTC
*** Bug 521852 has been marked as a duplicate of this bug. ***
Comment 68 Matthew Barnes 2008-03-20 00:08:22 UTC
*** Bug 419885 has been marked as a duplicate of this bug. ***