ifquery segfaults if /run/network/ifstate file is not found

Bug #1416793 reported by Pas
146
This bug affects 33 people
Affects Status Importance Assigned to Milestone
ifupdown (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

This makes the ifup@.service systemd unit file sad.

version 0.7.48.1ubuntu6 [amd64]

command: ifquery --state eth0

after a mkdir /run/network/ and a touch /run/network/ifstate the command above runs, but produces no output.

Thanks for looking into this!

Tags: amd64 vivid
Pas (pasthelod)
summary: - ifquery segfaults if /run/network/ifquery file is not found
+ ifquery segfaults if /run/network/ifstate file is not found
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ifupdown (Ubuntu):
status: New → Confirmed
tags: added: vivid
tags: added: amd64
Revision history for this message
Patrik Lundquist (patrik-lundquist) wrote :

Happens to me on most boots of a Vivid server.

Changed in ifupdown (Ubuntu):
importance: Undecided → Medium
Revision history for this message
zasran (erik-zasran) wrote :

See this message in dmesg:

[ 60.153267] ifquery[680]: segfault at 1 ip 00000000004031c8 sp 00007fffdb50e560 error 4 in ifup[400000+d000]

No other mentions of ifquery. Not sure if it's because of the missing file /run/network/ifquery (I do have /run/network/ifstate)

Revision history for this message
S. W. (cebit2006) wrote :

+1

still happens on

Ubuntu 15.10 (4.2.0-19-generic)

 ifquery[687]: segfault at 1 ip 0000000000403187 sp 00007ffdf5061fa0 error 4 in ifup[400000+d000]

Revision history for this message
Will Buckner (willbuckner) wrote :

I'm also seeing ifquery segfaults on all of my c4.xlarge instances running 15.10 with all updates applied.

Revision history for this message
Wladimir J. van der Laan (laanwj) wrote :

I have a similar, but different segfault at VM startup in ifquery with Ubuntu 15.10:

[ 4.184292] ifquery[392]: segfault at 0 ip 00007feb81430b10 sp 00007ffd18d03388 error 4 in libc-2.21.so[7feb813a5000+1c0000]

addr2line -aipfC -e /lib/x86_64-linux-gnu/libc-2.21.so 0x8bb10
0x000000000008bb10: strncmp at ??:?

So it segfaults in a string comparison somewhere. Unfortunately, as I can't reproduce it besides the startup process, I don't have more of a traceback.

Revision history for this message
Wladimir J. van der Laan (laanwj) wrote :

(this is with the Ubuntu cloud image, networking is working fine BTW, apart from the error message I don't think anything is wrong)

Revision history for this message
Imre Deak (ideak) wrote :

I saw this issue in 15.10 and reported it to the upstream Debian maintainer, see [1]. The fix attached there is now applied to the upstream ifupdown git repository.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=819287

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.