2.0a1 SEGV on FreeBSD 4.x Was: [Nagios-users]: Perl problems in Nagios 2.0a1 (Tom DE BLENDE (GCC))

Stanley Hopcroft Stanley.Hopcroft at IPAustralia.Gov.AU
Tue Aug 17 12:06:20 CEST 2004


Dear Ladies and Gentlemen,

On FreeBSD RELENG 4 (4.9-RELEASE-p2), Nag 2.0a SEGVs with an error from 
the reentrant C library (libc_r, FreeBSD 4.x threaded C library with at 
least partial support for POSIX threads).

Details are :-

./configure  --with-gd-inc=/usr/local/include/gd 
--with-gd-lib=/usr/local/lib --enable-embedded-perl --with-perlcache

 ..

*** Configuration summary for nagios 2.0a1 11-18-2003 ***:

 General Options:
 -------------------------
        Nagios executable:  nagios
        Nagios user/group:  nagios,nagios
       Command user/group:  nagios,nagios
            Embedded Perl:  yes, with caching
             Event Broker:  yes
        Install ${prefix}:  /usr/local/nagios
                Lock file:  ${prefix}/var/nagios.lock
           Init directory:  /usr/local/etc/rc.d
                  Host OS:  freebsd4.9

 Web Interface Options:
 ------------------------
                 HTML URL:  http://localhost/nagios/
                  CGI URL:  http://localhost/nagios/cgi-bin/
 Traceroute (used by WAP):  /usr/sbin/traceroute

 External Data Routines:
 ------------------------
              Status data:  Default (text file)
             Comment data:  Default (text file)
            Downtime data:  Default (text file)
          Peformance data:  Default (external commands)


Review the options above for accuracy.  If they look okay,
type 'make all' to compile the main program and CGIs.

tsitc> make all
cd ./base && make
gcc -g -O2 -I/usr/local/include/gd    
-I/usr/libdata/perl/5.00503/mach/CORE  -DHAVE_CONFIG_H -DNSCORE -c 
broker.c
gcc -g -O2 -I/usr/local/include/gd    
-I/usr/libdata/perl/5.00503/mach/CORE  -DHAVE_CONFIG_H -DNSCORE -c 
nebmods.c
nebmods.c: In function `neb_add_module':

 .. yada

gcc -g -O2 -I/usr/local/include/gd    
-I/usr/libdata/perl/5.00503/mach/CORE  -DHAVE_CONFIG_H -DNSCORE -o 
nagiostats nagiostats.c -pthread  -L/usr/local/lib -lm 
cd ./cgi && make
gcc -g -O2 -I/usr/local/include/gd    
-I/usr/libdata/perl/5.00503/mach/CORE  -DHAVE_CONFIG_H -DNSCGI -c 
getcgi.c
gcc -g -O2 -I/usr/local/include/gd    
-I/usr/libdata/perl/5.00503/mach/CORE  -DHAVE_CONFIG_H -DNSCGI -c 
cgiutils.c
gcc -g -O2 -I/usr/local/include/gd    
-I/usr/libdata/perl/5.00503/mach/CORE  -DHAVE_CONFIG_H -DNSCGI -c 
cgiauth.c
gcc -g -O2 -I/usr/local/include/gd    
-I/usr/libdata/perl/5.00503/mach/CORE  -DHAVE_CONFIG_H -DNSCGI -c -o 
objects-cgi.o ../common/objects.c
gcc -g -O2 -I/usr/local/include/gd    
-I/usr/libdata/perl/5.00503/mach/CORE  -DHAVE_CONFIG_H -DNSCGI -c -o 
xobjects-cgi.o ../xdata/xodtemplate.c
gcc -g -O2 -I/usr/local/include/gd    
-I/usr/libdata/perl/5.00503/mach/CORE  -DHAVE_CONFIG_H -DNSCGI -c -o 
statusdata-cgi.o ../common/statusdata.c
gcc -g -O2 -I/usr/local/include/gd    
-I/usr/libdata/perl/5.00503/mach/CORE  -DHAVE_CONFIG_H -DNSCGI -c -o 
xstatusdata-cgi.o ../xdata/xsddefault.c
gcc -g -O2 -I/usr/local/include/gd    
-I/usr/libdata/perl/5.00503/mach/CORE  -DHAVE_CONFIG_H -DNSCGI -pthread  
-L/usr/local/lib -o avail.cgi avail.c getcgi.o cgiutils.o cgiauth.o  
objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o 
gcc -g -O2 -I/usr/local/include/gd    
-I/usr/libdata/perl/5.00503/mach/CORE  -DHAVE_CONFIG_H -DNSCGI -c -o 
comments-cgi.o ../common/comments.c
gcc -g -O2 -I/usr/local/include/gd    
-I/usr/libdata/perl/5.00503/mach/CORE  -DHAVE_CONFIG_H -DNSCGI -c -o 
xcomments-cgi.o ../xdata/xcddefault.c
gcc -g -O2 -I/usr/local/include/gd    
-I/usr/libdata/perl/5.00503/mach/CORE  -DHAVE_CONFIG_H -DNSCGI -c -o 
downtime-cgi.o ../common/downtime.c
gcc -g -O2 -I/usr/local/include/gd    
-I/usr/libdata/perl/5.00503/mach/CORE  -DHAVE_CONFIG_H -DNSCGI -c -o 
xdowntime-cgi.o ../xdata/xdddefault.c
gcc -g -O2 -I/usr/local/include/gd    
-I/usr/libdata/perl/5.00503/mach/CORE  -DHAVE_CONFIG_H -DNSCGI -pthread  
-L/usr/local/lib -o cmd.cgi cmd.c getcgi.o cgiutils.o cgiauth.o  
objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o 
comments-cgi.o xcomments-cgi.o downtime-cgi.o xdowntime-cgi.o 
gcc -g -O2 -I/usr/local/include/gd    
-I/usr/libdata/perl/5.00503/mach/CORE  -DHAVE_CONFIG_H -DNSCGI -pthread  
-L/usr/local/lib -o config.cgi config.c  getcgi.o cgiutils.o cgiauth.o  
objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o 

.. yada

*** Compile finished ***

If the main program and CGIs compiled without any errors, you
can continue with installing Nagios as follows (type 'make'
without any arguments for a list of all possible options):

(gdb) set args -v ../etc/nagios.cfg 
(gdb) r
Starting program: /usr/local/nagios/bin/nagios -v ../etc/nagios.cfg

Nagios 2.0a1
Copyright (c) 1999-2004 Ethan Galstad (nagios at nagios.org)
Last Modified: 11-18-2003
License: GPL

Reading configuration data...

Error in configuration file '/usr/local/nagios/bin/../etc/nagios.cfg' - 
Line 278 (UNKNOWN VARIABLE)

***> One or more problems was encountered while processing the config 
files...

     Check your configuration file(s) to ensure that they contain valid
     directives and data defintions.  If you are upgrading from a 
previous
     version of Nagios, you should be aware that some 
variables/definitions
     may have been removed or modified in this version.  Make sure to 
read
     the HTML documentation regarding the config files, as well as the
     'Whats New' section to find out what has changed.


Program received signal SIGSEGV, Segmentation fault.
0x281e9da4 in .cerror () from /usr/lib/libc.so.4
(gdb) q
The program is running.  Exit anyway? (y or n) y


The config is my old 1.2 config. It may be only a matter of disabling 
the pthread support.

Yours sincerely.

 -- 
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------

'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'

from Meditation 17, J Donne.


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285




More information about the Developers mailing list