Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 263383 - USE=perl net-analyzer/nagios-core-3.1.0 segfault
Summary: USE=perl net-analyzer/nagios-core-3.1.0 segfault
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
: 263385 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-22 16:55 UTC by Alejandro Muñiz
Modified: 2012-02-09 10:50 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---
sping: Bugday?


Attachments
STrace of segfault (strace nagios-startup.txt,18.23 KB, text/plain)
2009-11-23 19:58 UTC, Sven Andersen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alejandro Muñiz 2009-03-22 16:55:35 UTC
I have a "/etc/init.d/nagios start" segfault when USE=perl net-analyzer/nagios-core-3.1.0

WiRe ~ # /etc/init.d/nagios start
* Starting nagios...                                                                                                                                                                                       [ !! ]
* ERROR: nagios failed to start

/var/log/messages

Mar 22 17:45:08 WiRe [39702.087038] nagios[22905]: segfault at 7fff4b2b1fd0 ip 00007f7142d7f1d3 sp 00007fff4b295550 error 4 in libperl.so.1.5.8[7f7142d49000+125000]
Mar 22 17:45:08 WiRe nagios: Nagios 3.1.0 starting... (PID=22905)
Mar 22 17:45:08 WiRe nagios: Local time is Sun Mar 22 17:45:08 CET 2009
Mar 22 17:45:08 WiRe nagios: LOG VERSION: 2.0
Mar 22 17:45:08 WiRe /etc/init.d/nagios[22890]: ERROR: nagios failed to start


WiRe ~ # /usr/sbin/nagios -v /etc/nagios/nagios.cfg 

Nagios 3.1.0
Copyright (c) 1999-2009 Ethan Galstad (http://www.nagios.org)
Last Modified: 01-25-2009
License: GPL

Reading configuration data...
   Read main config file okay...
Processing object config file '/etc/nagios/objects/commands.cfg'...
Processing object config file '/etc/nagios/objects/contacts.cfg'...
Processing object config file '/etc/nagios/objects/timeperiods.cfg'...
Processing object config file '/etc/nagios/objects/templates.cfg'...
Processing object config file '/etc/nagios/objects/localhost.cfg'...
   Read object config files okay...

Running pre-flight check on configuration data...

Checking services...
        Checked 8 services.
Checking hosts...
        Checked 1 hosts.
Checking host groups...
        Checked 1 host groups.
Checking service groups...
        Checked 0 service groups.
Checking contacts...
        Checked 1 contacts.
Checking contact groups...
        Checked 1 contact groups.
Checking service escalations...
        Checked 0 service escalations.
Checking service dependencies...
        Checked 0 service dependencies.
Checking host escalations...
        Checked 0 host escalations.
Checking host dependencies...
        Checked 0 host dependencies.
Checking commands...
        Checked 24 commands.
Checking time periods...
        Checked 5 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check


WiRe ~ # emerge --info
Portage 2.1.6.9 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r4-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7250_@_2.00GHz-with-glibc2.2.5
Timestamp of tree: Sun, 22 Mar 2009 15:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p10-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.3
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.6
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.arcticnetwork.ca/pub/gentoo/ http://gentoo.arcticnetwork.ca/source/ "
LDFLAGS="-Wl,-O1"
LINGUAS="es_ES es"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dts dvd dvdr dvdread eds emboss encode evo fam fbcon fbcondecor firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv ida ipv6 isdnlog jpeg lcms ldap libnotify lm_sensors mad midi mikmod mmx mp3 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis xml xorg xulrunner xv zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es_ES es" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS




[ebuild   R   ] net-analyzer/nagios-plugins-1.4.13-r2  USE="ipv6 ldap nagios-dns nagios-ping nagios-ssh snmp ssl -mysql -nagios-game -nagios-ntp -postgres -radius -samba -ups" 2,227 kB
[ebuild   R   ] net-analyzer/nagios-core-3.1.0  USE="apache2 web -debug -lighttpd -perl* -vim-syntax" 0 kB
[ebuild   R   ] net-analyzer/nagios-3.1.0  0 kB



And whith or without USE=perl enabled, you need more args?:

WiRe plugins # /usr/lib/nagios/plugins/check_ping 
check_ping: Could not parse arguments
Usage:check_ping -H <host_address> -w <wrta>,<wpl>% -c <crta>,<cpl>%
 [-p packets] [-t timeout] [-4|-6]

WiRe plugins # /usr/lib/nagios/plugins/check_ping  -H 127.0.0.1 -w 200,20% -c 600,40% -p 15 -t 5 -4
CRITICAL - You need more args!!!
Could not open pipe:
Comment 1 Tony Vroon (RETIRED) gentoo-dev 2009-03-22 17:46:00 UTC
*** Bug 263385 has been marked as a duplicate of this bug. ***
Comment 2 Chris Gianelloni 2009-03-30 20:15:41 UTC
What USE flags do you have on perl/libperl?
Comment 3 Alejandro Muñiz 2009-03-30 23:01:25 UTC
[ebuild   R   ] sys-devel/libperl-5.8.8-r2  USE="berkdb gdbm -debug -ithreads"
Comment 4 Alejandro Muñiz 2009-04-16 17:56:35 UTC
[ebuild   R   ] dev-lang/perl-5.8.8-r5  USE="berkdb gdbm -build -debug -doc -ithreads -perlsuid" 9,887 kB
Comment 5 Tobias Scherbaum (RETIRED) gentoo-dev 2009-07-12 16:16:17 UTC
(In reply to comment #0)
> I have a "/etc/init.d/nagios start" segfault when USE=perl
> net-analyzer/nagios-core-3.1.0

That's still a problem with 3.1.2? Please test and report back.
Comment 6 Jochen Maes 2009-07-29 12:56:16 UTC
having segfault with following packages
[ebuild   R   ] net-analyzer/nagios-core-3.1.2  USE="perl web -apache2 -debug -lighttpd -vim-syntax" 0 kB
[ebuild   R   ] dev-lang/perl-5.8.8-r6  USE="berkdb gdbm -build -debug -doc -ithreads -perlsuid" 0 kB
Comment 7 Tobias Scherbaum (RETIRED) gentoo-dev 2009-07-30 16:57:03 UTC
(In reply to comment #6)
> having segfault with following packages
> [ebuild   R   ] net-analyzer/nagios-core-3.1.2  USE="perl web -apache2 -debug
> -lighttpd -vim-syntax" 0 kB
> [ebuild   R   ] dev-lang/perl-5.8.8-r6  USE="berkdb gdbm -build -debug -doc
> -ithreads -perlsuid" 0 kB
> 

Hi sejo :) Are you able to reproduce that segfault and give us a backtrace?
Comment 8 Sven Andersen 2009-11-23 19:58:47 UTC
Created attachment 211012 [details]
STrace of segfault

strace of startup until segfault for nagios 3.2
Comment 9 Tobias Scherbaum (RETIRED) gentoo-dev 2009-12-31 09:55:02 UTC
(In reply to comment #8)
> Created an attachment (id=211012) [details]
> STrace of segfault
> 
> strace of startup until segfault for nagios 3.2
> 

Would need a backtrace ...
Comment 10 Marcin Mirosław 2011-07-28 12:33:28 UTC
Timeout... nagios-core isn't in tree now.
Comment 11 Pacho Ramos gentoo-dev 2012-02-09 10:50:31 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > Created an attachment (id=211012) [details]
> > STrace of segfault
> > 
> > strace of startup until segfault for nagios 3.2
> > 
> 
> Would need a backtrace ...