Date: Thu, 12 Jan 2017 10:07:37 +0000 From: Anindya Mukherjee <anindya49@hotmail.com> To: "freebsd-x11@freebsd.org" <freebsd-x11@freebsd.org> Subject: Crash with radeonkms Message-ID: <BN6PR22MB080230C1AB38509A1B1884E7B6790@BN6PR22MB0802.namprd22.prod.outlook.com>
next in thread | raw e-mail | index | archive | help
I am trying to run X compiled the drm-next and xserver-next-udev branches o= n a machine with a Radeon 2400XT card. The startx command results in an ins= tant crash. Here is some info from a kgdb run: GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you ar= e welcome to change it and/or distribute copies of it under certain condition= s. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"... Unread portion of the kernel message buffer: trap number =3D 9 panic: general protection fault cpuid =3D 3 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe02325b3= fd0 vpanic() at vpanic+0x186/frame 0xfffffe02325b4050 panic() at panic+0x43/frame 0xfffffe02325b40b0 trap_fatal() at trap_fatal+0x322/frame 0xfffffe02325b4100 trap() at trap+0x714/frame 0xfffffe02325b42c0 calltrap() at calltrap+0x8/frame 0xfffffe02325b42c0 --- trap 0x9, rip =3D 0xffffffff80994524, rsp =3D 0xfffffe02325b4390, rbp = =3D 0xfffffe02325b43b0 --- pfs_destroy() at pfs_destroy+0x34/frame 0xfffffe02325b43b0 linsysfs_destroy_class_dir() at linsysfs_destroy_class_dir+0x17/frame 0xfff= ffe02325b43d0 backlight_class_exit() at backlight_class_exit+0x1b/frame 0xfffffe02325b43f= 0 _module_run() at _module_run+0x9b/frame 0xfffffe02325b4430 linker_file_unload() at linker_file_unload+0x45f/frame 0xfffffe02325b4490 linker_file_unload() at linker_file_unload+0x603/frame 0xfffffe02325b44f0 linker_file_unload() at linker_file_unload+0x603/frame 0xfffffe02325b4550 link_elf_load_file() at link_elf_load_file+0x44a/frame 0xfffffe02325b46f0 linker_load_module() at linker_load_module+0x9cf/frame 0xfffffe02325b4a00 kern_kldload() at kern_kldload+0xa7/frame 0xfffffe02325b4a40 sys_kldload() at sys_kldload+0x5b/frame 0xfffffe02325b4a70 amd64_syscall() at amd64_syscall+0x2f9/frame 0xfffffe02325b4bf0 Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe02325b4bf0 --- syscall (304, FreeBSD ELF64, sys_kldload), rip =3D 0x8023f250a, rsp =3D= 0x7fffffffe9f8, rbp =3D 0x7fffffffea60 --- Uptime: 51s Dumping 444 out of 8030 MB:..4%..11%..22%..33%..44%..51%..62%..72%..83%..94= % Reading symbols from /boot/kernel/ums.ko...Reading symbols from /usr/lib/de= bug//boot/kernel/ums.ko.debug...done. done. Loaded symbols for /boot/kernel/ums.ko Reading symbols from /boot/kernel/uhid.ko...Reading symbols from /usr/lib/d= ebug//boot/kernel/uhid.ko.debug...done. done. Loaded symbols for /boot/kernel/uhid.ko Reading symbols from /boot/kernel/linuxkpi.ko...Reading symbols from /usr/l= ib/debug//boot/kernel/linuxkpi.ko.debug...done. done. Loaded symbols for /boot/kernel/linuxkpi.ko Reading symbols from /boot/kernel/linux_common.ko...Reading symbols from /u= sr/lib/debug//boot/kernel/linux_common.ko.debug...done. done. Loaded symbols for /boot/kernel/linux_common.ko #0 doadump (textdump=3D1) at pcpu.h:222 222 __asm("movq %%gs:%1,%0" : "=3Dr" (td) (kgdb) bt #0 doadump (textdump=3D1) at pcpu.h:222 #1 0xffffffff80a4c545 in kern_reboot (howto=3D<value optimized out>) at /u= sr/home/anindya/graphics/freebsd-base-graphics/sys/kern/kern_shutdown.c:386 #2 0xffffffff80a4cb20 in vpanic (fmt=3D<value optimized out>, ap=3D<value = optimized out>) at /usr/home/anindya/graphics/freebsd-base-graphics/sys/ker= n/kern_shutdown.c:787 #3 0xffffffff80a4cb63 in panic (fmt=3D<value optimized out>) at /usr/home/= anindya/graphics/freebsd-base-graphics/sys/kern/kern_shutdown.c:710 #4 0xffffffff80eba2f2 in trap_fatal (frame=3D0xfffffe02325b42d0, eva=3D0) = at /usr/home/anindya/graphics/freebsd-base-graphics/sys/amd64/amd64/trap.c:= 801 #5 0xffffffff80eb9f74 in trap (frame=3D0xfffffe02325b42d0) at /usr/home/an= indya/graphics/freebsd-base-graphics/sys/amd64/amd64/trap.c:198 #6 0xffffffff80e9aa61 in calltrap () at /usr/home/anindya/graphics/freebsd= -base-graphics/sys/amd64/amd64/exception.S:236G #7 0xffffffff80994524 in pfs_destroy (pn=3D0xfffff800384a8400) at /usr/hom= e/anindya/graphics/freebsd-base-graphics/sys/fs/pseudofs/pseudofs.c:296 #8 0xffffffff82523697 in linsysfs_destroy_class_dir (class=3D0xfffff800384= b5e00) at /usr/home/anindya/graphics/freebsd-base-graphics/sys/modules/linu= xkpi/../../compat/linsysfs/linsysfs_init.c:291 #9 0xffffffff8250a04b in backlight_class_exit () at device.h:349 #10 0xffffffff82509a9b in _module_run (arg=3D<value optimized out>) at modu= le.h:80 #11 0xffffffff80a20e5f in linker_file_unload (file=3D<value optimized out>,= flags=3D<value optimized out>) at /usr/home/anindya/graphics/freebsd-base-= graphics/sys/kern/kern_linker.c:284 #12 0xffffffff80a21003 in linker_file_unload (file=3D<value optimized out>,= flags=3D<value optimized out>) at /usr/home/anindya/graphics/freebsd-base-= graphics/sys/kern/kern_linker.c:701 #13 0xffffffff80a21003 in linker_file_unload (file=3D<value optimized out>,= flags=3D<value optimized out>) at /usr/home/anindya/graphics/freebsd-base-= graphics/sys/kern/kern_linker.c:701 #14 0xffffffff80f81dea in link_elf_load_file (cls=3D<value optimized out>, = filename=3D<value optimized out>, result=3D<value optimized out>) at /usr/home/anindya/graphics/freebsd-base-graphics/sys/kern/link_elf_o= bj.c:960 #15 0xffffffff80a204df in linker_load_module (kldname=3D<value optimized ou= t>, modname=3D0xfffff800060ebc00 "radeonkms", parent=3D<value optimized out= >, verinfo=3D0x0, lfpp=3D<value optimized out>) at linker_if.h:161 #16 0xffffffff80a21d27 in kern_kldload (td=3D<value optimized out>, file=3D= <value optimized out>, fileid=3D0xfffffe02325b4a54) at /usr/home/anindya/gr= aphics/freebsd-base-graphics/sys/kern/kern_linker.c:1041 #17 0xffffffff80a21deb in sys_kldload (td=3D0xfffff80007b50a20, uap=3D<valu= e optimized out>) at /usr/home/anindya/graphics/freebsd-base-graphics/sys/k= ern/kern_linker.c:1067 #18 0xffffffff80ebaab9 in amd64_syscall (td=3D0xfffff80007b50a20, traced=3D= 0) at subr_syscall.c:135 #19 0xffffffff80e9ad4b in Xfast_syscall () at /usr/home/anindya/graphics/fr= eebsd-base-graphics/sys/amd64/amd64/exception.S:396 #20 0x00000008023f250a in ?? () Previous frame inner to this frame (corrupt stack?) Current language: auto; currently minimal (kgdb) f 10 #10 0xffffffff82509a9b in _module_run (arg=3D<value optimized out>) at modu= le.h:80 80 fn(); (kgdb) f 9 #9 0xffffffff8250a04b in backlight_class_exit () at device.h:349 349 linsysfs_destroy_class_dir(class); (kgdb) f 8 #8 0xffffffff82523697 in linsysfs_destroy_class_dir (class=3D0xfffff800384= b5e00) at /usr/home/anindya/graphics/freebsd-base-graphics/sys/modules/linu= xkpi/../../compat/linsysfs/linsysfs_init.c:291 291 pfs_destroy(class->sd); (kgdb) p *class->sd $1 =3D { pn_name =3D 0xfffff800384a8400 "***JUNK***"..., pn_type =3D 3735929054, p= n_flags =3D -559038242, pn_mutex =3D {lock_object =3D {l lo_data =3D 3735929054, lo_witness =3D 0xdeadc0dedeadc0de}, mtx_lock = =3D 16045693110842147038}, pn_data =3D 0xdeadc0dedeadc0de, pn_fill =3D 0xde= adc0dedeadc0de, pn_ioctl =3D 0xdeadc0dedeadc0de,=20 pn_close =3D 0xdeadc0dedeadc0de, pn_attr =3D 0xdeadc0dedeadc0de, pn_vis = =3D 0xdeadc0dedeadc0de, pn_getextattr =3D 0xdeadc0dedeadc0de, pn_destroy = =3D 0xdeadc0dedeadc0de, pn_info =3D 0xdeadc0dedeadc0de,=20 pn_fileno =3D 3735929054, pn_parent =3D 0xdeadc0dedeadc0de, pn_nodes =3D = 0xdeadc0dedeadc0de, pn_next =3D 0xdeadc0dedeadc0de} (kgdb) f 7 #7 0xffffffff80994524 in pfs_destroy (pn=3D0xfffff800384a8400) at /usr/hom= e/anindya/graphics/freebsd-base-graphics/sys/fs/pseudofs/pseudofs.c:296 296 if (pn->pn_parent) (kgdb) f 6 #6 0xffffffff80e9aa61 in calltrap () at /usr/home/anindya/graphics/freebsd= -base-graphics/sys/amd64/amd64/exception.S:236 236 call trap_check Current language: auto; currently asm (kgdb) Looks like some dangling pointers. This does not yet have Johannes' updates= . I'll try rebuilding with those. Anindya=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BN6PR22MB080230C1AB38509A1B1884E7B6790>