ifupdown segfaults

Bug #1517135 reported by Rustom
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ifupdown (Ubuntu)
New
Undecided
Unassigned

Bug Description

Note that I added this as comment on bug #1439109

It is actually more similar to #1432173 which is a duplicate of above

I get :

$ systemctl status -l ifup-wait-all-auto.service
● ifup-wait-all-auto.service - Wait for all "auto" /etc/network/interfaces to be up for network-online.target
   Loaded: loaded (/lib/systemd/system/ifup-wait-all-auto.service; static; vendor preset: enabled)
   Active: active (exited) since Mon 2015-11-16 07:33:22 IST; 27s ago
     Docs: man:interfaces(5)
           man:ifup(8)
  Process: 514 ExecStart=/bin/sh -ec for i in $(ifquery --list --exclude lo --allow auto); do INTERFACES="$INTERFACES$i "; done; [ -n "$INTERFACES" ] || exit 0; while ! ifquery --state $INTERFACES >/dev/null; do sleep 1; done; for i in $INTERFACES; do while [ -e /run/network/ifup-$i.pid ]; do sleep 0.2; done; done (code=exited, status=0/SUCCESS)
 Main PID: 514 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/ifup-wait-all-auto.service

Nov 16 07:32:53 xxx systemd[1]: Starting Wait for all "auto" /etc/network/interfaces to be up for network-online.target...
Nov 16 07:32:54 xxx sh[514]: Segmentation fault
Nov 16 07:33:22 xxx systemd[1]: Started Wait for all "auto" /etc/network/interfaces to be up for network-online.target.
$ sudo vi /etc/resolv.conf

I tried what looked like solutions offered here:
1.
$ sudo update-rc.d networking remove
$ sudo update-rc.d networking defaults

[I am assuming that r.cd is a misspelling of rc.d]

No change

2. Reinstalled ifupdown
I believe I used to see two segfaults. Now I see one

Ubuntu wily
ifupdown 0.7.54ubuntu1
systemd 225-1ubuntu9

$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto enp7s0
iface enp7s0 inet dhcp

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: ifupdown 0.7.54ubuntu1
ProcVersionSignature: Ubuntu 4.2.0-18.22-generic 4.2.3
Uname: Linux 4.2.0-18-generic x86_64
ApportVersion: 2.19.1-0ubuntu4
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Nov 17 22:26:04 2015
InstallationDate: Installed on 2012-12-22 (1060 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
SourcePackage: ifupdown
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Rustom (rustompmody) wrote :
Revision history for this message
Rustom (rustompmody) wrote :

Would just like to point out that

UpgradeStatus: No upgrade log present (probably fresh install)

is wrong.

One line above is
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
which is right -- thats when this machine was installed

And in my view this is clearly an upgrade problem because with 15.10 booted from live USB there is no such issue

Revision history for this message
Rustom (rustompmody) wrote : Re: [Bug 1517135] [NEW] ifupdown segfaults

On Tue, Nov 17, 2015 at 10:30 PM, Rustom <email address hidden> wrote:

> Public bug reported:
>
> Note that I added this as comment on bug #1439109
>
> It is actually more similar to #1432173 which is a duplicate of above
>
> I get :
>
> $ systemctl status -l ifup-wait-all-auto.service
> ● ifup-wait-all-auto.service - Wait for all "auto" /etc/network/interfaces
> to be up for network-online.target
> Loaded: loaded (/lib/systemd/system/ifup-wait-all-auto.service; static;
> vendor preset: enabled)
> Active: active (exited) since Mon 2015-11-16 07:33:22 IST; 27s ago
> Docs: man:interfaces(5)
> man:ifup(8)
> Process: 514 ExecStart=/bin/sh -ec for i in $(ifquery --list --exclude
> lo --allow auto); do INTERFACES="$INTERFACES$i "; done; [ -n "$INTERFACES"
> ] || exit 0; while ! ifquery --state $INTERFACES >/dev/null; do sleep 1;
> done; for i in $INTERFACES; do while [ -e /run/network/ifup-$i.pid ]; do
> sleep 0.2; done; done (code=exited, status=0/SUCCESS)
> Main PID: 514 (code=exited, status=0/SUCCESS)
> CGroup: /system.slice/ifup-wait-all-auto.service
>
> Nov 16 07:32:53 xxx systemd[1]: Starting Wait for all "auto"
> /etc/network/interfaces to be up for network-online.target...
> Nov 16 07:32:54 xxx sh[514]: Segmentation fault
> Nov 16 07:33:22 xxx systemd[1]: Started Wait for all "auto"
> /etc/network/interfaces to be up for network-online.target.
> $ sudo vi /etc/resolv.conf
>
> I tried what looked like solutions offered here:
> 1.
> $ sudo update-rc.d networking remove
> $ sudo update-rc.d networking defaults
>
> [I am assuming that r.cd is a misspelling of rc.d]
>
> No change
>
> 2. Reinstalled ifupdown
> I believe I used to see two segfaults. Now I see one
>
> Ubuntu wily
> ifupdown 0.7.54ubuntu1
> systemd 225-1ubuntu9
>
> $ cat /etc/network/interfaces
> # interfaces(5) file used by ifup(8) and ifdown(8)
> auto lo
> iface lo inet loopback
>
> auto enp7s0
> iface enp7s0 inet dhcp
>
>
[Just in case others look here]
It looks that commenting out all of /etc/network/interfaces seems to remove
this problem

[Does it cause new ones?? No idea... Right now net is up (wired) Wireless
is down but thats been so since wily upgrade, ie a couple of weeks]

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.