GNOME Bugzilla – Bug 783839
"dummy" connections crash the control center
Last modified: 2017-06-16 17:49:11 UTC
Just built 3.25.2.r48.g29abc2307, opened the 'Network' panel, and got this: (gnome-control-center:9540): GLib-GObject-WARNING **: g_object_get_is_valid_property: object class 'NMDeviceDummy' has no property named 'hw-address' *** Error in `gnome-control-center': double free or corruption (out): 0x00007fffa4cb4b70 *** Haven't rebuilt with debug symbols yet, but it very reliably crashes whenever a type=dummy connection is active.
Created attachment 353878 [details] [review] network: Avoid crashing if the NMDevice doesn't have a hw-address -- Does this make it work? I'm afraid there might be other crashes for "exotic" device types. Perhaps we should white list the ones we're interested in showing...
Tested the patch, it works. (Now that I think of it, maybe it's also a NM bug? Dummy interfaces themselves *do* have MAC addresses...)
Created attachment 353908 [details] [review] network: Avoid crashing if the NMDevice doesn't have a hw-address The property might not exist and we would g_free() an uninitialized pointer. Using the proper API avoids all that.
Attachment 353908 [details] pushed as ca667d9 - network: Avoid crashing if the NMDevice doesn't have a hw-address