GNOME Bugzilla – Bug 760154
NetworkManager crashes with a segfault when I modprobe my WiFi module
Last modified: 2016-01-06 21:44:38 UTC
I run arch linux (kernel 4.3.3-2-ARCH) and my WiFi card is a RT3290LE. SInce my WiFi signal is very weak, I am trying to install a patched module for the card from AUR (Arch User Repo). But when the driver loads, networkmanager crashes just after renaming of my ethernet interface: [ 61.949615] rt2860 0000:09:00.0 enp9s0f0: renamed from ra0 [ 61.982199] NetworkManager[339]: segfault at 8 ip 00000000004ca126 sp 00007fff6887e868 error 4 in NetworkManager[400000+1c5000] Here is are the entire entries made during loading of the module: http://pastebin.com/hxxdJZ05
Can you install debugging symbols and run NetworkManager under gdb to provide a stack trace of the crash?
I did that. But the trace came out empty. Here it is: http://pastebin.ubuntu.com/14422493/ I guess the modprobe crashed some library. Shall I close this bug?
I think this is not yet enough to hunt down the issue. I'm closing this BZ for now, but feel invited to reopen and/or provide more information so we can check again -- especially if you can reproduce the crash it would be appreciated. thank you
I can reproduce the crash. I am feeling kinda desperate. I need wifi because I live in a college hostel and I can't get internet in my room without it. If you can tell me where exactly to look for information, I will be happy to invest any amount of time on it.
which distro are you using? I assume you installed NetworkManager from a distribution-provided package? Which NM version? Which package version? Make sure you install the relevant debugging information, which is usually in a separate package, e.g. NetworkManager-debuginfo on Fedora/RHEL. Stop NetworkManager, and start it in a debugger: systemctl stop NetworkManager gdb /sbin/NetworkManager > run --debug --log-level=DEBUG Reproduce the crash, and show the backtrace ("backtrace" command in gdb). You can also ask for help on #nm on irc.freenode.net.
NM version: networkmanager-1.0.10-2-x86_64 I am using Arch Linux. We have the Arch build system, (ABS) from which we can compile official packages for debugging purposes. More info about it here: https://wiki.archlinux.org/index.php/Debug_-_Getting_Traces I did just as it is given in the above wiki, and the trace is posted in comment #2. The only difference is that I had to start with --no-daemon flag and I did not specify a log level. I will redo it and post back the result. If you are online in the irc, I can come online right now.
I see... the backtrace you posted doesn't show a crash inside NetworkManager's code, that's why the cause is unclear. Can you also provide a logfile with --log-level=TRACE ? (TRACE is more verbose then DEBUG, but this logging level was only introduced with verion 1.0). For that, configure [logging] level=TRACE in /etc/NetworkManager/NetworkManager.conf and restart + reproduce the crash. (better attach the logfile in bugzilla then pastebin, because pastebin will eventually expire).
Created attachment 318381 [details] logfile and backtrace Attaching logfile from reporter (via IRC) for later reference.
Crashed fixed master: http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=06e0595401e6eb16ac527e54af8ca09c72245672 nm-1-0: http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=a213db5113302f90d243f778c8a23608c782cea2