Bug 238367 - x11/nvidia-driver-340: random kernel panic when starting firefox with GeForce GT 730 on FreeBSD 12.0
Summary: x11/nvidia-driver-340: random kernel panic when starting firefox with GeForce...
Status: New
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:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-06 14:36 UTC by Laurent Frigault
Modified: 2022-11-30 02:07 UTC (History)
3 users (show)

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


Attachments
crash dump summary (46.74 KB, application/x-bzip2)
2019-06-06 14:36 UTC, Laurent Frigault
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Frigault 2019-06-06 14:36:52 UTC
Created attachment 204860 [details]
crash dump summary

When starting firefox the system panic some times (but not always, may be 1 time in 5)

% uname -a
FreeBSD troll.free.org 12.0-RELEASE-p4 FreeBSD 12.0-RELEASE-p4 GENERIC  amd64

% pciconf -lv | grep display -B 3 -A 1

vgapci0@pci0:1:0:0:	class=0x030000 card=0x85251043 chip=0x128710de rev=0xa1 hdr=0x00
    vendor     = 'NVIDIA Corporation'
    device     = 'GK208B [GeForce GT 730]'
    class      = display
    subclass   = VGA

% pkg info  nvidia-driver-340-340.107_3
nvidia-driver-340-340.107_3
Name           : nvidia-driver-340
Version        : 340.107_3
Installed on   : Tue Mar 19 19:32:16 2019 CET
Origin         : x11/nvidia-driver-340
Architecture   : FreeBSD:12:amd64
Prefix         : /usr/local
Categories     : x11 kld
Licenses       : NVIDIA
Maintainer     : danfe@FreeBSD.org
WWW            : https://www.nvidia.com/object/unix.html
Comment        : NVidia graphics card binary drivers for hardware OpenGL rendering
...

(install from official pkg repository)

According to crash dump, the problem seems to be in nv000224rm () from /boot/modules/nvidia.ko :

(kgdb) #0  doadump (textdump=<value optimized out>) at pcpu.h:234
#1  0xffffffff80b9b14b in kern_reboot (howto=260)
    at /usr/src/sys/kern/kern_shutdown.c:446
#2  0xffffffff80b9b5c3 in vpanic (fmt=<value optimized out>,
    ap=<value optimized out>) at /usr/src/sys/kern/kern_shutdown.c:872
#3  0xffffffff80b9b3b3 in panic (fmt=<value optimized out>)
    at /usr/src/sys/kern/kern_shutdown.c:799
#4  0xffffffff80edd0f0 in vm_fault_hold (map=<value optimized out>,
    vaddr=<value optimized out>, fault_type=<value optimized out>,
    fault_flags=<value optimized out>, m_hold=<value optimized out>)
    at /usr/src/sys/vm/vm_fault.c:586
#5  0xffffffff80eda940 in vm_fault (map=0xfffff80003002000,
    vaddr=<value optimized out>, fault_type=1 '\001', fault_flags=0)
    at /usr/src/sys/vm/vm_fault.c:536
#6  0xffffffff81074d73 in trap_pfault (frame=0xfffffe00ee980450, usermode=0)
    at /usr/src/sys/amd64/amd64/trap.c:830
#7  0xffffffff8107427e in trap (frame=0xfffffe00ee980450)
    at /usr/src/sys/amd64/amd64/trap.c:441
#8  0xffffffff8104f435 in calltrap ()
    at /usr/src/sys/amd64/amd64/exception.S:232
#9  0xffffffff831041db in _nv000224rm () from /boot/modules/nvidia.ko
#10 0xfffff806c5ab2800 in ?? ()
#11 0x0000000000000000 in ?? ()

A core dump summary is attached 

my xorg.conf:
Section "ServerLayout"
    Identifier     "XFree86 Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
    Option "AllowEmptyInput" "no"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "keyboard"
    Option      "XkbModel" "pc105"
    Option      "XkbLayout" "fr"

    Option      "XkbVariant" "latin9"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option      "Protocol" "Auto"
    Option      "Device" "/dev/sysmouse"
    Option      "ZAxisMapping"  "4 5"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
    Option      "DPMS"
EndSection

Section "Device"
    Identifier  "Card0"
    Driver      "nvidia"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    DefaultDepth    24
    SubSection "Display"
       Depth   24
       Modes    "2560x1600"
    EndSubSection
EndSection



Regards,