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 756455 - segfault in nm_device_get_unmanaged_flag
segfault in nm_device_get_unmanaged_flag
Status: RESOLVED OBSOLETE
Product: NetworkManager
Classification: Platform
Component: general
1.0.x
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-10-12 17:54 UTC by Lagu
Modified: 2020-11-12 14:34 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Lagu 2015-10-12 17:54:27 UTC
Hi, here a little problem this is the log:

[  243.849725] NetworkManager[3717]: segfault at d4 ip 0000000000451abb sp 00007ffcd7712990 error 4 in NetworkManager[400000+1c2000]
[  244.197755] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[  244.198694] IPv6: ADDRCONF(NETDEV_UP): enp4s0f2: link is not ready
[  244.244423] gnome-control-c[4379]: segfault at 70000001e ip 00007f2566b314bb sp 00007ffcacd58530 error 4 in libgobject-2.0.so.0.4400.1[7f2566afe000+51000]


well, how i can reproduce this in my system:

first we need the driver of wifi device in my case
Qualcomm Atheros AR9485 Wireless Network Adapter
is the ath9k

1) modprobe -r ath9k
2) modprobe ath9k ps_enable=1

now we need the wireless device in my case

wlp3s0    IEEE 802.11bgn  ESSID:"FMV4"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: 14:CC:20:83:FE:5C   
          Bit Rate=135 Mb/s   Tx-Power=15 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=51/70  Signal level=-59 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:4   Missed beacon:0

3) ifconfig wlp3s0 down
4) iwconfig wlp3s0 txpower on
5) iwconfig wlp3s0 power off
6) ifconfig wlp3s0 up

now open network manager, in the wireless tab disable the wifi and next enable it, probably will don't show any connection, next connect to a hidden network ideally one you can really connect it even if you can't see it in the list, select it and connect, there crash and start working weird.
Comment 1 Lagu 2015-10-12 18:24:10 UTC
bt

Program received signal SIGSEGV, Segmentation fault.
0x0000000000451abb in nm_device_get_unmanaged_flag (self=self@entry=0x8667c0, flag=flag@entry=NM_UNMANAGED_DEFAULT)
    at /var/tmp/portage/net-misc/networkmanager-1.0.6/work/NetworkManager-1.0.6/src/devices/nm-device.c:7510
7510	/var/tmp/portage/net-misc/networkmanager-1.0.6/work/NetworkManager-1.0.6/src/devices/nm-device.c: No existe el fichero o el directorio.
(gdb) bt
  • #0 nm_device_get_unmanaged_flag
    at /var/tmp/portage/net-misc/networkmanager-1.0.6/work/NetworkManager-1.0.6/src/devices/nm-device.c line 7510
  • #1 nm_device_get_default_unmanaged
    at /var/tmp/portage/net-misc/networkmanager-1.0.6/work/NetworkManager-1.0.6/src/devices/nm-device.c line 7522
  • #2 _set_state_full
    at /var/tmp/portage/net-misc/networkmanager-1.0.6/work/NetworkManager-1.0.6/src/devices/nm-device.c line 8559
  • #3 nm_device_state_changed
    at /var/tmp/portage/net-misc/networkmanager-1.0.6/work/NetworkManager-1.0.6/src/devices/nm-device.c line 8692
  • #4 queued_set_state
    at /var/tmp/portage/net-misc/networkmanager-1.0.6/work/NetworkManager-1.0.6/src/devices/nm-device.c line 8716
  • #5 g_main_context_dispatch
    from /usr/lib64/libglib-2.0.so.0
  • #6 ??
    from /usr/lib64/libglib-2.0.so.0
  • #7 g_main_loop_run
    from /usr/lib64/libglib-2.0.so.0
  • #8 main
    at /var/tmp/portage/net-misc/networkmanager-1.0.6/work/NetworkManager-1.0.6/src/main.c line 513

Comment 2 Jiri Klimes 2015-10-31 19:39:03 UTC
would you provide more information so that the issue can be analyzed.
What is your distro and NM version?
Does it only happen with ath9k or can you see the crash with another card/driver too? (eg. with a Wi-Fi USB stick)
What NM GUI you talk about when you say "open network manager"?
If you are able to reproduce, can you install/compile with debug symbols and run in gdb?
Comment 3 Lagu 2015-10-31 21:49:14 UTC
okis, sorry don't post that info:

Distro: Gentoo amd64
NM version: 1.0.6


Now a more simple way to reproduce it, first we need the driver of the card, my case ath9k, then:

modprobe -r ath9k
modprobe ath9k


now start working weird this, if you open the gui of network manager (in the gnome-control-center) and try to connect it will crash. if you open it again start working better.

The backtrace is already up in my comment with debug symbols, if you need the debug symbols of glibc ask or for something else.

Sadly i don't have extern wifi cards (usb), so i can't test it.
Comment 4 Sebastien Bacher 2015-12-08 09:59:35 UTC
there are similar reports on fedora with 1.0.6
https://bugzilla.redhat.com/show_bug.cgi?id=1270247

or Ubuntu
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1506412
Comment 5 André Klapper 2020-11-12 14:34:07 UTC
bugzilla.gnome.org is being shut down in favor of a GitLab instance. 
We are closing all old bug reports and feature requests in GNOME Bugzilla which have not seen updates for a long time.

If you still use NetworkManager and if you still see this bug / want this feature in a recent and supported version of NetworkManager, then please feel free to report it at https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/

Thank you for creating this report and we are sorry it could not be implemented (workforce and time is unfortunately limited).