Segfault during pre-flight check

Thomas Guyot-Sionnest Thomas at zango.com
Thu Jun 29 20:42:39 CEST 2006


(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 <Address 0x6e616973 out of bounds>) 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: nagios-devel-bounces at lists.sourceforge.net 
> [mailto:nagios-devel-bounces at lists.sourceforge.net] 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 <nagiossource>/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: nagios at nagios.org
> 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&kid=120709&bid=263057&
> dat=121642
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3022 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20060629/5d99d4e5/attachment.bin>
-------------- next part --------------
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&kid=120709&bid=263057&dat=121642
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list