[Bug 1535648] Re: ifquery crashing

2016-03-07 Thread Alberto Salvia Novella
** Changed in: ifupdown (Ubuntu)
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1535648

Title:
  ifquery crashing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1535648/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1535648] Re: ifquery crashing

2016-03-06 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: ifupdown (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1535648

Title:
  ifquery crashing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1535648/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1535648] Re: ifquery crashing

2016-02-10 Thread Hadmut Danisch
typo:  meant ifquery --state   instead of ifstate


Need to do more checks, but seems to be fixed on Ubuntu 16.04, which comes with 
a newer version of ifupdown

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1535648

Title:
  ifquery crashing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1535648/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1535648] Re: ifquery crashing

2016-01-20 Thread Hadmut Danisch
I've found two problems:


1.) See /lib/systemd/system/ifup-wait-all-auto.service   the line 

  for i in $(ifquery --list --exclude lo --allow auto); do
INTERFACES="$INTERFACES$i "; done;

  There is  a space missing in "$INTERFACES$i "  it concatenates all
device names into one


2.) This ifquery-call just crashes:

# ifquery --state vlan0
Segmentation fault (core dumped)

# ifquery --state lo
Segmentation fault (core dumped)


for some reason it does not crash with eth0

# ifquery --state eth0


So please fix ifquery.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1535648

Title:
  ifquery crashing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1535648/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1535648] Re: ifquery crashing

2016-01-20 Thread Hadmut Danisch
Famous last words of strace -s 80 -f ifquery --state vlan0


arch_prctl(ARCH_SET_FS, 0x7fb790db1700) = 0
mprotect(0x7fb790bb2000, 16384, PROT_READ) = 0
mprotect(0x60c000, 4096, PROT_READ) = 0
mprotect(0x7fb790ddf000, 4096, PROT_READ) = 0
munmap(0x7fb790db3000, 171412)  = 0
fcntl(0, F_GETFD)   = 0
fcntl(1, F_GETFD)   = 0
fcntl(2, F_GETFD)   = 0
brk(0)  = 0x10f3000
brk(0x1114000)  = 0x1114000
open("/run/network/.ifstate.lock", O_RDONLY) = -1 ENOENT (No such file or 
directory)
open("/run/network/ifstate", O_RDONLY)  = -1 ENOENT (No such file or directory)
exit_group(1)   = ?
+++ exited with 1 +++

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1535648

Title:
  ifquery crashing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1535648/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1535648] Re: ifquery crashing

2016-01-20 Thread Hadmut Danisch
More analysis:

ifstate crashes if /run/network/ifstate is not present.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1535648

Title:
  ifquery crashing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1535648/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs