GNOME Bugzilla – Bug 767986
NetworkManager 1.2.2 segfaults on start
Last modified: 2016-06-24 17:21:33 UTC
NetworkManager 1.2.2 segfaults on start. It also doesn't pass tests ("make check") because test-route-manager-linux segfaults. Backtrace for test-route-manager-linux: ==========================================
+ Trace 236384
Looks like this segfault was introduced between 1.1.90 (test-route-manager-linux works) and 1.1.91 (test-route-manager-linux segfaults).
Can you attach the logfile with debug logging enabled? As you build from source, maybe better toshow the output of $ NMTST_DEBUG=d ./src/platform/tests/monitor That crashes too, right? Preferably, also after ./configure --with-more-asserts --with-more-logging Thanks
(In reply to Thomas Haller from comment #1) > Can you attach the logfile with debug logging enabled? > > > As you build from source, maybe better toshow the output of > $ NMTST_DEBUG=d ./src/platform/tests/monitor > That crashes too, right? Yes, it does. > Preferably, also after > ./configure --with-more-asserts --with-more-logging Built NM with these options. I'll attach the log for "NMTST_DEBUG=debug ./src/platform/tests/monitor".
Created attachment 330286 [details] Crash log and backtrace for /src/platform/tests/monitor
Are you using the 1.2.2 tarball from here: http://ftp.gnome.org/pub/GNOME/sources/NetworkManager/1.2/ ? I don't see why that crash would happen. Can you run it in valgrind: NMTST_DEBUG=d valgrind --leak-check=full --log-file=valgrind.log \ ./src/platform/tests/monitor (note it's "d", not "debug", but doesn't matter much).
(In reply to Thomas Haller from comment #4) > (note it's "d", not "debug", but doesn't matter much). For "d" it says: NetworkManager-Message: >>> nmtst: ignore unrecognized NMTST_DEBUG option "d" With valgrind it doesn't segfault but says: ==29128== Invalid free() / delete / delete[] / realloc() ==29128== at 0x4007D8A: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==29128== by 0x8073330: _nm_auto_free_impl (nm-macros-internal.h:35) I'll attach the log.
Created attachment 330306 [details] Valgrind log
(In reply to Andrey Bondrov from comment #5) > (In reply to Thomas Haller from comment #4) > > (note it's "d", not "debug", but doesn't matter much). > > For "d" it says: > > NetworkManager-Message: >>> nmtst: ignore unrecognized NMTST_DEBUG option "d" than I don't think you are running upstream 1.2.2 release. Did you get it from git? What is the commit-id?
(In reply to Thomas Haller from comment #7) > than I don't think you are running upstream 1.2.2 release. Did you get it > from git? What is the commit-id? Indeed, it was 1.1.91 (same segfault as in 1.2.2). I'll attach valgrind log and output from 1.2.2.
Created attachment 330314 [details] Valgrind log (1.2.2)
Created attachment 330315 [details] Valgrind output (1.2.2)
Created attachment 330316 [details] NM 1.2.2 crash log (with NMTST_DEBUG=d)
Thanks. Still no idea why that would happen. Can you explain more about your system? How can this reproduced? What distro? What libnl3 version? Did you build libnl3 yourself (which exact version) or got a package from the distro?
(In reply to Thomas Haller from comment #12) > Thanks. > > Still no idea why that would happen. Can you explain more about your system? > How can this reproduced? What distro? What libnl3 version? Did you build > libnl3 yourself (which exact version) or got a package from the distro? Distro: 1. ROSA Desktop Fresh R7 (rosa2014.1) 2. libnl3 3.2.14 from rosa2014.1 repository How to reproduce: 1. Download and install the distro from the latest ISO: https://abf.rosalinux.ru/platforms/rosa2014.1/products/86/product_build_lists/15433 2. Install NetworkManager 1.2.2 from 2.1. 32 bit: http://abf-downloads.rosalinux.ru/rosa2014.1/container/2683665/i586/main/release/ 2.2. 64 bit: http://abf-downloads.rosalinux.ru/rosa2014.1/container/2683666/x86_64/main/release/ 3. Start it and it will crash You can also try to build it from source after installing the distro: 1. Download SRPM from http://abf-downloads.rosalinux.ru/rosa2014.1/container/2683666/SRPMS/main/release/networkmanager-1.2.2-1.src.rpm 2. Install build dependences by # urpmi.update -a # urpmi --buildrequires networkmanager-1.2.2-1.src.rpm 3. Then either run rpmbuild --rebuild networkmanager-1.2.2-1.src.rpm or just unpack source tarball and run configure, make etc.
Thanks. Fixed now (upstream). master: https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=66715515dc0ff0d4f95c86d636009e5999fba0ed nm-1-2: https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=9bd444b3b157c663c1eabcea0f6587b50577e087
Thanx for fixing it.