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 757814 - NetworkManager crash while attempting to connect to a AP with hidden SSID
NetworkManager crash while attempting to connect to a AP with hidden SSID
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: Wi-Fi
git master
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-11-09 13:10 UTC by Jiri Klimes
Modified: 2015-11-11 10:26 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jiri Klimes 2015-11-09 13:10:43 UTC
Connecting to hidden SSID (AP02) with

$ nmcli dev wifi connect 00:22:6B:EB:1D:CA hidden yes


Program received signal SIGSEGV, Segmentation fault.
nm_ap_utils_complete_connection (ap_ssid=0x0, bssid=0xc9e6b0 "00:22:6B:EB:1D:CA", ap_mode=NM_802_11_MODE_INFRA, ap_flags=1, ap_wpa_flags=0, ap_rsn_flags=0, 
    connection=0x994ae0, lock_bssid=0, error=0x7fffffffdba0) at nm-wifi-ap-utils.c:551
551		ap_ssid_bytes = g_bytes_new (ap_ssid->data, ap_ssid->len);
(gdb) bt
  • #0 nm_ap_utils_complete_connection
    at nm-wifi-ap-utils.c line 551
  • #1 nm_ap_complete_connection
    at nm-wifi-ap.c line 854
  • #2 complete_connection
    at nm-device-wifi.c line 839
  • #3 nm_device_complete_connection
    at devices/nm-device.c line 2603
  • #4 impl_manager_add_and_activate_connection
    at nm-manager.c line 3426
  • #5 ffi_call_unix64
    at ../src/x86/unix64.S line 76
  • #6 ffi_call
    at ../src/x86/ffi64.c line 525
  • #7 g_cclosure_marshal_generic
    at gclosure.c line 1448
  • #8 nm_exported_object_meta_marshal
    at nm-exported-object.c line 346


method call sender=:1.221 -> dest=:1.216 serial=1283 path=/org/freedesktop/NetworkManager; interface=org.freedesktop.NetworkManager; member=AddAndActivateConnection
   array [
      dict entry(
         string "802-11-wireless"
         array [
            dict entry(
               string "ssid"
               variant                   array of bytes "00:22:6B:EB:1D:CA"
            )
            dict entry(
               string "mac-address-blacklist"
               variant                   array [
                  ]
            )
            dict entry(
               string "seen-bssids"
               variant                   array [
                  ]
            )
            dict entry(
               string "hidden"
               variant                   boolean true
            )
         ]
      )
   ]
   object path "/org/freedesktop/NetworkManager/Devices/11"
   object path "/org/freedesktop/NetworkManager/AccessPoint/12"
Comment 1 Jiri Klimes 2015-11-09 13:36:36 UTC
Fixed in branch jk/wifi-fix-bgo757814.
Comment 2 Dan Williams 2015-11-10 15:50:33 UTC
LGTM
Comment 3 Jiri Klimes 2015-11-11 10:26:07 UTC
Merged to
master:
0dc4837 cli: print a warning if BSSID is given instead of SSID for hidden AP
98b0b4b wifi: fix a crash while attempting to connect hidden AP (bgo #757814)

nm-1-0:
84d741f cli: print a warning if BSSID is given instead of SSID for hidden AP
36218c1 wifi: fix a crash while attempting to connect hidden AP (bgo #757814)