Summary: | xserver crash in fbCopyNtoN with Google Earth, Eclipse | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | Ötzi <jedioetzi> | ||||||||||||
Component: | Server/General | Assignee: | Xorg Project Team <xorg-team> | ||||||||||||
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> | ||||||||||||
Severity: | critical | ||||||||||||||
Priority: | high | Keywords: | have-backtrace, regression | ||||||||||||
Version: | 7.5 (2009.10) | ||||||||||||||
Hardware: | x86-64 (AMD64) | ||||||||||||||
OS: | Linux (All) | ||||||||||||||
Whiteboard: | |||||||||||||||
i915 platform: | i915 features: | ||||||||||||||
Attachments: |
|
Description
Ötzi
2010-10-30 05:54:45 UTC
Maybe the following logs can help. compiz (core) - Warn: Exceeded max texture size Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x4c001d0 (Java - gca) Window manager warning: meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed. Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x4c64439 (Select Plu) Window manager warning: meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed. here the full backtrace GNU gdb (GDB) 7.2-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/bin/Xorg...Reading symbols from /usr/lib/debug/usr/bin/Xorg...done. done. (gdb) attach 1464 Attaching to program: /usr/bin/Xorg, process 1464 Reading symbols from /lib/libudev.so.0...(no debugging symbols found)...done. Loaded symbols for /lib/libudev.so.0 Reading symbols from /lib/libgcrypt.so.11...(no debugging symbols found)...done. Loaded symbols for /lib/libgcrypt.so.11 Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /usr/lib/libpciaccess.so.0...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libpciaccess.so.0 Reading symbols from /lib/libpthread.so.0...(no debugging symbols found)...done. [Thread debugging using libthread_db enabled] Loaded symbols for /lib/libpthread.so.0 Reading symbols from /usr/lib/libpixman-1.so.0...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libpixman-1.so.0 Reading symbols from /usr/lib/libXfont.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libXfont.so.1 Reading symbols from /usr/lib/libXau.so.6...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libXau.so.6 Reading symbols from /usr/lib/libXdmcp.so.6...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libXdmcp.so.6 Reading symbols from /lib/libm.so.6...(no debugging symbols found)...done. Loaded symbols for /lib/libm.so.6 Reading symbols from /lib/librt.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/librt.so.1 Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /lib/libgpg-error.so.0...(no debugging symbols found)...done. Loaded symbols for /lib/libgpg-error.so.0 Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 Reading symbols from /lib/libz.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/libz.so.1 Reading symbols from /usr/lib/libfreetype.so.6...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libfreetype.so.6 Reading symbols from /lib/libbz2.so.1.0...(no debugging symbols found)...done. Loaded symbols for /lib/libbz2.so.1.0 Reading symbols from /usr/lib/libfontenc.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libfontenc.so.1 Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/libgcc_s.so.1 Reading symbols from /usr/lib/xorg/extra-modules/modules/extensions/libglx.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/xorg/extra-modules/modules/extensions/libglx.so Reading symbols from /usr/lib/xorg/modules/extensions/libextmod.so...Reading symbols from /usr/lib/debug/usr/lib/xorg/modules/extensions/libextmod.so...done. done. Loaded symbols for /usr/lib/xorg/modules/extensions/libextmod.so Reading symbols from /usr/lib/xorg/modules/extensions/libdbe.so...Reading symbols from /usr/lib/debug/usr/lib/xorg/modules/extensions/libdbe.so...done. done. Loaded symbols for /usr/lib/xorg/modules/extensions/libdbe.so Reading symbols from /usr/lib/xorg/modules/extensions/librecord.so...Reading symbols from /usr/lib/debug/usr/lib/xorg/modules/extensions/librecord.so...done. done. Loaded symbols for /usr/lib/xorg/modules/extensions/librecord.so Reading symbols from /usr/lib/xorg/modules/extensions/libdri.so...Reading symbols from /usr/lib/debug/usr/lib/xorg/modules/extensions/libdri.so...done. done. Loaded symbols for /usr/lib/xorg/modules/extensions/libdri.so Reading symbols from /lib/libdrm.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/libdrm.so.2 Reading symbols from /usr/lib/xorg/modules/extensions/libdri2.so...Reading symbols from /usr/lib/debug/usr/lib/xorg/modules/extensions/libdri2.so...done. done. Loaded symbols for /usr/lib/xorg/modules/extensions/libdri2.so Reading symbols from /usr/lib/xorg/extra-modules/modules/drivers/fglrx_drv.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/xorg/extra-modules/modules/drivers/fglrx_drv.so Reading symbols from /usr/lib/xorg/extra-modules/modules/linux/libfglrxdrm.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/xorg/extra-modules/modules/linux/libfglrxdrm.so Reading symbols from /usr/lib/fglrx/libatiuki.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/lib/fglrx/libatiuki.so.1 Reading symbols from /usr/lib/xorg/modules/libvgahw.so...Reading symbols from /usr/lib/debug/usr/lib/xorg/modules/libvgahw.so...done. done. Loaded symbols for /usr/lib/xorg/modules/libvgahw.so Reading symbols from /usr/lib/xorg/modules/libvbe.so...Reading symbols from /usr/lib/debug/usr/lib/xorg/modules/libvbe.so...done. done. Loaded symbols for /usr/lib/xorg/modules/libvbe.so Reading symbols from /usr/lib/xorg/modules/libfb.so...Reading symbols from /usr/lib/debug/usr/lib/xorg/modules/libfb.so...done. done. Loaded symbols for /usr/lib/xorg/modules/libfb.so Reading symbols from /usr/lib/xorg/extra-modules/modules/glesx.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/xorg/extra-modules/modules/glesx.so Reading symbols from /usr/lib/xorg/extra-modules/modules/amdxmm.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/xorg/extra-modules/modules/amdxmm.so Reading symbols from /usr/lib64/dri/fglrx_dri.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib64/dri/fglrx_dri.so Reading symbols from /usr/lib/libXext.so.6...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libXext.so.6 Reading symbols from /usr/lib/libX11.so.6...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libX11.so.6 Reading symbols from /usr/lib/libxcb.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libxcb.so.1 Reading symbols from /usr/lib/xorg/modules/input/evdev_drv.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/xorg/modules/input/evdev_drv.so Reading symbols from /usr/lib/libutouch-grail.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libutouch-grail.so.1 Reading symbols from /usr/lib/libmtdev.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libmtdev.so.1 Reading symbols from /usr/lib/xorg/modules/input/synaptics_drv.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/xorg/modules/input/synaptics_drv.so Reading symbols from /lib/libnss_compat.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/libnss_compat.so.2 Reading symbols from /lib/libnsl.so.1...(no debugging symbols found)...done. Loaded symbols for /lib/libnsl.so.1 Reading symbols from /lib/libnss_nis.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/libnss_nis.so.2 Reading symbols from /lib/libnss_files.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/libnss_files.so.2 0x00007fcf5f15b2c3 in select () from /lib/libc.so.6 (gdb) [K(gdb) [K(gdb) [K(gdb) [K(gdb) cont Continuing. Program received signal SIGSEGV, Segmentation fault. fbCopyNtoN (pSrcDrawable=0x2d6eee0, pDstDrawable=0x2d6eee0, pGC=0x23dcf68, pbox=0x7fffdccc4300, nbox=<value optimized out>, dx=<value optimized out>, dy=-1, reverse=0, upsidedown=0, bitplane=0, closure=0x0) at ../../fb/fbcopy.c:78 78 ../../fb/fbcopy.c: No such file or directory. in ../../fb/fbcopy.c (gdb) backtrace full #0 fbCopyNtoN (pSrcDrawable=0x2d6eee0, pDstDrawable=0x2d6eee0, pGC=0x23dcf68, pbox=0x7fffdccc4300, nbox=<value optimized out>, dx=<value optimized out>, dy=-1, reverse=0, upsidedown=0, bitplane=0, closure=0x0) at ../../fb/fbcopy.c:78 alu = 3 '\003' pm = 4294967295 src = 0x68030b00000010 srcStride = <value optimized out> srcBpp = 32719 srcXoff = 0 srcYoff = 15 dst = 0x7fffdccc4050 dstStride = <value optimized out> dstBpp = <value optimized out> dstXoff = 6292235 dstYoff = 16 #1 0x00007fcf5a0757c9 in ?? () from /usr/lib/xorg/extra-modules/modules/glesx.so No symbol table info available. #2 0x00007fcf5a076f35 in ?? () from /usr/lib/xorg/extra-modules/modules/glesx.so No symbol table info available. #3 0x00000000004d82e0 in damageComposite (op=224 '\340', pSrc=<value optimized out>, pMask=<value optimized out>, pDst=0x2d9df70, xSrc=1, ySrc=0, xMask=<value optimized out>, yMask=<value optimized out>, xDst=0, yDst=31, width=4943, height=<value optimized out>) at ../../../miext/damage/damage.c:640 pScreen = <value optimized out> #4 0x00000000004d13d9 in ProcRenderComposite (client=0x2b8c660) at ../../render/render.c:723 pSrc = 0x2d9df70 pMask = 0x0 pDst = 0x2d9df70 #5 0x000000000042c2d9 in Dispatch () at ../../dix/dispatch.c:432 result = <value optimized out> client = 0x2b8c660 nready = 0 start_tick = 2600 #6 0x000000000042184b in main (argc=9, argv=0x7fffdccc46a8, envp=<value optimized out>) at ../../dix/main.c:291 i = 1 alwaysCheckForInput = {0, 1} (gdb) cont Continuing. Program exited with code 01. (gdb) e i am able to give a java program that reproduces systematically the problem. is an executable jar, has only on problem: his size is 64MB. if a xorg developer needs it, contact me. *Sigh* another 'upstream' report lacking critical information such as the Xorg.0.log file... Has this ever been reproduced with another driver? Assuming the line number from #0 fbCopyNtoN (pSrcDrawable=0x2d6eee0, pDstDrawable=0x2d6eee0, pGC=0x23dcf68, pbox=0x7fffdccc4300, nbox=<value optimized out>, dx=<value optimized out>, dy=-1, reverse=0, upsidedown=0, bitplane=0, closure=0x0) at ../../fb/fbcopy.c:78 is accurate, it seems most likely that fbGetGCPrivate(pGC) returns NULL, which is most likely a driver problem (pGC seems allocated by /usr/lib/xorg/extra-modules/modules/glesx.so). Or, if you're certain it's an xserver regression, please try and bisect it. I'am not sure at all, I only looked at backtrace and supposed the problem is in xserver. I tried to look at the code but I was not able to recognize if the cause is originated from other step in the backtrace. The problem is that the upgrade to maverick upgrades xserver and fglrx too and is not possible to downgrade only fglrx. I will try again to use radeon open source drivers to see if the problem occurs too. I tried some time ago but X starts no more, it seems that in ubuntu there is a problem switching off the propietary driver. I use linux for work so I must be very carefull! Will try this weekend. In the meanwhile I filed a bug to amd http://ati.cchtml.com/show_bug.cgi?id=15 Anyway I expect xserver never crashes. The system became very unstable if a bad written application can crash the xserver (usually for an end user the gui is the system). There is a workaround patch that I can apply? i.e. adding some additional checks here #define fbGetGCPrivate(pGC) ((FbGCPrivPtr)\ dixLookupPrivate(&(pGC)->devPrivates, fbGetGCPrivateKey())) thanks for your investigation, If I can help somehow let me know, I am developer too but not an expert in xserver or drivers. sorry I missed to answer: >*Sigh* another 'upstream' report lacking critical information such as the >Xorg.0.log file... all details on the system are in the issue https://bugs.launchpad.net/ubuntu/+bug/659792, including xorg logs https://bugs.launchpad.net/ubuntu/+bug/659792/+attachment/1740027/+files/XorgLog.txt https://bugs.launchpad.net/ubuntu/+bug/659792/+attachment/1740028/+files/XorgLogOld.txt and conf https://bugs.launchpad.net/ubuntu/+bug/659792/+attachment/1740026/+files/XorgConf.txt https://bugs.launchpad.net/ubuntu/+bug/659792/+attachment/1740029/+files/Xrandr.txt https://bugs.launchpad.net/ubuntu/+bug/659792/+attachment/1740030/+files/glxinfo.txt If you need more infos, ask me I will provide you (In reply to comment #5) > Anyway I expect xserver never crashes. The system became very unstable if a bad > written application can crash the xserver (usually for an end user the gui is > the system). The X server can't do anything about crashes caused by drivers. > There is a workaround patch that I can apply? > i.e. adding some additional checks here > #define fbGetGCPrivate(pGC) ((FbGCPrivPtr)\ > dixLookupPrivate(&(pGC)->devPrivates, fbGetGCPrivateKey())) I doubt it. (In reply to comment #6) > all details on the system are in the issue > https://bugs.launchpad.net/ubuntu/+bug/659792, including xorg logs I shouldn't have needed to go looking there, if an issue is to be tracked here, all the relevant information should be available here directly. Created attachment 41968 [details]
xorg log
Created attachment 41969 [details]
xorg log old
Created attachment 41970 [details]
xorg conf
>The X server can't do anything about crashes caused by drivers. is a segfault in a function in fbcopy.c, sometimes just checking for NULL refs , maybe, can avoid it. From my point of view xserver should should crash only if kernel crashes. Xserver is the kernel of gui apps, it should be stable. If a driver/module in the kernel crashes, the kernel survives, in the same way the xserver should survive to glesx.so. I can understand that not all possible problems can be avoided, but this should be the 'vision' for to compete with commercial OS. But those are only personal considerations! >I shouldn't have needed to go looking there, if an issue is to be tracked here, >all the relevant information should be available here directly. I agree, as said before: just ask :-) If the problem can only fixed in ati commercial drivers, I will try asap to switch to opensource drivers and wait for a fix in fglrx. Here is the backtrace using radeon opensource driver. It seems is not an issue of the driver. Backtrace: [ 129.903] 0: /usr/bin/X (xorg_backtrace+0x28) [0x45c448] [ 129.903] 1: /usr/bin/X (0x400000+0x5a71d) [0x45a71d] [ 129.903] 2: /lib/libpthread.so.0 (0x7f14194da000+0xfb40) [0x7f14194e9b40] [ 129.903] 3: /usr/lib/xorg/modules/extensions/libglx.so (0x7f14170cf000+0x37ae1) [0x7f1417106ae1] [ 129.903] 4: /usr/lib/xorg/modules/extensions/libglx.so (0x7f14170cf000+0x3f72b) [0x7f141710e72b] [ 129.903] 5: /usr/lib/xorg/modules/extensions/libglx.so (0x7f14170cf000+0x3696f) [0x7f141710596f] [ 129.903] 6: /usr/bin/X (FreeClientResources+0xef) [0x44adbf] [ 129.903] 7: /usr/bin/X (CloseDownClient+0x5c) [0x43b27c] [ 129.903] 8: /usr/bin/X (0x400000+0x3fa16) [0x43fa16] [ 129.903] 9: /usr/bin/X (0x400000+0x2184b) [0x42184b] [ 129.903] 10: /lib/libc.so.6 (__libc_start_main+0xfe) [0x7f1418445d8e] [ 129.903] 11: /usr/bin/X (0x400000+0x213d9) [0x4213d9] [ 129.903] Segmentation fault at address 0x290 [ 129.903] Caught signal 11 (Segmentation fault). Server aborting [ 129.903] Please consult the The X.Org Foundation support at http://wiki.x.org for help. Created attachment 42047 [details]
xorg log with radeon
Created attachment 42048 [details]
glxinfo mesa
> --- Comment #12 from Ötzi <jedioetzi@infinito.it> 2011-01-14 10:05:07 PST ---
> Here is the backtrace using radeon opensource driver.
> It seems is not an issue of the driver.
>
that looks like an entirely unrelated bug.
strange, is reproduced exactly in the same way... a relation between the two situations should be... if you prefer I open a separate issue. (In reply to comment #16) > strange, is reproduced exactly in the same way... Which of the several ways described in this report exactly? > if you prefer I open a separate issue. There's already at least one report for that crash.
As said I can send a java program that reproduces the crash with both drivers
>There's already at least one report for that crash.
could you please give me the link, I searched '/usr/bin/X (xorg_backtrace +0x28) [0x45c448]' in freedesktop but as result gives only ths issue.
thanks
upgrading to ubuntu-natty the problem seems to be resolved! (In reply to Ötzi from comment #19) > upgrading to ubuntu-natty the problem seems to be resolved! Closing per comment #19, thanks. |
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.