Segmentation Fault

Andreas Ericsson ae at op5.se
Wed Jun 15 01:09:35 CEST 2005


Carlos Vicente wrote:
> Hi,
> 
> I just wanted to report a possible bug in the code that pre-checks the
> configuration.  There was a circular path caused by an incorrect parent
> definition, and I could see the nagios process using up 99% CPU for
> about a minute before segfaulting.  I would have expected a more
> graceful failure output than a core dump.  ;-)
> 
> Here's the output.  I can send the core file off the list if anyone
> wants it.
> 

A backtrace would be more useful, provided you haven't stripped the 
binary, or better yet the configuration so this can be included in 
regression tests.

gdb -c core
(gdb) bt
....
....
(gdb) quit

> cv
> 
> # bin/nagios -v etc/nagios.cfg
> 
> Nagios 2.0b3
> Copyright (c) 1999-2005 Ethan Galstad (www.nagios.org)
> Last Modified: 04-03-2005
> License: GPL
> 
> Reading configuration data...
> 
> Running pre-flight check on configuration data...
> 
> Checking services...
>         Checked 3241 services.
> Checking hosts...
>         Checked 1595 hosts.
> Checking host groups...
>         Checked 104 host groups.
> Checking service groups...
>         Checked 13 service groups.
> Checking contacts...
>         Checked 61 contacts.
> Checking contact groups...
>         Checked 26 contact groups.
> Checking service escalations...
>         Checked 1587 service escalations.
> Checking service dependencies...
>         Checked 0 service dependencies.
> Checking host escalations...
>         Checked 1564 host escalations.
> Checking host dependencies...
>         Checked 0 host dependencies.
> Checking commands...
>         Checked 46 commands.
> Checking time periods...
>         Checked 9 time periods.
> Checking extended host info definitions...
>         Checked 0 extended host info definitions.
> Checking extended service info definitions...
>         Checked 1566 extended service info definitions.
> Checking for circular paths between hosts...
> Segmentation fault (core dumped)
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click




More information about the Developers mailing list