GNOME Bugzilla – Bug 372840
Deadlock in NetworkManager after resume
Last modified: 2008-11-05 16:10:47 UTC
Steps to reproduce: 1. Suspend the machine while knetworkmanager is connected 2. Resume the laptop 3. Be lucky to cause the deadlock Stack trace: hacki@hacki-mobile:~/webots/plugins/physics/save_restore$ sudo gdb GNU gdb 6.4.90-debian Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu". warning: not using untrusted file "/home/hacki/.gdbinit" (gdb) attach 14597 Attaching to process 14597 Reading symbols from /usr/sbin/NetworkManager...(no debugging symbols found)...done. Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". Reading symbols from /usr/lib/libhal.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libhal.so.1 Reading symbols from /lib/libiw.so.28...(no debugging symbols found)...done. Loaded symbols for /lib/libiw.so.28 Reading symbols from /usr/lib/libnl.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libnl.so.1 Reading symbols from /usr/lib/libgthread-2.0.so.0...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libgthread-2.0.so.0 Reading symbols from /lib/tls/i686/cmov/libpthread.so.0... (no debugging symbols found)...done. [Thread debugging using libthread_db enabled] [New Thread -1211832016 (LWP 14597)] [New Thread -1211835488 (LWP 20135)] [New Thread -1228620896 (LWP 958)] Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0 Reading symbols from /usr/lib/libnm-util.so.0...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libnm-util.so.0 Reading symbols from /usr/lib/libdbus-glib-1.so.2...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libdbus-glib-1.so.2 Reading symbols from /usr/lib/libdbus-1.so.3...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libdbus-1.so.3 Reading symbols from /usr/lib/libglib-2.0.so.0...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libglib-2.0.so.0 Reading symbols from /lib/tls/i686/cmov/librt.so.1... (no debugging symbols found)...done. Loaded symbols for /lib/tls/i686/cmov/librt.so.1 Reading symbols from /usr/lib/libgcrypt.so.11...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libgcrypt.so.11 Reading symbols from /lib/tls/i686/cmov/libnsl.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/tls/i686/cmov/libnsl.so.1 Reading symbols from /usr/lib/libgpg-error.so.0...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libgpg-error.so.0 Reading symbols from /lib/tls/i686/cmov/libc.so.6...(no debugging symbols found)...done. Loaded symbols for /lib/tls/i686/cmov/libc.so.6 Reading symbols from /usr/lib/libgobject-2.0.so.0... (no debugging symbols found)...done. Loaded symbols for /usr/lib/libgobject-2.0.so.0 Reading symbols from /lib/tls/i686/cmov/libm.so.6...(no debugging symbols found)...done. Loaded symbols for /lib/tls/i686/cmov/libm.so.6 Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/ld-linux.so.2 (no debugging symbols found) 0xffffe410 in __kernel_vsyscall () (gdb) back
+ Trace 84650
Thread NaN (LWP 14597)
The program is running. Quit anyway (and detach it)? (y or n) y Detaching from program: /usr/sbin/NetworkManager, process 14597 hacki@hacki-mobile:~/webots/plugins/physics/save_restore$ Other information: NetworkManagerDispatcher ist still running fine. It's not easy to reproduce, as it only happens once in a while. Killing the NetworkManager deamon (SIG 9) and restarting it fixes the problem (of course).
The exact version of networm-manager is: 0.6.3-2ubuntu6
If you get this again, please do: (gdb) t a a bt (which is "thread apply all backtrace") to get a backtrace of all threads, not just the main one. thanks!
Thanks for the tip! But concerning the bug, please look at the gdb output again, as I have included backtraces of all threads (3). Have I missed something?
Ah yes, I see that now, sorry. Any way you could install debuginfo for the NetowrkManager package and try to trigger it again?
Ubuntu/Debian does not provide debug info for the NetworkManager package. But maybe you could ask the maintainer (https://launchpad.net/people/giskard or email: giskard@autistici.org) to provide you debug symbols for the binary and just do addr2line for the backtrace I posted here?
(In reply to comment #4) > Ah yes, I see that now, sorry. Any way you could install debuginfo for the > NetowrkManager package and try to trigger it again? > Dear Dan, I have the same problem it would seem. I am using openSUSE 10.2 on an IBM T30 Thinkpad, NetworkManager ver 0.6.4-51. This happens somewhat infrequently, about once a week for me. I tried to count suspend/resume cycles but lost count. Is this still active and if so may I contribute whatever information you require? I looked for the debug package you mentioned but did not find one for the version I have. Please advise. Best Regards, Peter
Likely fixed by 0.7 and 0.6.6; please re-open if you can reproduce the issue with debugging symbols installed so we can try to track the issue down. Thanks!