[Nagios-devel] Nagios 2.0a1 SIGSEGV problem solved - bug still present?

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

[Nagios-devel] Nagios 2.0a1 SIGSEGV problem solved - bug still present?

Post by Guest »

Dear,

Thanks to the help I received from Mr. Hopcroft, I managed to solve the=20
SIGSEGV problems I had with Nagios 2.0a1. Here is the output I had from g=
db:

[root@gcclo77 etc]# gdb ../bin/nagios
GNU gdb Red Hat Linux (6.0post-0.20040223.20rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you =
are
welcome to change it and/or distribute copies of it under certain=20
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for detail=
s.
This GDB was configured as "i386-redhat-linux-gnu"...Using host=20
libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) set args /usr/local/nagios/etc/nagios.cfg
(gdb) r
Starting program: /usr/local/nagios/bin/nagios=20
/usr/local/nagios/etc/nagios.cfg
[Thread debugging using libthread_db enabled]
[New Thread -1220216704 (LWP 22830)]

Nagios 2.0a1
Copyright (c) 1999-2004 Ethan Galstad ([email protected])
Last Modified: 11-18-2003
License: GPL

Nagios 2.0a1 starting... (PID=3D22830)
[New Thread -1220326480 (LWP 22839)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1220216704 (LWP 22830)]
0xb747ea6a in __strtol_internal () from /lib/tls/libc.so.6
(gdb) list
231 {"version",no_argument,0,'V'},
232 {"license",no_argument,0,'V'},
233 {"verify",no_argument,0,'v'},
234 {"daemon",no_argument,0,'d'},
235 {0,0,0,0}
236 };
237 #endif
238
239 /* make sure we have the correct number of command line=20
arguments */
240 if(argc,=20
"\001\000\000\000[F_=B7>=BA^=B7\027AF=B7_sta_@F=B7P\000\000\000L=BA^=B7t=B7=
^=B7\004=B3^=B7=EC\001`=B7\t\000\000\000=A8\237]=B7\020\005`=B7|\233]=B7=FE=
)F=B7=F8=C4=FF=BF=E65_=B7\000\000\000\000[F_=B7>=BA^=B7,\017R=B7\000\000\=
000\000\000\000\000\000\230xX=B7\230xX=B7\000\000\000\000=A4=CA=FF=BF=ABs=
I=B7\230=C6=FF=BF\000\000\000\000\001",=20
'\0' ,=20
"\220=CA=FF=BF=DC=ADI=B7X=C6=FF=BF=B4\201\000\000\001\000\000\000\000\000=
\000\000H=C5=FF=BF\002\000\000\000\001\000\000\000=CC=CA=FF=BFx=C9=FF=BF\=
000\000\000\000m\t\t"...
temp_ptr =3D 0x0
fp =3D (FILE *) 0x80a4358
host_name =3D 0x809b290 "frangocopy"
service_description =3D 0x809c538 "Backup"
data_type =3D 4
x =3D 19
temp_host =3D (host *) 0x0
temp_service =3D (service *) 0x82da188
temp_command =3D (command *) 0xbfffc800
var =3D 0xbfffc800 "state_history"
val =3D 0xbfffc80e "0"
current_time =3D 1094462915
scheduling_info_is_ok =3D 0
#2 0x08069d37 in read_initial_state_information=20
(main_config_file=3D0x809b008 "/usr/local/nagios/etc/nagios.cfg") at=20
sretention.c:99
No locals.
#3 0x08052413 in main (argc=3D134852616, argv=3D0x809b008) at nagios.c:6=
14
result =3D 134852616
error =3D 0
buffer =3D "Nagios 2.0a1 starting...=20
(PID=3D22830)\000\000\000\000=D1\233_=B7`=F8D=B7\000\000\000\000=20
\000\000\000\002\000\000\000=F0=F5D=B7=D4=FCD=B7u._=B7\000=20
]=

...[email truncated]...


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