Page 1 of 1

check_nagios on Macos/darwin: Program received signal SIGABR

Posted: Thu May 15, 2014 10:04 am
by julient
Hello

I'm testing nagios (4.0.6 w plugins 2.0.1) on Macos (10.9.2) and it seems check_nagios is crashing...

Code: Select all

$ /opt/local/libexec/nagios/check_nagios -t 30 -e 15 -F /opt/local/var/nagios/nagios.log -C nagios
Abort trap: 6
$ gdb-apple /opt/local/libexec/nagios/check_nagios
(gdb) run  -t 30 -e 15 -F /opt/local/var/nagios/nagios.log -C /opt/local/bin/nagios
[...]
Program received signal SIGABRT, Aborted.
0x00007fff86ec0866 in __pthread_kill ()
(gdb) bt
#0  0x00007fff86ec0866 in __pthread_kill ()
#1  0x00007fff9363d35c in pthread_kill ()
#2  0x00007fff93d0cb1a in abort ()
#3  0x00007fff93d0cc91 in abort_report_np ()
#4  0x00007fff93d30860 in __chk_fail ()
#5  0x00007fff93d30870 in __chk_fail_overlap ()
#6  0x00007fff93d308a1 in __chk_overlap ()
#7  0x00007fff93d30a6c in __strcpy_chk ()
#8  0x000000010000198e in main ()
From google, it can be a failed assert or a buffer overflow like error

Any idea how to debug/fix that ?

Thanks

Note: Macports Portfile here https://trac.macports.org/ticket/43371 (and bumped to 2.0.1)

Re: check_nagios on Macos/darwin: Program received signal SI

Posted: Thu May 15, 2014 5:24 pm
by tmcdonald
This is definitely an interesting one. I can't say I have ever used Nagios on a Mac and I certainly don't have one to test on personally. Have you tried asking on any Mac-related programming forums? We don't really build the plugins in a Mac environment so any help we provide would be mostly educated guesses.