Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jun 2014 19:43:53 +1000
From:      Darren Reed <darrenr@freebsd.org>
To:        Mateusz Guzik <mjguzik@gmail.com>, freebsd-hackers@freebsd.org
Subject:   Re: FreeBSD 10.0 adaptive mutex with strange mtx_lock value = panic
Message-ID:  <539C1959.30203@freebsd.org>
In-Reply-To: <20140614084847.GA8122@dft-labs.eu>
References:  <539BFEC4.1020103@freebsd.org> <20140614084847.GA8122@dft-labs.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
On 14/06/2014 6:48 PM, Mateusz Guzik wrote:
...
> This is a 'destroyed mutex' state, i.e. you are doing mtx_lock after
> mtx_destroy.
> 
> A kernel with INVARIANTS enabled wold tell you that straight away.

I added "options INVARIANTS" to a kernel and recompiled..

Well, I tried to recompile - compiling ends like this:

cam_periph.o: In function `cam_periph_find':
/usr/src/sys/amd64/compile/DEBUG/../../../cam/cam_periph.c:301:
undefined reference to `__mtx_assert'
cam_periph.o: In function `cam_periph_release_locked_buses':
/usr/src/sys/amd64/compile/DEBUG/../../../cam/cam_periph.c:382:
undefined reference to `__mtx_assert'
cam_periph.o: In function `camperiphfree':
/usr/src/sys/amd64/compile/DEBUG/../../../cam/cam_periph.c:603:
undefined reference to `__mtx_assert'
cam_periph.o: In function `cam_periph_release':
/usr/src/sys/amd64/compile/DEBUG/../../../cam/cam_periph.c:409:
undefined reference to `__mtx_assert'
cam_periph.o: In function `cam_periph_hold':
/usr/src/sys/amd64/compile/DEBUG/../../../cam/cam_periph.c:430:
undefined reference to `__mtx_assert'
...

Darren




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?539C1959.30203>