2.0a1 SEGV on FreeBSD 4.x Was: [Nagios-users]: Perl problems in Nagios 2.0a1

Stanley Hopcroft Stanley.Hopcroft at IPAustralia.Gov.AU
Wed Aug 18 08:15:27 CEST 2004


Dear Folks,

The fact that Nag 2.x is a threaded application (uses pthread_Foo()) 
has certain implications for systems, usually BSD based (in partic 
FreeBSD 4.x), that 'struggle' with thread support.

AFAIK, on FreeBSD 4.x systems these threaded applications are either
patched or have thread support disabled or partly so :-

Perl with thread API (>= 5.6. Perls are usually built without thread 
                      support)
mySQL
ntop

Nag 2.x performance may be problematic on such systems.

In fact, Nag 2.x does _not_ SEGV at exit() (vi) when compiled without 
embedded Perl support.

It would be good to see how Nag 2.x goes on FreeBSD 5.x with its claimed 
improvements to threads (KSEs).

Yours sincerely.

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

tsitc> gdb nagios
GNU gdb 4.18 (FreeBSD)
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you 
are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for 
details.
This GDB was configured as "i386-unknown-freebsd"...Deprecated bfd_read 
called at 
/usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c 
line 2627 in elfstab_build_psymtabs
Deprecated bfd_read called at 
/usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c 
line 933 in fill_symbuf

(gdb) set args -v /usr/local/nagios/etc/nagios.cfg
(gdb) r
Starting program: /usr/home/anwsmh/build/nagios-cvs/base/nagios -v 
/usr/local/nagios/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/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) bt
#0  0x281e9da4 in .cerror () from /usr/lib/libc.so.4
#1  0x2827acbf in _exit () from /usr/lib/libc_r.so.4
#2  0x281e9ca3 in exit () from /usr/lib/libc.so.4
#3  0x8052776 in main (argc=3, argv=0xbfbffb4c, env=0xbfbffb5c) at 
nagios.c:434
(gdb) 

Not withstanding the comments above, the bt shows that death results 
from exit(result);

I can't understand why exit(anything) should die.

 /* the config files were okay, so run the pre-flight check */
                else{
  
                        printf("Running pre-flight check on 
configuration data...\n\n");
  
                        /* run the pre-flight check to make sure things 
look okay... */
                        result=pre_flight_check();
 
                        if(result==OK)
                                printf("\nThings look okay - No serious 
problems were detected during the pre-flight check\n");
                        else{
                                printf("\n***> One or more problems was 
encountered while running the pre-flight check...\n");
                                printf("\n");
                                printf("     Check your configuration 
file(s) to ensure that they contain valid\n");
                                printf("     directives and data 
defintions.  If you are upgrading from a previous\n");
                                printf("     version of Nagios, you 
should be aware that some variables/definitions\n");
                                printf("     may have been removed or 
modified in this version.  Make sure to read\n");
                                printf("     the HTML documentation 
regarding the config files, as well as the\n");
                                printf("     'Whats New' section to find 
out what has changed.\n\n");
                                }
                        }
 
                /* clean up after ourselves */
                cleanup();
 
                /* exit */
                exit(result);
                }



-------------------------------------------------------
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