** Changed in: nplan (Ubuntu)
Status: Fix Committed => Fix Released
** Description changed:
+ [Impact]
netplan's systemd-generator segfaults if called with no arguements.
it should better show usage or something else and exit non-zero.
- b
+ [Test case]
# /lib/systemd/system-generators/netplan
+ The above command should not crash, but respond with a suitable error
+ message. Without the update, it behaves like this:
+
+ """
(netplan:842): GLib-CRITICAL **: g_strv_length: assertion 'str_array != NULL'
failed
**
ERROR:src/generate.c:86:main: assertion failed: (g_strv_length(files) == 3)
Aborted (core dumped)
+ """
+
+ [Regression Potential]
+ This is a command not meant to be used directly; but spurious crashes or
misbehavior of netplan at boot time, such as failing to generate networkd/NM
config for a netplan yaml configuration that is valid, would consistute a
potential regression of this update.
+
+ ---
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: nplan 0.26
ProcVersionSignature: Ubuntu 4.12.0-11.12-generic 4.12.5
Uname: Linux 4.12.0-11-generic x86_64
ApportVersion: 2.20.7-0ubuntu1
Architecture: amd64
Date: Thu Aug 31 14:24:24 2017
ProcEnviron:
- TERM=xterm-256color
- PATH=(custom, no user)
- LANG=C.UTF-8
+ TERM=xterm-256color
+ PATH=(custom, no user)
+ LANG=C.UTF-8
SourcePackage: nplan
UpgradeStatus: No upgrade log present (probably fresh install)
** Also affects: nplan (Ubuntu Xenial)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1714267
Title:
segfault on bad usage of generator
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nplan/+bug/1714267/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs