Bug 3617

Summary: X locks up w/ Composite when resizing djview window
Product: xorg Reporter: Kuwanger <qube99>
Component: Driver/RadeonAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED INVALID QA Contact:
Severity: major    
Priority: high CC: erik.andren, gwright
Version: 6.8.99.8   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Kuwanger 2005-06-24 12:12:08 UTC
Loading a djvu image inside of djview and then resizing the window causes xorg  
to hang when Composite is enabled; a composite manager isn't running.  xorg 
uses up ~98% CPU and locks up the keyboard; the mouse pointer is still able to 
move.  Not even killall X -9 is able to kill X.  I'm using the xorg radeon 
driver--the video card is an ATI Radeon 9200.  
  
Backtrace of xorg after it's hung:  
  
Attaching to program: /usr/bin/X, process 22558  
Failed to read a valid object file image from memory.  
Reading symbols from /lib/libz.so.1...done.  
Loaded symbols for /lib/libz.so.1  
Reading symbols from /lib/libm.so.6...done.  
Loaded symbols for /lib/libm.so.6  
Reading symbols from /lib/libpam.so.0...done.  
Loaded symbols for /lib/libpam.so.0  
Reading symbols from /lib/libdl.so.2...done.  
Loaded symbols for /lib/libdl.so.2  
Reading symbols from /lib/libpam_misc.so.0...done.  
Loaded symbols for /lib/libpam_misc.so.0  
Reading symbols from /usr/lib/libXau.so.6...done.  
Loaded symbols for /usr/lib/libXau.so.6  
Reading symbols from /lib/libc.so.6...done.  
Loaded symbols for /lib/libc.so.6  
Reading symbols from /lib/ld-linux.so.2...done.  
Loaded symbols for /lib/ld-linux.so.2  
Reading symbols from /usr/lib/modules/fonts/libbitmap.so...done.  
Loaded symbols for /usr/X11R6/lib/modules/fonts/libbitmap.so  
Reading symbols from /usr/lib/modules/libpcidata.so...done.  
Loaded symbols for /usr/X11R6/lib/modules/libpcidata.so  
Reading symbols from /usr/lib/modules/extensions/libextmod.so...done.  
Loaded symbols for /usr/X11R6/lib/modules/extensions/libextmod.so  
Reading symbols from /usr/lib/modules/extensions/libglx.so...done.  
Loaded symbols for /usr/X11R6/lib/modules/extensions/libglx.so  
Reading symbols from /usr/lib/modules/extensions/libGLcore.so...bt  
done.  
Loaded symbols for /usr/X11R6/lib/modules/extensions/libGLcore.so  
Reading symbols from /usr/lib/modules/extensions/libdri.so...done.  
Loaded symbols for /usr/X11R6/lib/modules/extensions/libdri.so  
Reading symbols from /usr/lib/modules/linux/libdrm.so...done.  
Loaded symbols for /usr/X11R6/lib/modules/linux/libdrm.so  
Reading symbols from /usr/lib/modules/extensions/librecord.so...done.  
Loaded symbols for /usr/X11R6/lib/modules/extensions/librecord.so  
Reading symbols from /usr/lib/modules/extensions/libdbe.so...done.  
Loaded symbols for /usr/X11R6/lib/modules/extensions/libdbe.so  
Reading symbols from /usr/lib/modules/extensions/libxtrap.so...done.  
Loaded symbols for /usr/X11R6/lib/modules/extensions/libxtrap.so  
Reading symbols from /usr/lib/modules/fonts/libfreetype.so...done.  
Loaded symbols for /usr/X11R6/lib/modules/fonts/libfreetype.so  
Reading symbols from /usr/lib/libfreetype.so.6...done.  
Loaded symbols for /usr/lib/libfreetype.so.6  
Reading symbols from /usr/lib/modules/fonts/libtype1.so...done.  
Loaded symbols for /usr/X11R6/lib/modules/fonts/libtype1.so  
Reading symbols from /usr/lib/modules/drivers/v4l_drv.so...done.  
Loaded symbols for /usr/X11R6/lib/modules/drivers/v4l_drv.so  
Reading symbols from /usr/lib/modules/drivers/radeon_drv.so...done.  
Loaded symbols for /usr/X11R6/lib/modules/drivers/radeon_drv.so  
Reading symbols from /usr/lib/modules/drivers/ati_drv.so...done.  
Loaded symbols for /usr/X11R6/lib/modules/drivers/ati_drv.so  
Reading symbols from /usr/lib/modules/input/mouse_drv.so...done.  
Loaded symbols for /usr/X11R6/lib/modules/input/mouse_drv.so  
Reading symbols from /usr/lib/modules/input/kbd_drv.so...done.  
Loaded symbols for /usr/X11R6/lib/modules/input/kbd_drv.so  
Reading symbols from /usr/lib/modules/libvgahw.so...done.  
Loaded symbols for /usr/X11R6/lib/modules/libvgahw.so  
Reading symbols from /usr/lib/modules/linux/libint10.so...done.  
Loaded symbols for /usr/X11R6/lib/modules/linux/libint10.so  
Reading symbols from /usr/lib/modules/libddc.so...done.  
Loaded symbols for /usr/X11R6/lib/modules/libddc.so  
Reading symbols from /usr/lib/modules/libi2c.so...done.  
Loaded symbols for /usr/X11R6/lib/modules/libi2c.so  
Reading symbols from /usr/lib/modules/libfb.so...done.  
Loaded symbols for /usr/X11R6/lib/modules/libfb.so  
Reading symbols from /usr/lib/modules/libramdac.so...done.  
Loaded symbols for /usr/X11R6/lib/modules/libramdac.so  
Reading symbols from /usr/lib/modules/libxaa.so...done.  
Loaded symbols for /usr/X11R6/lib/modules/libxaa.so  
Reading symbols from /usr/lib/modules/libshadowfb.so...done.  
Loaded symbols for /usr/X11R6/lib/modules/libshadowfb.so  
Reading symbols from   
/usr/lib/modules/multimedia/theatre_detect_drv.so...done.  
Loaded symbols for   
/usr/X11R6/lib/modules/multimedia/theatre_detect_drv.so  
0xa7f15374 in ioctl () from /lib/libc.so.6  
(gdb) bt  
#0  0xa7f15374 in ioctl () from /lib/libc.so.6  
#1  0x080acdd3 in xf86ioctl (fd=7, request=3223872553, argp=0xafffe3b0)  
    at libc_wrapper.c:465  
#2  0xa7af5de2 in drmDMA (fd=7, request=0xafffe430) at xf86drm.c:1220  
#3  0xa79bfbcb in RADEONCPGetBuffer (pScrn=0x82a34b0) at   
radeon_accel.c:537  
#4  0xa79bfe22 in RADEONCPFlushIndirect (pScrn=0x82a34b0, discard=1)  
    at radeon_accel.c:591  
#5  0xa79c0181 in RADEONHostDataBlit (pScrn=0x82a34b0, bpp=4, w=691,  
    dstPitch=2816, bufPitch=0xafffe574, dst=0xafffe594, h=0xafffe5c4,  
    hpass=0xafffe570) at radeon_accel.c:699  
#6  0xa79b2959 in R200SetupTextureCP (pScrn=0x82a34b0, format=537036936,  
    src=0x9e8aab54 "╡╡╡", src_pitch=2764, width=691, height=285,   
flags=0)  
    at radeon_render.c:804  
#7  0xa79b413f in R200SetupForCPUToScreenTextureCP (pScrn=0x82a34b0,   
op=1,  
    srcFormat=537036936, dstFormat=268567909,  
    texPtr=0x9e81f060   
"нннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪнннЪ"...,  
    texPitch=2764, width=691, height=492, flags=0) at   
radeon_render.c:928  
#8  0xa77e4825 in XAADoComposite (op=1 '\001', pSrc=0x8690770,   
pMask=0x0,  
    pDst=0x85e7b68, xSrc=0, ySrc=0, xMask=0, yMask=0, xDst=213,   
yDst=147,  
    width=691, height=492) at xaaPict.c:398  
#9  0xa77e4e8a in XAAComposite (op=1 '\001', pSrc=0x8690770, pMask=0x0,  
    pDst=0x85e7b68, xSrc=0, ySrc=0, xMask=0, yMask=0, xDst=0, yDst=0,  
    width=691, height=492) at xaaPict.c:512  
#10 0x081be8ab in cwComposite (op=1 '\001', pSrcPicture=0x8690770,  
    pMskPicture=0x0, pDstPicture=0x85e7b68, xSrc=0, ySrc=0, xMsk=0,   
yMsk=0,  
    xDst=0, yDst=0, width=691, height=492) at cw_render.c:269  
#11 0x081b171c in damageComposite (op=1 '\001', pSrc=0x8690770,   
pMask=0x0,  
    pDst=0x85e7b68, xSrc=0, ySrc=0, xMask=0, yMask=0, xDst=0, yDst=0,  
    width=691, height=492) at damage.c:517  
#12 0xa77a740d in ShadowComposite (op=1 '\001', pSrc=0x8690770,   
pMask=0x0,  
    pDst=0x85e7b68, xSrc=0, ySrc=0, xMask=0, yMask=0, xDst=0, yDst=0,  
    width=691, height=492) at shadow.c:489  
#13 0x081cae33 in CompositePicture (op=1 '\001', pSrc=0x8690770,   
pMask=0x0,  
    pDst=0x85e7b68, xSrc=0, ySrc=0, xMask=0, yMask=0, xDst=0, yDst=0,  
    width=691, height=492) at picture.c:1358  
#14 0x081ae69c in compWindowUpdateAutomatic (pWin=0x85eec48)  
    at compwindow.c:718  
#15 0x081ae742 in compWindowUpdate (pWin=0x85eec48) at compwindow.c:750  
#16 0x081ae6f4 in compWindowUpdate (pWin=0x86d51d8) at compwindow.c:743  
#17 0x081ae6f4 in compWindowUpdate (pWin=0x86d48e8) at compwindow.c:743  
#18 0x081ae6f4 in compWindowUpdate (pWin=0x831a610) at compwindow.c:743  
#19 0x081ac727 in compScreenUpdate (pScreen=0x82b9318) at compinit.c:88  
#20 0x081ac77b in compBlockHandler (i=0, blockData=0x0,   
pTimeout=0xafffed5c,  
    pReadmask=0x827e240) at compinit.c:103  
#21 0x080df6b5 in BlockHandler (pTimeout=0xafffed5c,   
pReadmask=0x827e240)  
    at dixutils.c:434  
#22 0x081084ba in WaitForSomething (pClientsReady=0xafffed94) at   
WaitFor.c:220  
#23 0x080d6240 in Dispatch () at dispatch.c:378  
#24 0x080ee56b in main (argc=9, argv=0xaffff254, envp=0xaffff27c) at   
main.c:446  
  
Some (possibly relevant) sections of my xorg.conf file:  
  
Section "Module"  
        Load  "extmod"  
        Load  "glx"  
        Load  "dri"  
        Load  "record"  
        Load  "dbe"  
        Load  "xtrap"  
        Load  "freetype"  
        Load  "type1"  
        Load  "v4l"  
EndSection  
  
Section "DRI"  
    Mode         0666  
EndSection  
  
Section "Extensions"  
     #Option "Composite" "Disable"  
     Option "Composite" "Enable"  
     Option "RENDER" "Enable"  
EndSection  
  
Section "Device"    
        Option      "AGPMode" "4"    
        Option      "EnablePageFlip" "1"    
        Option "backingstore" "1"    
        Option "DynamicClocks" "1"    
        Identifier  "Card0"    
        Driver      "radeon"    
        VendorName  "ATI Technologies Inc"    
        BoardName   "Radeon RV280 [Radeon 9200]"    
        BusID       "PCI:1:0:0"    
EndSection
Comment 1 T. Hood 2005-09-26 04:09:29 UTC
*** Bug 1661 has been marked as a duplicate of this bug. ***
Comment 2 Eric Anholt 2005-12-30 15:48:32 UTC
Please try again with the leet options disabled.  From what you posted, those
would be:
        Option      "AGPMode" "4"    
        Option      "EnablePageFlip" "1"    
        Option "backingstore" "1"    

And of course Options "RENDER" "Enable" doesn't actually do anything.  AGPMode
is the likely candidate for causing issues.

        Option "DynamicClocks" "1"    

might also be good to turn off unless you need it.
Comment 3 Erik Andren 2006-04-23 02:29:23 UTC
Ping to the bug submitter, did Eric's suggestion help?
Comment 4 Kuwanger 2006-05-04 08:20:18 UTC
I am unable to test, as in the interim my computer has died.  Sorry.
Comment 5 Erik Andren 2006-05-04 15:49:24 UTC
Closing as there are no hardware to test this issue with.

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.