ndoutils segfault

Jelle Smet nagios at smetj.net
Wed Aug 5 12:19:23 CEST 2009


Hendrik Baecker <andurin <at> 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 ndo2db_db_query (idi=0x7fff79aab0b0, buf=0xc19dc0
"SELECT instance_id FROM nagios_instances WHERE instance_name='default'")
    at db.c:551
#25 0x00000000004102dc in ndo2db_db_hello (idi=0x7fff79aab0b0) at db.c:296
#26 0x00000000004105ca in ndo2db_db_query (idi=0x7fff79aab0b0, buf=0xc19d50
"SELECT instance_id FROM nagios_instances WHERE instance_name='default'")
    at db.c:551
#27 0x00000000004102dc in ndo2db_db_hello (idi=0x7fff79aab0b0) at db.c:296
#28 0x00000000004105ca in ndo2db_db_query (idi=0x7fff79aab0b0, buf=0xc19ce0
"SELECT instance_id FROM nagios_instances WHERE instance_name='default'")
    at db.c:551
#29 0x00000000004102dc in ndo2db_db_hello (idi=0x7fff79aab0b0) at db.c:296
#30 0x00000000004105ca in ndo2db_db_query (idi=0x7fff79aab0b0, buf=0xc19c70
"SELECT instance_id FROM nagios_instances WHERE instance_name='default'")
    at db.c:551
#31 0x00000000004102dc in ndo2db_db_hello (idi=0x7fff79aab0b0) at db.c:296
#32 0x00000000004105ca in ndo2db_db_query (idi=0x7fff79aab0b0, buf=0xc19c00
"SELECT instance_id FROM nagios_instances WHERE instance_name='default'")
    at db.c:551
#33 0x00000000004102dc in ndo2db_db_hello (idi=0x7fff79aab0b0) at db.c:296
#34 0x00000000004105ca in ndo2db_db_query (idi=0x7fff79aab0b0, buf=0xc19b90
"SELECT instance_id FROM nagios_instances WHERE instance_name='default'")
    at db.c:551
#35 0x00000000004102dc in ndo2db_db_hello (idi=0x7fff79aab0b0) at db.c:296
#36 0x00000000004105ca in ndo2db_db_query (idi=0x7fff79aab0b0, buf=0xc19b20
"SELECT instance_id FROM nagios_instances WHERE instance_name='default'")
    at db.c:551
#37 0x00000000004102dc in ndo2db_db_hello (idi=0x7fff79aab0b0) at db.c:296
#38 0x00000000004105ca in ndo2db_db_query (idi=0x7fff79aab0b0, buf=0xc19ab0
"SELECT instance_id FROM nagios_instances WHERE instance_name='default'")
    at db.c:551
---Type <return> to continue, or q <return> to quit---





------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july




More information about the Developers mailing list