Subject: Re: Nagios: Error detected by libpthread : Invalid mutex
To: Ajitabh Pandey <ajitabhpandey@gmail.com>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-users
Date: 04/09/2007 18:25:22
On Mon, Apr 09, 2007 at 12:17:30PM -0400, Ajitabh Pandey wrote:
> Matthias Scheler wrote:
> > On Sun, Apr 08, 2007 at 09:09:27PM -0400, Ajitabh Pandey wrote:
> >   
> >> # /etc/rc.d/nagios status I noticed that its not started up.
> >>
> >> So I checked
> >>     
> >
> > Where did that script come from? Most NetBSD style startup scripts
> > need to be enabled in "/etc/rc.conf".
> >   
> This script is the one which gets installed with nagios, using
> 
> # make install-init
> 
> >   
> >> # /opt/nagios/bin/nagios /opt/nagios/etc/nagios.cfg
> >>
> >> and there I got the following problem:
> >>
> >> nagios: Error detechted by libpthread: Invalid mutex
> >> Detected by file
> >> "/home/builds/ab/netbsd-3-1-RELEASE/src/lib/libpthread/pthread_mutex.c",
> >> line 334, function "pthread_mutex_unlock".
> >> See pthread(3) for more information.
> >>     
> >
> > That's a software bug. It is calling pthread_mutex_unlock() on a data
> > area which is not a properly initialized mutex. Linux threading
> > libraries seem to forgive such program errors, NetBSD's doesn't.
> >   
> So any way I can use self compiled Nagios in NetBSD, does some previous
> version known to work.

There is a version of nagios in pkgsrc, which works. I can't remember if there
is special patches in pkgsrc for this issue or not.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--