Bug 20633

Summary: [Q965] X crashes when logging in (UXA/KMS)
Product: Mesa Reporter: Priit Laes (irc: plaes) <plaes>
Component: Drivers/DRI/i965Assignee: Eric Anholt <eric>
Status: RESOLVED WORKSFORME QA Contact:
Severity: critical    
Priority: medium CC: jbarnes
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Xorg.0.log

Description Priit Laes (irc: plaes) 2009-03-12 12:23:34 UTC
I am using X without configuration file. And it crashes after login (X itself starts fine):

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f337d84c6f0 (LWP 2645)]
0x00007f337a0f7782 in drm_intel_gem_bo_unreference_locked (bo=0x4300000)
    at intel_bufmgr_gem.c:581
581     intel_bufmgr_gem.c: No such file or directory.
        in intel_bufmgr_gem.c
(gdb) bt
#0  0x00007f337a0f7782 in drm_intel_gem_bo_unreference_locked (bo=0x4300000)
    at intel_bufmgr_gem.c:581
#1  0x00007f337a0f76b1 in drm_intel_gem_bo_unreference_locked (bo=0x43004b0)
    at intel_bufmgr_gem.c:557
#2  0x00007f337a0f76b1 in drm_intel_gem_bo_unreference_locked (bo=0x4300550)
    at intel_bufmgr_gem.c:557
#3  0x00007f337a0f7b62 in drm_intel_gem_bo_unreference (bo=0x4300550)
    at intel_bufmgr_gem.c:595
#4  0x00007f337a3496b7 in i965_prepare_composite (op=3, pSrcPicture=0x43586e0, 
    pMaskPicture=0x43587b0, pDstPicture=0x4358540, pSrc=0x43585f0, 
    pMask=0x43585f0, pDst=0x4344460) at i965_render.c:1350
#5  0x00007f337a3570ae in uxa_try_driver_composite (op=0 '\0', pSrc=0x43586e0, 
    pMask=0x43587b0, pDst=0x4358540, xSrc=0, ySrc=0, 
    xMask=<value optimized out>, yMask=<value optimized out>, xDst=8, 
    yDst=239, width=<value optimized out>, height=<value optimized out>)
    at uxa-render.c:492
#6  0x00007f337a3577a3 in uxa_composite (op=3 '\003', pSrc=0x43586e0, 
    pMask=0x43587b0, pDst=0x4358540, xSrc=0, ySrc=0, xMask=0, yMask=0, xDst=8, 
    yDst=239, width=36, height=36) at uxa-render.c:750
#7  0x0000000000518ff3 in damageComposite (op=0 '\0', pSrc=0x43586e0, 
    pMask=0x43587b0, pDst=0x4358540, xSrc=0, ySrc=0, xMask=-28352, 
    yMask=<value optimized out>, xDst=<value optimized out>, 
    yDst=<value optimized out>, width=<value optimized out>, 
    height=<value optimized out>) at damage.c:576
---Type <return> to continue, or q <return> to quit---
#8  0x0000000000509a67 in ProcRenderComposite (client=0x42e0f80)
    at render.c:729
#9  0x000000000044a032 in Dispatch () at dispatch.c:454
#10 0x0000000000432a3d in main (argc=1, argv=0x7fff85986d68, 
    envp=<value optimized out>) at main.c:438
(gdb)
Comment 1 Priit Laes (irc: plaes) 2009-03-12 12:25:27 UTC
Created attachment 23806 [details]
Xorg.0.log

Gentoo, amd64 with latest xf86-video-intel, xorg-server, mesa and libdrm.
Comment 2 Priit Laes (irc: plaes) 2009-03-12 12:26:53 UTC
x11-base/xorg-server-1.5.3-r4
media-libs/mesa-7.3-r1
x11-libs/libdrm-2.4.5
x11-drivers/xf86-video-intel-2.6.3
Comment 3 Gordon Jin 2009-03-14 04:48:15 UTC
I guess this is unrelated to KMS?
Comment 4 Priit Laes (irc: plaes) 2009-03-14 05:19:24 UTC
(In reply to comment #3)
> I guess this is unrelated to KMS?
> 

When I disable kernel modesetting everything works fine.
Comment 5 Eric Anholt 2009-03-16 17:53:26 UTC
KMS is setting resizable framebuffer enabled on server 1.5, resulting in DRI1 not initializing.  Needs roughly the same treatment as 70e0261208654c6c875ad462da2734c6aa9eeb96 (note that directRenderingType isn't set at I830DrmModeInit time!)
Comment 6 Priit Laes (irc: plaes) 2009-04-28 07:56:12 UTC
Upgraded to 1.6, things work now.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.