GNOME Bugzilla – Bug 646300
shell leaks at logout
Last modified: 2011-03-31 18:31:56 UTC
Created attachment 184760 [details] stacktrace Recently, I see gnome-shell leak out of my session at logout. The attached stacktrace seems to put the blame squarely at NetworkManager, via nm_utils_deinit.
nm_utils_deinit() calls crypto-nss.c:crypto_deinit(), which calls PR_Cleanup(), which attempts to destroy all NSPR mutexes and wait for all NSPR threads to exit, which obviously isn't going to happen, since we are inside a callback from spidermonkey at the time. IMHO there are two bugs here: - NM shouldn't be installing an atexit() handler, because atexit() is evil. Also, you don't need to call PR_Cleanup() anyway, and in fact, the current recommendation seems to be that you *shouldn't* call it: https://bugzilla.mozilla.org/show_bug.cgi?id=54189#c1 - gdk_x_io_error() should be calling _exit() rather than exit() anyway I filed bug 646338 for the gdk bug, so reassigning this to NM
5b0ef4c201ca8556ac7337427183aa8c80f73b55 (master) 88941c8eb91cf3e956d8441767c3fe0fe310ba4f (0.8.x)