On Sat, Apr 20, 2019 at 08:52:33AM -0500, Lucas Raab wrote:
> >Synopsis:    X locks up after resizing windows
> >Category:    amd64
> >Environment:
>       System      : OpenBSD 6.5
>       Details     : OpenBSD 6.5-current (GENERIC.MP) #8: Fri Apr 19 21:48:49 
> MDT 2019
>                        
> [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> 
>       Architecture: OpenBSD.amd64
>       Machine     : amd64
> >Description:
>       After updating to the 2019-04-19 snapshot, X will hard lock up after a 
> window is resized or moved. The laptop becomes completely unresponsive and 
> the only option is the force the machine off. The prior snapshot was I 
> believe from 2019-04-11? That was the last snapshot which did not express 
> this issue.
> 
>     I believe this user on Reddit has the same issue: 
> https://www.reddit.com/r/openbsd/comments/bf5135/
> >How-To-Repeat:
>       Reboot the machine, log in, and attempt to move or resize a window
> >Fix:
>       Unknown

There is some kind of use after free or double free that triggers only
when opting into the 'intel' driver on recent hardware instead of the
'modesetting' default.

As you are using xf86-video-intel you are likely hitting that.
Doesn't trigger on machines I can easily use serial on like x61.

here is a trace provided by sthen@

login: kernel: protection fault trap, code=0
Stopped at      linux_root_RB_NEXT+0x23:        movq    0(%rcx),%rcx
ddb{0}> sh reg
rdi               0xffff800000eb1228
rsi                             0x10
rbp               0xffff800022335d70
rbx               0xffff800000eb1228
rdx               0xfe00000003ff1e32
rcx               0xdeafbeaddeafbead
rax               0xdeafbeaddeafbead
r8                              0x7f
r9                0xffffffff81dce788    sched_lock
r10               0xde411193c377fb0c
r11               0xdef8fb561704900e
r12               0xffff800000eb1200
r13               0xffff800000eb1200
r14               0xffff800000efe028
r15               0xffff800000eb1200
rip               0xffffffff814db7c3    linux_root_RB_NEXT+0x23
cs                               0x8
rflags                       0x10282    __ALIGN_SIZE+0xf282
rsp               0xffff800022335d60
ss                              0x10
linux_root_RB_NEXT+0x23:        movq    0(%rcx),%rcx
ddb{0}> ps /o
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
 482804  44419     35        0x12          0    3  Xorg
 186441  83863    732    0x200003      0x480    1  mongod
* 27314   7158      0     0x14000      0x200    0K i915
ddb{0}> tr
linux_root_RB_NEXT(ffff800000eb1228) at linux_root_RB_NEXT+0x23
i915_vma_destroy(ffff800000efe028) at i915_vma_destroy+0x15d
__i915_gem_free_objects(ffff80000011a000,ffff800000f009f8) at 
__i915_gem_free_objects+0xc3
__i915_gem_free_work(ffff80000011de90) at __i915_gem_free_work+0x5b
taskq_thread(ffff8000001ef300) at taskq_thread+0x4d
end trace frame: 0x0, count: -5

Reply via email to