Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 400821 - net-analyzer/nagios-nrpe-2.12-r102 nrpe_check_control segfaults
Summary: net-analyzer/nagios-nrpe-2.12-r102 nrpe_check_control segfaults
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sysadmin Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-25 20:23 UTC by Marcin Mirosław
Modified: 2012-08-27 09:34 UTC (History)
0 users

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 Marcin Mirosław 2012-01-25 20:23:07 UTC
# /usr/lib64/nagios/plugins/nrpe_check_control
Segmentation fault

# gdb /usr/lib64/nagios/plugins/nrpe_check_control
[...]
Reading symbols from /usr/lib64/nagios/plugins/nrpe_check_control...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/lib64/nagios/plugins/nrpe_check_control

Program received signal SIGSEGV, Segmentation fault.
__strcpy_chk () at ../sysdeps/x86_64/strcpy_chk.S:71
71      ../sysdeps/x86_64/strcpy_chk.S: No such file or directory.
        in ../sysdeps/x86_64/strcpy_chk.S
(gdb) bt
#0  __strcpy_chk () at ../sysdeps/x86_64/strcpy_chk.S:71
#1  0x0000555555554b10 in strcpy (__src=<optimized out>, __dest=0x7fffffffca00 "") at /usr/include/bits/string3.h:105
#2  main (argc=<optimized out>, argv=<optimized out>) at nrpe_check_control.c:34

Reproducible: Always
Comment 1 Marcin Mirosław 2012-01-26 12:15:04 UTC
I forgot about emerge --info:

# emerge --info
Portage 2.1.10.41 (hardened/linux/amd64, gcc-4.5.3, glibc-2.13-r4, 3.1.6-gentoo x86_64)
=================================================================
System uname: Linux-3.1.6-gentoo-x86_64-Intel-R-_Core-TM-2_CPU_4300_@_1.80GHz-with-gentoo-2.0.3
Timestamp of tree: Thu, 26 Jan 2012 11:45:02 +0000
ccache version 3.1.7 [enabled]
app-shells/bash:          4.1_p9
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/ccache:          3.1.7
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.2
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo zfs
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -g"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/openvpn/easy-rsa /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache collision-protect distlocks ebuild-locks fail-clean fixlafiles news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="pl_PL.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en pl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="-O"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/zfs"
SYNC="rsync://ftp.vectranet.pl/gentoo-portage/"
USE="acpi amd64 bash-completion caps hardened ipv6 mmx mmxext multilib sse sse2 sse3 ssse3 threads unicode urandom vim-syntax" DRACUT_MODULES="caps mdraid" ELIBC="glibc" GRUB_PLATFORMS="pc" KERNEL="linux" LINGUAS="en pl" USERLAND="GNU" XTABLES_ADDONS="tarpit"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-08-23 23:30:35 UTC
Please try again with 2.13 series.
Comment 3 Marcin Mirosław 2012-08-27 09:34:12 UTC
I've tried nrpe-2.13-r4 without success:

# gdb /usr/lib64/nagios/plugins/nrpe_check_control
[...]
Reading symbols from /usr/lib64/nagios/plugins/nrpe_check_control...Reading symbols from /usr/lib64/debug/usr/lib64/nagios/plugins/nrpe_check_control.debug...done.
done.
(gdb) run
Starting program: /usr/lib64/nagios/plugins/nrpe_check_control 
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7b308a0 in __strcpy_chk () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff7b308a0 in __strcpy_chk () from /lib64/libc.so.6
#1  0x000000000040079b in strcpy (__src=<optimized out>, __dest=0x7fffffffca30 "") at /usr/include/bits/string3.h:105
#2  main (argc=<optimized out>, argv=<optimized out>) at contrib/nrpe_check_control.c:32
(gdb) quit

Surely without gdb nrpe_check_control throws segfault also.