Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 604304 - net-dns/dnsmasq-2.76-r1: segfault on start
Summary: net-dns/dnsmasq-2.76-r1: segfault on start
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-01 12:01 UTC by Tino
Modified: 2017-03-04 01:34 UTC (History)
0 users

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


Attachments
dnsmasq-2.76-r1 (strace.2.76-r1.log,90.83 KB, text/plain)
2017-01-02 10:41 UTC, Tino
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tino 2017-01-01 12:01:25 UTC
net-dns/dnsmasq-2.76-r1::gentoo  USE="dhcp inotify ipv6 nls -auth-dns -conntrack -dbus -dhcp-tools -dnssec -idn -lua -script (-selinux
) -static -tftp" LINGUAS="de -es -fi -fr -id -it -no -pl -pt_BR -ro"

dnsmasq.conf:
bogus-priv
filterwin2k
resolv-file=/etc/resolv.dnsmasq
local=/burg/
address=/fritz.box/192.168.1.1
expand-hosts
domain=burg
dhcp-range=192.168.1.65,192.168.1.126,12h
dhcp-host=... several host defs
dhcp-option=option:router,192.168.1.1
dhcp-option=42,192.168.1.1
log-queries
log-dhcp

Jan  1 04:52:54 gentle kernel: dnsmasq[31064]: segfault at 38 ip 000000000041c59d sp 00007fff3af5d540 error 6 in dnsmasq[400000+43000]
Jan  1 04:58:47 gentle kernel: dnsmasq[31167]: segfault at 38 ip 000000000041c59d sp 00007fff9f8b2480 error 6 in dnsmasq[400000+43000]
Jan  1 04:59:32 gentle kernel: dnsmasq[31239]: segfault at 38 ip 000000000041c59d sp 00007fffca0b75b0 error 6 in dnsmasq[400000+43000]
Comment 1 Tino 2017-01-01 12:02:19 UTC
Portage 2.3.3 (python 3.4.5-final-0, default/linux/amd64/13.0, gcc-4.9.3, glibc-2.23-r3, 3.17.3-gentoo x86_64)
=================================================================
System uname: Linux-3.17.3-gentoo-x86_64-Intel-R-_Atom-TM-_CPU_D525_@_1.80GHz-with-gentoo-2.3
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 12 Dec 2016 11:15:01 +0000
sh bash 4.4_p5-r1
ld GNU ld (Gentoo 2.27 p1.0) 2.27
app-shells/bash:          4.4_p5-r1::gentoo
dev-lang/perl:            5.24.1_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.0::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --exclude-from=/etc/portage/rsync_excludes --delete-excluded

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=atom -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=atom -O2"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ ftp://mirror.netcologne.de/gentoo/ http://ftp.halifax.rwth-aachen.de/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes --delete-excluded"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 apache2 avahi berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 jpeg lame logrotate maildir mmx mmxext modules mp3 mpm-prefork multilib ncurses nls nptl openmp pam pcre php png python readline seccomp session sse sse2 ssl symlink syslog tcpd unicode xattr zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock dbd deflate dir env expires ext_filter file_cache filter headers ident include info log_config logio mem_cache mime mime_magic proxy proxy_connect proxy_http rewrite setenvif so socache_shmcb speling status unique_id unixd 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="pc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-0" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
Comment 2 Agostino Sarubbo gentoo-dev 2017-01-01 22:41:54 UTC
are you able to obtain a stacktrace?
Comment 3 Tino 2017-01-02 10:41:27 UTC
Created attachment 458316 [details]
dnsmasq-2.76-r1

created with
strace -o strace.log /usr/sbin/dnsmasq -x /var/run/dnsmasq.pid --user=dnsmasq --group=dnsmasq
Comment 4 jorgicio 2017-03-04 01:34:36 UTC
There came out a dnsmasq-2.76-r1 version with a patch, but it failed at patch.

hackenherr:~# ebuild /usr/portage/net-dns/dnsmasq/dnsmasq-2.76-r1.ebuild install                                                                               [22:32:36]
>>> Downloading 'http://mirrors.rit.edu/gentoo/distfiles/dnsmasq-2.76.tar.xz'
--2017-03-03 22:32:55--  http://mirrors.rit.edu/gentoo/distfiles/dnsmasq-2.76.tar.xz
Resolviendo mirrors.rit.edu (mirrors.rit.edu)... 129.21.171.72, 2620:8d:8000:15:225:90ff:fefd:344c
Conectando con mirrors.rit.edu (mirrors.rit.edu)[129.21.171.72]:80... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: 480796 (470K) [application/octet-stream]
Grabando a: “/usr/portage/distfiles/dnsmasq-2.76.tar.xz”

/usr/portage/distfiles/dnsmasq-2.76.tar.xz 100%[======================================================================================>] 469,53K   471KB/s    in 1,0s    

2017-03-03 22:32:56 (471 KB/s) - “/usr/portage/distfiles/dnsmasq-2.76.tar.xz” guardado [480796/480796]

 * dnsmasq-2.76.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                        [ ok ]
>>> Unpacking source...
>>> Unpacking dnsmasq-2.76.tar.xz to /var/tmp/portage/net-dns/dnsmasq-2.76-r1/work
>>> Source unpacked in /var/tmp/portage/net-dns/dnsmasq-2.76-r1/work
>>> Preparing source in /var/tmp/portage/net-dns/dnsmasq-2.76-r1/work/dnsmasq-2.76 ...
 * Applying patches from /etc/portage/patches/net-dns/dnsmasq-2.76-r1 ...
 *   dnsmasq-2.76-r1-segfault.patch ...
1 out of 1 hunk FAILED -- saving rejects to file src/network.c.rej                                                                                                 [ !! ]
 * ERROR: net-dns/dnsmasq-2.76-r1::gentoo failed (prepare phase):
 *   patch -p1  failed with /etc/portage/patches/net-dns/dnsmasq-2.76-r1/dnsmasq-2.76-r1-segfault.patch
 * 
 * Call stack:
 *               ebuild.sh, line  115:  Called src_prepare
 *             environment, line 2856:  Called default
 *      phase-functions.sh, line  807:  Called default_src_prepare
 *      phase-functions.sh, line  872:  Called __eapi6_src_prepare
 *             environment, line  247:  Called eapply_user
 *             environment, line  778:  Called eapply '/etc/portage/patches/net-dns/dnsmasq-2.76-r1'
 *             environment, line  755:  Called _eapply_patch '/etc/portage/patches/net-dns/dnsmasq-2.76-r1/dnsmasq-2.76-r1-segfault.patch' '  '
 *             environment, line  697:  Called __helpers_die 'patch -p1  failed with /etc/portage/patches/net-dns/dnsmasq-2.76-r1/dnsmasq-2.76-r1-segfault.patch'
 *   isolated-functions.sh, line  117:  Called die
 * The specific snippet of code:
 *   		die "$@"
 * 
 * If you need support, post the output of `emerge --info '=net-dns/dnsmasq-2.76-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-dns/dnsmasq-2.76-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-dns/dnsmasq-2.76-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-dns/dnsmasq-2.76-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/net-dns/dnsmasq-2.76-r1/work/dnsmasq-2.76'
 * S: '/var/tmp/portage/net-dns/dnsmasq-2.76-r1/work/dnsmasq-2.76'