GNOME Bugzilla – Bug 672922
gnome-control-center crashed with SIGSEGV in panel_get_strongest_unique_aps()
Last modified: 2012-11-29 15:51:30 UTC
The bug got reported on https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/908670 "Opened network folder.Tried connect to my lan then the gnome-control-center crashed Stracktrace (3.2.2)
+ Trace 229963
The bug is still receiving duplicates with 3.3.92 and seems a frequent segfault Similar bug from the fedora tracker: https://bugzilla.redhat.com/show_bug.cgi?id=695247
https://bugzilla.redhat.com/show_bug.cgi?id=756329 as well on 3.2
In panel_get_strongest_unique_aps() 'ssid' is dereferenced without being checked for NULL. If some AP isn't broadcasting it's SSID, then the value returned from nm_access_point_get_ssid() will be NULL, and thus the debug logging will segfault. The correct patch here should simply ignore any access point that isn't broadcasting it's SSID, since it's point less to show these in the list. To connect to them the user needs to enter the SSID manually anyway.
Created attachment 212443 [details] [review] Ignore hidden SSIDs (not run tested)
Review of attachment 212443 [details] [review]: Looks good. ::: panels/network/cc-network-panel.c @@ +1127,3 @@ ap_tmp = NM_ACCESS_POINT (g_ptr_array_index (aps_unique, j)); ssid_tmp = nm_access_point_get_ssid (ap_tmp); + g_assert (ssid_tmp); What's this assertion for?
Bastien, Pretty much just being thorough. Since the networks would be added by the other parts of that loop, there is no reason why ssid_tmp should ever be NULL.
Comment on attachment 212443 [details] [review] Ignore hidden SSIDs (not run tested) Pushed to gnome-3-4
*** Bug 672930 has been marked as a duplicate of this bug. ***