Nagios 3.0 RC2: Segmentation faults after starting
Christian Schneemann
cschneemann at suse.de
Thu Feb 14 13:59:38 CET 2008
On Thursday February 14 2008 11:27:00 am Hendrik Bäcker wrote:
> Christian Schneemann schrieb:
> > On Thursday February 14 2008 10:53:26 am Hendrik Bäcker wrote:
> > [...]
> >
> >>> (no debugging symbols found)
> >>
> >> Please try again with a modified makefile.
> >>
> >> You need to 'enable' the CFLAGS used for valgrind in base/Makefile and
> >> re-compile the binary.
> >> After that try to run nagios against the binary in base/nagios or do a
> >>
> >> make install-unstripped
> >>
> >> That should include debug information to the binary and the gdb should
> >> be more verbose.
> >
> > It seems that nagios is compiled with all debug options.
>
> If this would be true the 'bt' should print out some linenumbers ;)
So, now this is the output from gdb:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47124238627328 (LWP 23816)]
0x000000000043b90a in process_check_result_queue
(dirname=0x596770 "/var/spool/nagios") at utils.c:2252
2252 while((dirfile=readdir(dirp))!=NULL){
(gdb) bt
#0 0x000000000043b90a in process_check_result_queue
(dirname=0x596770 "/var/spool/nagios") at utils.c:2252
#1 0x000000000041c536 in reap_check_results () at checks.c:149
#2 0x0000000000429119 in handle_timed_event (event=0x5e4220) at events.c:1235
#3 0x0000000000429701 in event_execution_loop () at events.c:941
#4 0x00000000004120fe in main (argc=<value optimized out>, argv=<value
optimized out>, env=0x7fffb3e03970) at nagios.c:795
(gdb) l
2247 logit(NSLOG_CONFIG_ERROR,TRUE,"Error: Could not open
check result queue directory '%s' for reading.\n",dirname);
2248 return ERROR;
2249 }
2250
2251 /* process all files in the directory... */
2252 while((dirfile=readdir(dirp))!=NULL){
2253
2254 /* create /path/to/file */
2255
snprintf(file,sizeof(file),"%s/%s",dirname,dirfile->d_name);
2256 file[sizeof(file)-1]='\x0';
>
>
> -
> Hendrik
--
Christian Schneemann
-------------------------------------
SUSE LINUX Products GmbH,
Maxfeldstr. 5, D - 90409 Nürnberg
Phone: +49 (0)911 - 740 53 0
e-mail: cschneemann at suse.de
-------------------------------------
SUSE LINUX Products GmbH, GF: Markus Rex
HRB 16746 (AG Nürnberg)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
More information about the Developers
mailing list