GNOME Bugzilla – Bug 788104
In "nmcli connection edit" describe . results in a segmentation fault
Last modified: 2017-09-26 13:24:08 UTC
When asked to describe . in editor the application crashes with a segmentation fault. to reproduce start run nmcli connection edit then choose any connection type and enter describe .
Thanks for taking the time to report this. Without a stack trace from the crash it's very hard to determine what caused it. Can you get us a stack trace? Please see https://wiki.gnome.org/Community/GettingInTouch/Bugzilla/GettingTraces for more information on how to do so. When pasting a stack trace in this bug report, please reset the status of this bug report from NEEDINFO to its previous status. Thanks in advance!
I think with the present decription how to reproduce the issue, it's clear what's wrong. Please review th/cli-interactive-mode-crash-bgo788104
Created attachment 360371 [details] [review] proposed patch if we check for null here we can avoid the segfault and provide useful information to the user
(In reply to Thomas Haller from comment #2) > I think with the present decription how to reproduce the issue, it's clear > what's wrong. > > Please review th/cli-interactive-mode-crash-bgo788104 Ack.
(In reply to Jonathan Birk from comment #3) > Created attachment 360371 [details] [review] [review] > proposed patch > > if we check for null here we can avoid the segfault and provide useful > information to the user Thanks Jonathan. Your patch is quite similar to what I did in comment 2. (In reply to Beniamino Galvani from comment #4) > (In reply to Thomas Haller from comment #2) > > I think with the present decription how to reproduce the issue, it's clear > > what's wrong. > > > > Please review th/cli-interactive-mode-crash-bgo788104 > > Ack. I merged the two patches from comment 2 to master: https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=4ca2e1b10c1ce57c20c3d3e9464a170e98525688 And backported the fix for the crash to nm-1-8: https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=b18ff17d3d4495722745c701826880bf14672827