Date: Thu, 23 Dec 2004 23:07:33 +0100 From: Max Laier <max@love2party.net> To: freebsd-hackers@freebsd.org Subject: Re: Kernel crash w/o reason Message-ID: <200412232307.41735.max@love2party.net> In-Reply-To: <Pine.LNX.4.61.0412232230270.11442@yvahk01.tjqt.qr> References: <Pine.LNX.4.61.0412232230270.11442@yvahk01.tjqt.qr>
next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart2831018.LNFbnJmc60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 23 December 2004 22:44, Jan Engelhardt wrote: > for some reason, the Freebsd (5.3) kernel crashes whenever I do "simple > operations", in conjunction with a (self-written) kernel module. > > I have trimmed the original program down from approx 120 KB to the 7 KB > (lots of spacing and tabs :) to follow the common advise to find the > shortest codepiece showing the problem. > Well, you can retrieve the short prog at > http://linux01.org/~jengelh/BUG.tbz2 Both files (rpldev.c and rpld.c) seem > perfectly fine, but ... > see rpld.c for the details of the crash. > > Hope someone can shed some light on this. 1) In kmi_fops.d_open(): | if(!mtx_trylock(&Open_lock)) { return EBUSY; } | return 0; this can not work. You cannot return to userland with a lock acquired. 2) If you report a problem, try to provide an error message. In this case a= =20 crashdump/panic string. When you do kernel programming you should always ru= n=20 in a debug kernel. To debug this specific problem WITNESS is helpful. 3) The details about your specific problem here are insufficient. 4) Why on earth do you use gmake? What's wrong with bsd.*.mk? It's a whole = lot=20 easier. =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart2831018.LNFbnJmc60 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBy0GtXyyEoT62BG0RAvmqAJ0dkjwxj8IIWUz1OOD3R2UBKi4W2QCfc/Fz KCmwnFhQVyEQVQAZbFZfiuc= =W+jG -----END PGP SIGNATURE----- --nextPart2831018.LNFbnJmc60--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412232307.41735.max>