Bug 195806 - x11/nvidia-driver (340.46_1) kernel panic upon exit from X11 (FreeBSD 10.0-RELEASE)
Summary: x11/nvidia-driver (340.46_1) kernel panic upon exit from X11 (FreeBSD 10.0-RE...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Alexey Dokuchaev
URL: http://enrage.where-ever.za.net/vikas...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-08 11:53 UTC by Vikash Badal
Modified: 2014-12-15 07:43 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (danfe)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vikash Badal 2014-12-08 11:53:31 UTC
When exiting X  or killing the PID of X ( using the latest nvidia-driver ) my laptop panics:

Fatal trap 12: page fault while in kernel mode
cpuid = 3; apic id = 06
fault virtual address	= 0x0
fault code		= supervisor read instruction, page not present
instruction pointer	= 0x20:0x0
stack pointer	        = 0x28:0xfffffe02355dd7b0
frame pointer	        = 0x28:0xfffffe0001af8fe8
code segment		= base rx0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 1857 (Xorg)
trap number		= 12
panic: page fault
cpuid = 3
KDB: stack backtrace:
#0 0xffffffff808e7e90 at kdb_backtrace+0x60
#1 0xffffffff808af975 at panic+0x155
#2 0xffffffff80c8e832 at trap_fatal+0x3a2
#3 0xffffffff80c8eb09 at trap_pfault+0x2c9
#4 0xffffffff80c8e296 at trap+0x5e6
#5 0xffffffff80c75532 at calltrap+0x8
Uptime: 1m12s
Dumping 430 out of 8088 MB:..4%..12%..23%..34%..41%..53%..64%..71%..82%..93%
Dump complete


uname -a
FreeBSD laptop.where-ever.za.net 10.0-RELEASE-p12 FreeBSD 10.0-RELEASE-p12 #0: Tue Nov  4 05:07:17 UTC 2014     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64


root@laptop:/var/crash # more info.1 
Dump header from device /dev/ada0p3
  Architecture: amd64
  Architecture Version: 2
  Dump Length: 463470592B (442 MB)
  Blocksize: 512
  Dumptime: Mon Dec  8 13:14:19 2014
  Hostname: laptop.where-ever.za.net
  Magic: FreeBSD Kernel Dump
  Version String: FreeBSD 10.0-RELEASE-p12 #0: Tue Nov  4 05:07:17 UTC 2014
    root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC
  Panic String: page fault
  Dump Parity: 112481551
  Bounds: 1
  Dump Status: good

Fatal trap 12: page fault while in kernel mode
cpuid = 3; apic id = 06
fault virtual address	= 0x0
fault code		= supervisor read instruction, page not present
instruction pointer	= 0x20:0x0
stack pointer	        = 0x28:0xfffffe02355dd7b0
frame pointer	        = 0x28:0xfffffe0001af8fe8
code segment		= base rx0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 1857 (Xorg)
trap number		= 12
panic: page fault
cpuid = 3
KDB: stack backtrace:
#0 0xffffffff808e7e90 at kdb_backtrace+0x60
#1 0xffffffff808af975 at panic+0x155
#2 0xffffffff80c8e832 at trap_fatal+0x3a2
#3 0xffffffff80c8eb09 at trap_pfault+0x2c9
#4 0xffffffff80c8e296 at trap+0x5e6
#5 0xffffffff80c75532 at calltrap+0x8
Uptime: 1m12s
Dumping 430 out of 8088 MB:..4%..12%..23%..34%..41%..53%..64%..71%..82%..93%
Dump complete


Steps to repeat:

kill PID of X


Dump information available at http://enrage.where-ever.za.net/vikashb/nvidia-340-kill-X-panic/


This issue does not occur with nvidia-driver-331.67_1

Please let me know if u need more information.
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2014-12-08 11:53:31 UTC
Auto-assigned to maintainer danfe@FreeBSD.org
Comment 2 Vikash Badal 2014-12-08 12:50:03 UTC
Backtrace

#0  doadump (textdump=<value optimized out>) at pcpu.h:219
219	pcpu.h: No such file or directory.
	in pcpu.h
(kgdb) bt
#0  doadump (textdump=<value optimized out>) at pcpu.h:219
#1  0xffffffff808af5f0 in kern_reboot (howto=260)
    at /usr/src/sys/kern/kern_shutdown.c:447
#2  0xffffffff808af9b4 in panic (fmt=<value optimized out>)
    at /usr/src/sys/kern/kern_shutdown.c:754
#3  0xffffffff80c8e832 in trap_fatal (frame=<value optimized out>, 
    eva=<value optimized out>) at /usr/src/sys/amd64/amd64/trap.c:882
#4  0xffffffff80c8eb09 in trap_pfault (frame=0xfffffe0236681700, usermode=0)
    at /usr/src/sys/amd64/amd64/trap.c:699
#5  0xffffffff80c8e296 in trap (frame=0xfffffe0236681700)
    at /usr/src/sys/amd64/amd64/trap.c:463
#6  0xffffffff80c75532 in calltrap ()
    at /usr/src/sys/amd64/amd64/exception.S:232
#7  0x0000000000000000 in ?? ()
Comment 3 Alexey Dokuchaev freebsd_committer freebsd_triage 2014-12-14 09:55:59 UTC
NVidia driver was just updated (ports 374695) to version 340.65, the latest to date, in order to fix recently discovered vulnerability CVE-2014-8298.

Would you like to update and see if it also fixes the kernel panic you're seeing?
Comment 4 Vikash Badal 2014-12-15 07:43:11 UTC
upgrading to to version 340.65 resolved the issue.
After 20 reboots no panic