Re: [Nagios-devel] Segfault during pre-flight check

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Segfault during pre-flight check

Post by Guest »

This is a multi-part message in MIME format.

------=_NextPart_000_0223_01C69B8A.45038AD0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

(gdb) run -v /etc/nagios/nagios.cfg
Starting program: /usr/src/nagios-2.4/base/nagios -v /etc/nagios/nagios.cfg
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 26363)]

Nagios 2.4
Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
Last Modified: 05-31-2006
License: GPL

Reading configuration data...


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 26363)]
0xb7ebcf34 in strcmp () from /lib/libc.so.6
(gdb) bt
#0 0xb7ebcf34 in strcmp () from /lib/libc.so.6
#1 0x080a0aca in xodtemplate_compare_strings2 (string1a=0x81f1898
"mia.mdcprod.com", string1b=0x81f18c8 "Load", string2a=0x81ec8d8
"mia.mdcprod.com",
string2b=0x6e616973 ) at
../xdata/xodtemplate.c:8456
#2 0x080a1305 in xodtemplate_sort_serviceextinfo () at
../xdata/xodtemplate.c:9224
#3 0x080a0a32 in xodtemplate_sort_objects () at ../xdata/xodtemplate.c:8426
#4 0x080924ce in xodtemplate_read_config_data (main_config_file=0x8196a40
"admin_web,web,license", options=32511, cache=0) at
../xdata/xodtemplate.c:256
#5 0x0808ab87 in read_object_config_data (main_config_file=0x8191050
"/etc/nagios/nagios.cfg", options=32511, cache=0) at ../common/objects.c:97
#6 0x0806d870 in read_all_object_data (main_config_file=0x8191050
"/etc/nagios/nagios.cfg") at config.c:193
#7 0x0806870c in main (argc=0, argv=0xbffff794, env=0xbffff7a4) at
nagios.c:389
(gdb)

Thanks for looking into this.

Thomas

> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf
> Of Ethan Galstad
> Sent: June 29, 2006 14:10
> To: Nagios-Devel
> Subject: Re: [Nagios-devel] Segfault during pre-flight check
>
> Hi Thomas -
>
> Can you try the following to generate a backtrace? This would be
> helpful in tracking down the problem...
>
> 1. Use the non-stripped nagios binary (located in the base/ subdir of
> the Nagios distro) for this procedure. If you're using an
> RPM install,
> get the source and compile it for yourself first.
>
> 2. From the command line...
>
> cd /base
> gdb nagios
>
> 3. From within gdb..
>
> run -v /etc/nagios/nagios.cfg
>
> 4. Once it segfault, gdb will stop and display an error message. Use
> the following command from within gdb to get a backtrace and
> see where
> they problem occurred...
>
> bt
>
> Send the output to (preferably) the list, or directly to
> myself if you'd
> like. Thanks!
>
> Thomas Guyot-Sionnest wrote:
> > Hi,
> >
> > I'm maintaining a pretty big nagios setup (about 60 hosts/
> 600 services and
> > plan to grow that by 3-4 times). Most of the config is
> using templates to
> > save config lines and maintenance time. Every host has an
> extinfo (one
> > definition for each hostsgroup).
> >
> > Now I started adding services extinfos to do some fancy
> things with e-mail
> > pages, and ran in a strange segfault bug. To explain it
> better I'll give an
> > overview of my config.
> > check
> [snip]
> >
> >
> > I'm sorry I didn't have time to cleanup all the config .
> I'm currently
> > setting another nagios box, so if I run into this problem
> at the very
> > beginning I'll keep that config and send it over. I also
> tried to get a core
> > dump but it didn't worked, I'm not sure if I need to enable
> some options at
> > compile time...
> >
> > Thanks
> >
> > Thomas
> >
>
>
> Ethan Galstad,
> Nagios Developer
> ---
> Email: [email protected]
> Website: http://www.nagios.org
>
> Using Tomcat but need to do more? Need to support web
> services, security?
> Get stuff done quickly with pre-integrated technology to make
> your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on
> Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk ... bid=263057&
> dat=121642
> _______________________________________________
> Nagios-devel mailing list
> [email protected]

...[email truncated]...


This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked