reproducible "panic: page fault" with clang-compiled nvidia-driver

David Wolfskill david at catwhisker.org
Tue Mar 5 18:29:10 UTC 2013


On Tue, Mar 05, 2013 at 07:01:39PM +0100, kron wrote:
> Hello,
> 
> I have 100% reproducible "page fault" kernel panics on 9-STABLE
> (FreeBSD 9.1-STABLE #0 r247842M)
> 
> It needs two conditions together:
> 1. nvidia-driver built by clang
> 2. nvidia_load="YES" in loader.conf

Hmmm...  I don't see a problem; I am running:

FreeBSD g1-235.catwhisker.org 9.1-STABLE FreeBSD 9.1-STABLE #393  r247828M/247839: Tue Mar  5 05:11:27 PST 2013     root at g1-235.catwhisker.org:/usr/obj/usr/src/sys/CANARY  i386

using nvidia-driver built by clang -- e..g:

...
===>  Building for nvidia-driver-310.32
===> src (all)
@ -> /usr/src/sys
machine -> /usr/src/sys/i386/include
x86 -> /usr/src/sys/x86/include
...
clang -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\"310.32\" -D__KERNEL__ -DNVRM -Wno-unused-function -Wuninitialized -O -UDEBUG -U_DEBUG -DNDEBUG -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I. -I. -I@ -I@/contrib/altq -fno-common   -mno-aes -mno-avx -mno-mmx -mno-sse -msoft-float -ffreestanding -fstack-protector -std=iso9899:1999 -Qunused-arguments -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option  -Wno-error-tautological-compare -Wno-error-empty-body  -Wno-error-parentheses-equality -c nvidia_ctl.c
clang -O2 -pipe -fno-strict-aliasing -DNV_VERSION_STRING=\"310.32\" -D__KERNEL__ -DNVRM -Wno-unused-function -Wuninitialized -O -UDEBUG -U_DEBUG -DNDEBUG -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I. -I. -I@ -I@/contrib/altq -fno-common   -mno-aes -mno-avx -mno-mmx -mno-sse -msoft-float -ffreestanding -fstack-protector -std=iso9899:1999 -Qunused-arguments -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option  -Wno-error-tautological-compare -Wno-error-empty-body  -Wno-error-parentheses-equality -c nvidia_dev.c
....


Referring to <http://docs.freebsd.org/mail/current/svn-src-stable-9.html>,
the most recent commits to stable/9 (in most-recent-first sequence) are:

* r247850 - stable/9/sys/dev/mxge
* r247846 - stable/9/libexec/rtld-elf
* r247828 - in stable: 8/sys/dev/mfi 9/sys
* r247827 - in stable: 8/share/man/man4 8/
* r247803 - stable/9/sbin/devd
* r247802 - stable/9/sbin/devd

so I believe that your sources @r247842M should be equivalent to mine
@r247828M.

(The cause for the "M" flag in my case is the change I made locally to
src/sys/conf/newvers.sh to report the SVN revision a bit differently.)

Note that I'm running i386; that may be a difference.

> ...

Peace,
david
-- 
David H. Wolfskill				david at catwhisker.org
Taliban: Evil men with guns afraid of truth from a 14-year old girl.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20130305/f52818e3/attachment.sig>


More information about the freebsd-stable mailing list