Nagios 3.0.1 + OpenBSD 4.3 = segfault (core dumped)
Brian A. Seklecki
lavalamp at spiritual-machines.org
Fri May 16 05:39:05 CEST 2008
gdb `which nagios` /path/to/core.file
gdb> bt
Paste results here
~BAS
On Fri, 16 May 2008, nuffnough wrote:
> 2008/5/16 Brian A. Seklecki <lavalamp at spiritual-machines.org>:
>> On Fri, 16 May 2008, nuffnough wrote:
>>
>>> 2008/5/16 Brian A. Seklecki <lavalamp at spiritual-machines.org>:
>>>>
>>>> On Fri, 2008-05-16 at 09:26 +1000, nuffnough wrote:
>>>>>
>>>>> hi...
>>>>>
>>>>> I have been running nagios for quite a long time now. Never really
>>
>> if the GNU configure script doesnt have a --with-debugging, export CFLAGS=-g
>> and export COPTs=-g
>
>
> Thanks for that. Did as you suggest. Tailing kdump shows:
>
> 18223 nagios RET sigprocmask 0
> 18223 nagios CALL mprotect(0x3c022000,0x1000,0x3)
> 18223 nagios RET mprotect 0
> 18223 nagios CALL mprotect(0x3c022000,0x1000,0x1)
> 18223 nagios RET mprotect 0
> 18223 nagios CALL sigprocmask(0x3,0)
> 18223 nagios RET sigprocmask -65793/0xfffefeff
> 18223 nagios CALL sigprocmask(0x1,0xffffffff)
> 18223 nagios RET sigprocmask 0
> 18223 nagios CALL mprotect(0x20e95000,0x2000,0x3)
> 18223 nagios RET mprotect 0
> 18223 nagios CALL mprotect(0x20e95000,0x2000,0x1)
> 18223 nagios RET mprotect 0
> 18223 nagios CALL sigprocmask(0x3,0)
> 18223 nagios RET sigprocmask -65793/0xfffefeff
> 18223 nagios CALL sigprocmask(0x1,0xffffffff)
> 18223 nagios RET sigprocmask 0
> 18223 nagios CALL mprotect(0x20e95000,0x2000,0x3)
> 18223 nagios RET mprotect 0
> 18223 nagios CALL mprotect(0x20e95000,0x2000,0x1)
> 18223 nagios RET mprotect 0
> 18223 nagios CALL sigprocmask(0x3,0)
> 18223 nagios RET sigprocmask -65793/0xfffefeff
> 18223 nagios CALL sigprocmask(0x1,0xffffffff)
> 18223 nagios RET sigprocmask 0
> 18223 nagios CALL mprotect(0x20e95000,0x2000,0x3)
> 18223 nagios RET mprotect 0
> 18223 nagios CALL mprotect(0x20e95000,0x2000,0x1)
> 18223 nagios RET mprotect 0
> 18223 nagios CALL sigprocmask(0x3,0)
> 18223 nagios RET sigprocmask -65793/0xfffefeff
> 18223 nagios CALL sigprocmask(0x1,0xffffffff)
> 18223 nagios RET sigprocmask 0
> 18223 nagios CALL mprotect(0x20e95000,0x2000,0x3)
> 18223 nagios RET mprotect 0
> 18223 nagios CALL mprotect(0x20e95000,0x2000,0x1)
> 18223 nagios RET mprotect 0
> 18223 nagios CALL sigprocmask(0x3,0)
> 18223 nagios RET sigprocmask -65793/0xfffefeff
> 18223 nagios CALL sigprocmask(0x1,0xffffffff)
> 18223 nagios RET sigprocmask 0
> 18223 nagios CALL mprotect(0x20e95000,0x2000,0x3)
> 18223 nagios RET mprotect 0
> 18223 nagios CALL mprotect(0x20e95000,0x2000,0x1)
> 18223 nagios RET mprotect 0
> 18223 nagios CALL sigprocmask(0x3,0)
> 18223 nagios RET sigprocmask -65793/0xfffefeff
> 18223 nagios CALL sigprocmask(0x1,0xffffffff)
> 18223 nagios RET sigprocmask 0
> 18223 nagios CALL mprotect(0x20e95000,0x2000,0x3)
> 18223 nagios RET mprotect 0
> 18223 nagios CALL mprotect(0x20e95000,0x2000,0x1)
> 18223 nagios RET mprotect 0
> 18223 nagios CALL sigprocmask(0x3,0)
> 18223 nagios RET sigprocmask -65793/0xfffefeff
> 18223 nagios CALL mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
> 18223 nagios RET mmap -2129010688/0x8119e000
> 18223 nagios CALL mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
> 18223 nagios RET mmap -2007908352/0x8851c000
> 18223 nagios CALL munmap(0x85522000,0x80e)
> 18223 nagios RET munmap 0
> 18223 nagios CALL fstat(0x6,0xcfbc9ef0)
> 18223 nagios RET fstat 0
> 18223 nagios CALL fcntl(0x6,0x3,0)
> 18223 nagios RET fcntl 4
> 18223 nagios CALL fcntl(0x6,0x4,0)
> 18223 nagios RET fcntl 0
> 18223 nagios CALL close(0x6)
> 18223 nagios RET close 0
> 18223 nagios CALL open(0x893d2e00,0,0)
> 18223 nagios NAMI "/usr/local/nagios/etc/objects/hostgroups.cfg"
> 18223 nagios RET open 6
> 18223 nagios CALL fcntl(0x6,0x3,0)
> 18223 nagios RET fcntl 0
> 18223 nagios CALL fcntl(0x6,0x4,0x4)
> 18223 nagios RET fcntl 0
> 18223 nagios CALL fstat(0x6,0xcfbc9f60)
> 18223 nagios RET fstat 0
> 18223 nagios CALL mmap(0,0x578,0x1,0x2,0x6,0,0,0)
> 18223 nagios RET mmap -2067492864/0x84c49000
> 18223 nagios CALL munmap(0x84c49000,0x578)
> 18223 nagios RET munmap 0
> 18223 nagios CALL fstat(0x6,0xcfbc9ef0)
> 18223 nagios RET fstat 0
> 18223 nagios CALL fcntl(0x6,0x3,0)
> 18223 nagios RET fcntl 4
> 18223 nagios CALL fcntl(0x6,0x4,0)
> 18223 nagios RET fcntl 0
> 18223 nagios CALL close(0x6)
> 18223 nagios RET close 0
> 18223 nagios CALL open(0x893d2f80,0,0)
> 18223 nagios NAMI "/usr/local/nagios/etc/objects/services.cfg"
> 18223 nagios RET open 6
> 18223 nagios CALL fcntl(0x6,0x3,0)
> 18223 nagios RET fcntl 0
> 18223 nagios CALL fcntl(0x6,0x4,0x4)
> 18223 nagios RET fcntl 0
> 18223 nagios CALL fstat(0x6,0xcfbc9f60)
> 18223 nagios RET fstat 0
> 18223 nagios CALL mmap(0,0x13338,0x1,0x2,0x6,0,0,0)
> 18223 nagios RET mmap -1952940032/0x8b988000
> 18223 nagios CALL mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
> 18223 nagios RET mmap 2081120256/0x7c0b6000
> 18223 nagios CALL mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
> 18223 nagios RET mmap -2096656384/0x83079000
> 18223 nagios CALL mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
> 18223 nagios RET mmap -2045337600/0x8616a000
> 18223 nagios CALL mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
> 18223 nagios RET mmap -2108530688/0x82526000
> 18223 nagios CALL mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
> 18223 nagios RET mmap 2094522368/0x7cd7e000
> 18223 nagios CALL mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
> 18223 nagios RET mmap 2130206720/0x7ef86000
> 18223 nagios CALL mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
> 18223 nagios RET mmap 2118778880/0x7e4a0000
> 18223 nagios PSIG SIGSEGV SIG_DFL code 1 addr=0x7ef85fff trapno=1
> 18223 nagios NAMI "nagios.core"
> (END)
>
>
>
> Suggests to me that it is parsing the config files okay, and then
> crashing out on what happens next. This was done on a nagios -v,
> rather than nagios -d, btw. I was just running the pre-flight checks.
>
> what can I do next to nail this down?
>
l8*
-lava (Brian A. Seklecki - Pittsburgh, PA, USA)
http://www.spiritual-machines.org/
"Guilty? Yeah. But he knows it. I mean, you're guilty.
You just don't know it. So who's really in jail?"
~Maynard James Keenan
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list