Package: ifupdown Version: 0.7.51 Severity: normal Tags: upstream patch Dear Maintainer,
* What led up to the situation? I don't know when the problem appeared, but i think, it's after including commit 661:6cd0fd2addca "Configure the loopback interface by default only if user hasn't" into the shipped version of ifupdown. * Procedure to reproduce # ls -l /etc/network/interfaces -rw------- 1 root root 1.6K Sep 11 11:22 /etc/network/interfaces # ifup eth0 zsh: segmentation fault ifup eth0 * What was the outcome of this action? segfault * What outcome did you expect instead? No segfault. * Note: When running with root privileges, it does not segfault. -- System Information: Debian Release: 8.0 APT prefers testing-updates APT policy: (500, 'testing-updates'), (500, 'testing') Architecture: i386 (i686) Kernel: Linux 3.19.0-rc1-and-eudyptula-00056-g393d295 (PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages ifupdown depends on: ii adduser 3.113+nmu3 ii initscripts 2.88dsf-58 ii iproute 1:3.16.0-2 ii iproute2 3.16.0-2 ii libc6 2.19-13 ii lsb-base 4.1+Debian13+nmu1 Versions of packages ifupdown recommends: ii isc-dhcp-client [dhcp-client] 4.3.1-5 Versions of packages ifupdown suggests: ii net-tools 1.60-26+b1 pn ppp <none> pn rdnssd <none> -- no debconf information
diff -r 626689d5ef94 config.c --- a/config.c Sat Nov 29 14:32:32 2014 +0100 +++ b/config.c Tue Dec 30 12:17:09 2014 +0100 @@ -134,6 +134,9 @@ } defn = read_interfaces_defn(defn, filename); + if (!defn) { + return NULL; + } if (!no_loopback) { interface_defn *lo_if = malloc(sizeof(interface_defn));