Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 548402 - =net-misc/dhcpcd-6.8.1: segfault in multi-interface scenario
Summary: =net-misc/dhcpcd-6.8.1: segfault in multi-interface scenario
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-02 15:29 UTC by Casper Ti. Vector
Modified: 2015-05-08 07:41 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Casper Ti. Vector 2015-05-02 15:29:24 UTC
With dhcpcd v6.8.1, when connected a Layer-2 tinc VPN and running dhcpcd on the corresponding TAP interface, removing the default route obtained from DHCP on the TAP interface causes dhcpcd on the underlying ethernet or wlan interface to segfault.  This does not happen with <net-misc/dhcpcd-6.8.1 on my machine.

(So the condition that triggers this bug is somewhat complex; I try to describe it clearly but cannot make a guarantee, so please feel free to ask for more details.)

Reproducible: Always

Steps to Reproduce:
1. # emerge -v1 '=net-misc/dhcpcd-6.8.1'; dhcpcd -k eth0; dhcpcd -wL eth0
2. # /etc/init.d/tincd.NETNAME restart
3. # dhcpcd -wL -C '20-resolv.conf' tap
4. # ip route del default via "$VPN_DHCP_GATEWAY"
5. $ grep 'removing default route' /var/log/messages
6. $ grep 'dhcpcd' /var/log/kern.log

Actual Results:  
5. 2015-05-02 23:00:51 +08:00 [dhcpcd@27764] tap: removing default route via xx.xx.xx.xx
6. 2015-05-02 23:00:51 +08:00 [kernel] [ 6377.182036] dhcpcd[26355]: segfault at 58 ip 000000000041bf12 sp 00007ffc4c45b4a8 error 4 in dhcpcd[400000+3f000]
(Additional comment: they always happen simultaneously.)

Expected Results:  
No segfault should ever occur.

Portage 2.2.18 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop, gcc-4.9.2, glibc-2.20-r2, 4.0.1-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.0.1-gentoo-x86_64-Intel-R-_Core-TM-_i7-3720QM_CPU_@_2.60GHz-with-gentoo-2.2
KiB Mem:     7995300 total,   5603932 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Fri, 01 May 2015 00:45:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.25 p1.0) 2.25
app-shells/bash:          4.3_p33-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.3.5-r1::gentoo
dev-util/cmake:           3.2.1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.14::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25::gentoo
sys-devel/gcc:            4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.0::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo-zh
    location: /usr/overlay/gentoo-zh
    sync-type: git
    sync-uri: https://github.com/microcai/gentoo-zh.git
    masters: gentoo
    priority: 25

gentoo
    location: /usr/portage
    sync-type: websync
    sync-uri: rsync://rsync.cn.gentoo.org/gentoo-portage
    priority: 50

haskell
    location: /usr/overlay/haskell
    sync-type: git
    sync-uri: https://github.com/gentoo-haskell/gentoo-haskell.git
    masters: gentoo
    priority: 75

caspervector
    location: /usr/local/portage
    masters: gentoo
    priority: 100

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -march=ivybridge -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-pipe -march=ivybridge -O2"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --keep-going=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirrors.ustc.edu.cn/gentoo/ http://mirror.bjtu.edu.cn/gentoo/"
INSTALL_MASK="/etc/systemd /usr/lib/systemd /usr/lib64/systemd"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS=""
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--human-readable -6 --timeout=16"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cdr cli cracklib crypt cxx dri dts dvd dvdr emboss encode exif fam ffmpeg fftw firefox flac fontconfig fortran geoip gif glamor gpg gpm gtk iconv ipv6 jack jpeg lcms libedit libnotify mad maildir mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png ppds qt3support qt4 readline sdl session smp socks5 sse sse2 ssl startup-notification svg tcpd threads tiff truetype udev unicode upower usb v4l vaapi vim-syntax vorbis wxwidgets x264 xcb xft xinerama xml xv xvid zlib zsh-completion" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="i965 intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, LC_ALL, PORTAGE_BUNZIP2_COMMAND, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

net-misc/dhcpcd-6.8.1::gentoo was built with the following:
USE="embedded ipv6 udev" ABI_X86="64"
Comment 1 Roy Marples 2015-05-03 15:40:28 UTC
This should be fixed in dhcpcd-6.8.2
Comment 2 Casper Ti. Vector 2015-05-03 16:09:11 UTC
(In reply to Roy Marples from comment #1)
> This should be fixed in dhcpcd-6.8.2

Thanks, will test then.
Comment 3 Casper Ti. Vector 2015-05-08 07:41:14 UTC
(In reply to Roy Marples from comment #1)
> This should be fixed in dhcpcd-6.8.2

Now it works for me.  Thanks very much!