Re: [Nagios-devel] ndoutils segfault

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

Re: [Nagios-devel] ndoutils segfault

Post by Guest »

Hendrik Baecker process-zero.de> writes:

>
>
> Am 23.07.2009 10:59 Uhr, schrieb Jelle Smet:
> > Hi all,
> >
> > I'm trying to get ndoutils working. I'm compiling from source but I keep
> > getting a segfault.
> >
> > My platform: sles 10 SP2 x86_64
> >
>
> cut off
>
> > nagios: ndomod: Successfully flushed 73 queued items to data sink.
> > kernel: ndo2db[12491]: segfault at 00007fffe1fa8ff0 rip 00002b44c8b69d0d
> > rsp 00007fffe1fa8fc0 error 6
> > nagios: ndomod: Error writing to data sink! Some output may get lost...
> >
> > It appears to be a known issue here and there, but suggested solution
> > was to compile against /usr/lib64/mysql if you're running 64bit, but
> > it's not a solution for me.
> >
> > Anyone an idea?
>
> ndo2db shouldn't segfault and runs fine on my 64bit system (Debian 5,
> MySQL 5.s.th).
>
> Could you please run a short session with gdb?
>
> gdb --args /path/to/ndoutils-1.4b8/src/ndo2db-3x -c
> /path/to/nagios/etc/ndo2db.cfg
>
> Within gdb type 'r'
> Wait until the segfault occurs and now type 'bt'
> 'k' to kill the program
> 'q' to exit gdb
>
> Please post the output on list.
>
> -
> Hendrik
>


Annoyingly,
after recompiling ndoutils-1.4b8 from scratch the problem doesn't occur anymore
and everything works as it should be. Unfortunately I can't reproduce the error
anymore.

Thanks for the effort Hendrik!

Just for the sake of completeness here's the requested output:

(gdb) bt
#0 0x00002ae831865dbc in vfprintf () from /lib64/libc.so.6
#1 0x00002ae83188a08d in vasprintf () from /lib64/libc.so.6
#2 0x00002ae83186f288 in asprintf () from /lib64/libc.so.6
#3 0x00000000004102c3 in ndo2db_db_hello (idi=0x7fff79aab0b0) at db.c:294
#4 0x00000000004105ca in ndo2db_db_query (idi=0x7fff79aab0b0, buf=0xc1a220
"SELECT instance_id FROM nagios_instances WHERE instance_name='default'")
at db.c:551
#5 0x00000000004102dc in ndo2db_db_hello (idi=0x7fff79aab0b0) at db.c:296
#6 0x00000000004105ca in ndo2db_db_query (idi=0x7fff79aab0b0, buf=0xc1a1b0
"SELECT instance_id FROM nagios_instances WHERE instance_name='default'")
at db.c:551
#7 0x00000000004102dc in ndo2db_db_hello (idi=0x7fff79aab0b0) at db.c:296
#8 0x00000000004105ca in ndo2db_db_query (idi=0x7fff79aab0b0, buf=0xc1a140
"SELECT instance_id FROM nagios_instances WHERE instance_name='default'")
at db.c:551
#9 0x00000000004102dc in ndo2db_db_hello (idi=0x7fff79aab0b0) at db.c:296
#10 0x00000000004105ca in ndo2db_db_query (idi=0x7fff79aab0b0, buf=0xc1a0d0
"SELECT instance_id FROM nagios_instances WHERE instance_name='default'")
at db.c:551
#11 0x00000000004102dc in ndo2db_db_hello (idi=0x7fff79aab0b0) at db.c:296
#12 0x00000000004105ca in ndo2db_db_query (idi=0x7fff79aab0b0, buf=0xc1a060
"SELECT instance_id FROM nagios_instances WHERE instance_name='default'")
at db.c:551
#13 0x00000000004102dc in ndo2db_db_hello (idi=0x7fff79aab0b0) at db.c:296
#14 0x00000000004105ca in ndo2db_db_query (idi=0x7fff79aab0b0, buf=0xc19ff0
"SELECT instance_id FROM nagios_instances WHERE instance_name='default'")
at db.c:551
#15 0x00000000004102dc in ndo2db_db_hello (idi=0x7fff79aab0b0) at db.c:296
#16 0x00000000004105ca in ndo2db_db_query (idi=0x7fff79aab0b0, buf=0xc19f80
"SELECT instance_id FROM nagios_instances WHERE instance_name='default'")
at db.c:551
#17 0x00000000004102dc in ndo2db_db_hello (idi=0x7fff79aab0b0) at db.c:296
#18 0x00000000004105ca in ndo2db_db_query (idi=0x7fff79aab0b0, buf=0xc19f10
"SELECT instance_id FROM nagios_instances WHERE instance_name='default'")
at db.c:551
#19 0x00000000004102dc in ndo2db_db_hello (idi=0x7fff79aab0b0) at db.c:296
#20 0x00000000004105ca in ndo2db_db_query (idi=0x7fff79aab0b0, buf=0xc19ea0
"SELECT instance_id FROM nagios_instances WHERE instance_name='default'")
at db.c:551
#21 0x00000000004102dc in ndo2db_db_hello (idi=0x7fff79aab0b0) at db.c:296
#22 0x00000000004105ca in ndo2db_db_query (idi=0x7fff79aab0b0, buf=0xc19e30
"SELECT instance_id FROM nagios_instances WHERE instance_name='default'")
at db.c:551
#23 0x00000000004102dc in ndo2db_db_hello (idi=0x7fff79aab0b0) at db.c:296
#24 0x00000000004105ca in ndo

...[email truncated]...


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