> Christian Schneemann schrieb:
> > On Thursday February 14 2008 10:53:26 am Hendrik B=E4cker 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=20
(dirname=3D0x596770 "/var/spool/nagios") at utils.c:2252
2252 while((dirfile=3Dreaddir(dirp))!=3DNULL){
(gdb) bt
#0 0x000000000043b90a in process_check_result_queue=20
(dirname=3D0x596770 "/var/spool/nagios") at utils.c:2252
#1 0x000000000041c536 in reap_check_results () at checks.c:149
#2 0x0000000000429119 in handle_timed_event (event=3D0x5e4220) at events.c=
:1235
#3 0x0000000000429701 in event_execution_loop () at events.c:941
#4 0x00000000004120fe in main (argc=3D, argv=3D, env=3D0x7fffb3e03970) at nagios.c:795
(gdb) l
2247 logit(NSLOG_CONFIG_ERROR,TRUE,"Error: Could not ope=
n=20
check result queue directory '%s' for reading.\n",dirname);
2248 return ERROR;
2249 }
2250
2251 /* process all files in the directory... */
2252 while((dirfile=3Dreaddir(dirp))!=3DNULL){
2253
2254 /* create /path/to/file */
2255 =20
snprintf(file,sizeof(file),"%s/%s",dirname,dirfile->d_name);
2256 file[sizeof(file)-1]=3D'\x0';
>
>
> -
> Hendrik
=2D-=20
Christian Schneemann
=2D------------------------------------
SUSE LINUX Products GmbH,
Maxfeldstr. 5, D - 90409 N=FCrnberg
Phone:=A0=A0+49 (0)911 - 740 53 0
e-mail:=[email protected]
=2D------------------------------------
SUSE LINUX Products GmbH, GF: Markus Rex
HRB 16746 (AG N=FCrnberg)
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]