[DragonFlyBSD - Bug #3226] Xorg freezes in vm: thread stuck in "objtrm1"

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Wed Mar 25 02:02:16 PDT 2020


Issue #3226 has been updated by peeter.


New core dump with DRIVER_DATE to 20161108 + drm58

core.txt
---
<118>Mar 25 10:34:52 mars kernel: WARN_ON(i915_gem_object_has_pinned_pages(obj))
<4>WARN_ON(i915_gem_object_has_pinned_pages(obj))<4>WARN_ON(i915_gem_object_has_pinned_pages(obj))
<118>Mar 25 10:34:53 mars kernel: WARN_ON(i915_gem_object_has_pinned_pages(obj))<4>WARN_ON(i915_gem_object_has_pinned_pages(obj))
<4>WARN_ON(i915_gem_object_has_pinned_pages(obj))
<118>Mar 25 10:34:53 mars kernel: WARN_ON(i915_gem_object_has_pinned_pages(obj))
<4>WARN_ON(i915_gem_object_has_pinned_pages(obj))i915_gem_evict_something: 0000000000000000-0000000010000000
i915_gem_evict_something: ENOSPC 0,1
i915_gem_fault: CHUNKING PASS
i915_gem_evict_something: 0000000000000000-0000000010000000
i915_gem_evict_something: ENOSPC 0,1
i915_gem_fault: CHUNKING PASS
panic: BUG in i915_gem_object_get_sg at /usr/src/sys/dev/drm/i915/i915_gem.c:5408
cpuid = 4
Trace beginning at frame 0xfffff80073505378
i915_gem_object_get_sg() at i915_gem_object_get_sg+0x2ab 0xffffffff830e3abb 
i915_gem_object_get_sg() at i915_gem_object_get_sg+0x2ab 0xffffffff830e3abb 
i915_get_ggtt_vma_pages() at i915_get_ggtt_vma_pages+0x35f 0xffffffff830d765f 
ggtt_bind_vma() at ggtt_bind_vma+0x2b 0xffffffff830d79db 
i915_vma_bind() at i915_vma_bind+0xbe 0xffffffff830dac1e 
__i915_vma_do_pin() at __i915_vma_do_pin+0x419 0xffffffff830e09d9 
boot() called on cpu#4
---


backtrace: 


---
(kgdb) bt
#0  _get_mycpu () at ./machine/thread.h:69
#1  panic (fmt=fmt at entry=0xffffffff8316f59d "BUG in %s at %s:%u") at /usr/src/sys/kern/kern_shutdown.c:868
#2  0xffffffff830e3abb in i915_gem_object_get_sg (obj=obj at entry=0xfffff8036db1fbc0, n=4096, offset=offset at entry=0xfffff80073505424)
    at /usr/src/sys/dev/drm/i915/i915_gem.c:5504
#3  0xffffffff830d765f in intel_partial_pages (view=0xfffff8037628d368, view=0xfffff8037628d368, obj=0xfffff8036db1fbc0)
    at /usr/src/sys/dev/drm/i915/i915_gem_gtt.c:3689
#4  i915_get_ggtt_vma_pages (vma=0xfffff8037628d200) at /usr/src/sys/dev/drm/i915/i915_gem_gtt.c:3745
#5  0xffffffff830d79db in ggtt_bind_vma (vma=0xfffff8037628d200, cache_level=I915_CACHE_LLC, flags=<optimized out>)
    at /usr/src/sys/dev/drm/i915/i915_gem_gtt.c:2633
#6  0xffffffff830dac1e in i915_vma_bind (vma=vma at entry=0xfffff8037628d200, cache_level=I915_CACHE_LLC, flags=<optimized out>, flags at entry=66)
    at /usr/src/sys/dev/drm/i915/i915_gem_gtt.c:3807
#7  0xffffffff830e09d9 in __i915_vma_do_pin (vma=0xfffff8037628d200, size=0, alignment=0, flags=<optimized out>)
    at /usr/src/sys/dev/drm/i915/i915_gem.c:4220
#8  0xffffffff830e0dfc in i915_vma_pin (flags=66, alignment=0, size=0, vma=0xfffff8037628d200) at /usr/src/sys/dev/drm/i915/i915_gem_gtt.h:674
#9  i915_gem_object_ggtt_pin (obj=obj at entry=0xfffff8036db1fbc0, view=view at entry=0xfffff80073505600, size=size at entry=0, 
    alignment=alignment at entry=0, flags=flags at entry=2) at /usr/src/sys/dev/drm/i915/i915_gem.c:4305
#10 0xffffffff830e14f9 in i915_gem_fault (vm_obj=0xfffff8036d48b040, offset=4096, prot=<optimized out>, mres=0xfffff800735057f8)
    at /usr/src/sys/dev/drm/i915/i915_gem.c:1964
#11 0xffffffff8097f38d in vm_pager_get_page (seqaccess=<optimized out>, m=0xfffff800735057f8, object=<optimized out>)
    at /usr/src/sys/vm/vm_pager.h:134
#12 vm_fault_object (fs=0xfffff800735057f8, first_pindex=<optimized out>, fault_type=<optimized out>, allow_nofault=1)
    at /usr/src/sys/vm/vm_fault.c:2090
#13 0xffffffff80980316 in vm_fault (map=map at entry=0xfffff80351421e80, vaddr=vaddr at entry=34793852928, fault_type=fault_type at entry=2 '\002', 
    fault_flags=fault_flags at entry=76) at /usr/src/sys/vm/vm_fault.c:710
#14 0xffffffff80ba7fa6 in trap_pfault (frame=0xfffff800735059f8, usermode=1) at /usr/src/sys/platform/pc64/x86_64/trap.c:980
#15 0xffffffff80ba8f89 in trap (frame=0xfffff800735059f8) at /usr/src/sys/platform/pc64/x86_64/trap.c:557
#16 0xffffffff80b830aa in calltrap () at /usr/src/sys/platform/pc64/x86_64/exception.S:321
#17 0x000000080139c282 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(kgdb)
---



----------------------------------------
Bug #3226: Xorg freezes in vm: thread stuck in "objtrm1"
http://bugs.dragonflybsd.org/issues/3226#change-13869

* Author: peeter
* Status: New
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
Xorg freezes randomly, thread stuck in "objtrm1":

0   1064      1   1063   0 174   0 455496 258864 objtrm1  D5     ??    0:59.12      /usr/local/bin/X :0 -auth /home/

The machines otherwise functional, can ssh into it and start kgdb. Backtrace in kgdb shows this: 

---
(kgdb) thread 288
[Switching to thread 288 (pid 1064/1, Xorg)]
#0  0xffffffff8066bd17 in lwkt_switch () at /usr/src/sys/kern/lwkt_thread.c:807
807		lwkt_switch_return(td->td_switch(ntd));
(kgdb) back
#0  0xffffffff8066bd17 in lwkt_switch () at /usr/src/sys/kern/lwkt_thread.c:807
#1  0xffffffff806796b9 in tsleep (ident=ident at entry=0xfffff8057a331614, flags=flags at entry=1024, 
    wmesg=wmesg at entry=0xffffffff80c4ba77 "objtrm1", timo=1000) at /usr/src/sys/kern/kern_synch.c:711
#2  0xffffffff8066adc5 in _refcount_wait (countp=countp at entry=0xfffff8057a331614, 
    wstr=wstr at entry=0xffffffff80c4ba77 "objtrm1") at /usr/src/sys/kern/kern_refcount.c:81
#3  0xffffffff8098eaa3 in refcount_wait (wstr=0xffffffff80c4ba77 "objtrm1", countp=0xfffff8057a331614)
    at /usr/src/sys/sys/refcount.h:111
#4  vm_object_pip_wait (waitid=0xffffffff80c4ba77 "objtrm1", object=0xfffff8057a331580)
    at /usr/src/sys/vm/vm_object.h:299
#5  vm_object_terminate (object=0xfffff8057a331580) at /usr/src/sys/vm/vm_object.c:755
#6  0xffffffff8098eed5 in vm_object_deallocate (object=0xfffff8057a331580) at /usr/src/sys/vm/vm_object.c:632
#7  0xffffffff8098446f in vm_map_entry_dispose (entry=0xfffff80579cf5fa0, countp=0xfffff803960f98b4, 
    map=<optimized out>) at /usr/src/sys/vm/vm_map.c:1130
#8  0xffffffff80988333 in vm_map_entry_delete (countp=0xfffff803960f98b4, entry=0xfffff80579cf5fa0, 
    map=0xfffff801578f3880) at /usr/src/sys/vm/vm_map.c:3182
#9  vm_map_delete (map=0xfffff801578f3880, start=34760318976, end=34775064576, countp=0xfffff803960f98b4)
    at /usr/src/sys/vm/vm_map.c:3344
#10 0xffffffff80988baf in vm_map_remove (map=map at entry=0xfffff801578f3880, start=<optimized out>, 
    start at entry=34760318976, end=<optimized out>, end at entry=34775064576) at /usr/src/sys/vm/vm_map.c:3381
#11 0xffffffff8098b634 in sys_munmap (uap=<optimized out>) at /usr/src/sys/vm/vm_mmap.c:583
#12 0xffffffff80ba980b in syscall2 (frame=0xfffff803960f99f8) at /usr/src/sys/platform/pc64/x86_64/trap.c:1317
#13 0xffffffff80b839cd in ?? () at /usr/src/sys/platform/pc64/x86_64/exception.S:450
#14 0x0000000817e06000 in ?? ()
#15 0x0000000000e10000 in ?? ()
#16 0x0000000000000000 in ?? ()
(kgdb) 
---

I don't know where to look further.





-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Bugs mailing list