Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Apr 2012 00:05:32 -0700
From:      matt <sendtomatt@gmail.com>
To:        Warren Block <wblock@wonkity.com>
Cc:        x11@freebsd.org, Andrea Venturoli <ml@netfence.it>, freebsd-ports@freebsd.org
Subject:   Re: New X.Org
Message-ID:  <4F98F3BC.3020305@gmail.com>
In-Reply-To: <4F979BCA.9050800@gmail.com>
References:  <4F9541DD.3080200@netfence.it> <alpine.BSF.2.00.1204230648560.68901@wonkity.com> <4F956713.60604@gmail.com> <alpine.BSF.2.00.1204231032020.69711@wonkity.com> <4F979BCA.9050800@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 04/24/12 23:38, matt wrote:
> On 04/23/12 09:37, Warren Block wrote:
>> On Mon, 23 Apr 2012, matt wrote:
>>
>>> On 04/23/12 05:59, Warren Block wrote:
>>>> On Mon, 23 Apr 2012, Andrea Venturoli wrote:
>>>>
>>>>> I have a Radeon card, so, does this mean I will get xorg-server? Any
>>>>> way to get 1.10? Any advantage into this?
>>>>
>>>> A Radeon 4650 is working fine here with xorg-server 1.10.6 and mesa
>>>> 7.11.  So far there are no Firefox title bar artifacts like there were
>>>> occasionally with the earlier version.
>>>>
>>>>> Also, I have WITHOUT_NOUVEAU in /etc/make.conf. Should I remove it?
>>>>
>>>> Yes, replace it with WITH_NEW_XORG=yes.  Then rebuild graphics/libdrm,
>>>> xorg-server, xf86-input-*, xf86-video-*, and... a few other things I
>>>> should have taken notes on.
>>
>>> Interesting. Another Radeon 4650 (rv730) is not working here, giving
>>> Bus
>>> Errors at the same address whenever certain applications are launched.
>>> Failing examples: Firefox, gedit, qt4-designer
>>> Successful: xfce4-terminal, ioquake3, compiz
>>>
>>> I just completed recompiling all ports dependent on libGL with no luck.
>>> I had "WITHOUT_NOUVEAU" in make.conf at the same time as
>>> "WITH_NEW_XORG", is that the problem?
>>> Does this sound like an Xorg problem or a ports/ld problem?
>>
>> I also did 'portmaster driconf', which rebuilt libglut and libGLU.
>> Run pkg_libchk from sysutils/bsdadminscripts to check for missing
>> libraries.
>>
> I rebuilt most ports, the rest are rebuilding now.
> The problem can be excluded by not running my normal xinitrc, however
> I do think this may be either an X or base system bug?
> Test case for creating this involves starting with my normal xinitrc,
> desktop appears, then launching Thunar. Closing a window also causes
> the crash.
>
> Here is a complete backtrace...can anyone make any sense of this? Is
> this related to the libthr.so.3 issues recently on CURRENT?
>
>
> Program received signal SIGBUS, Bus error.
> 0x0000000803bc8bb2 in glxGetScreen ()
>    from /usr/local/lib/xorg/modules/extensions/libglx.so
> (gdb)
> Continuing.
>
> Program received signal SIGABRT, Aborted.
> 0x0000000803254bbc in thr_kill () from /lib/libc.so.7
> (gdb) bt
> #0  0x0000000803254bbc in thr_kill () from /lib/libc.so.7
> #1  0x00000008032fee9b in abort () from /lib/libc.so.7
> #2  0x000000000046ceff in OsAbort ()
> #3  0x0000000000479bfc in ddxGiveUp ()
> #4  0x000000000000000a in ?? ()
> #5  0x7d25c10fe5bd6725 in ?? ()
> #6  0x0000000000593830 in ?? ()
> #7  0x00000000004694ee in LogSetParameter ()
> #8  0x0000000000469743 in FatalError ()
> #9  0x000000000046a703 in OsLookupColor ()
> #10 0x0000000001116c00 in ?? ()
> #11 0x7d25c10fe5bd6725 in ?? ()
> #12 0x00007fffffffd3a0 in ?? ()
> #13 0x000000000100e400 in ?? ()
> #14 0x00007fffffffd780 in ?? ()
> #15 0x0000000802fdf1be in pthread_sigmask () from /lib/libthr.so.3
> #16 0x0000000802fdf34b in pthread_sigmask () from /lib/libthr.so.3
> #17 0x00007ffffffff043 in ?? ()
> #18 0x0000000802fdf270 in pthread_sigmask () from /lib/libthr.so.3
> #19 0x0000000000000000 in ?? ()
> #20 0x0000000000000000 in ?? ()
> #21 0x0000000000000000 in ?? ()
> #22 0x0000000000000000 in ?? ()
> ---Type <return> to continue, or q <return> to quit---
> #23 0x5a5a5a5a5a5a5a5a in ?? ()
> #24 0x0000000003380100 in ?? ()
> #25 0x00000008035454a0 in __des_crypt_LOCAL () from /lib/libc.so.7
> #26 0x0000000000000001 in ?? ()
> #27 0x0000000000000000 in ?? ()
> #28 0x00000000000a8008 in ?? ()
> #29 0x0000000000000118 in ?? ()
> #30 0x0000000000000001 in ?? ()
> #31 0x000000000080ccf8 in screenInfo ()
> #32 0x0000000004c00dc0 in ?? ()
> #33 0x0000000004c97000 in ?? ()
> #34 0x0000000003380100 in ?? ()
> #35 0x000000000080ccc0 in ScreenSaverBlanking ()
> #36 0x00000008035454a0 in __des_crypt_LOCAL () from /lib/libc.so.7
> #37 0x00000000008026c0 in RegionEmptyBox ()
> #38 0x001b001300000009 in ?? ()
> #39 0x0000000000000000 in ?? ()
> #40 0x003b003b00000001 in ?? ()
> #41 0x0000000000000000 in ?? ()
> #42 0x0000000803bc8bb2 in glxGetScreen ()
>    from /usr/local/lib/xorg/modules/extensions/libglx.so
> #43 0x0000000000000043 in ?? ()
> #44 0x0000000000013202 in ?? ()
> ---Type <return> to continue, or q <return> to quit---
> #45 0x00007fffffffd850 in ?? ()
> #46 0x000000000000003b in ?? ()
> #47 0x0000000000000320 in ?? ()
> #48 0x0000000000010002 in ?? ()
> #49 0x0000000000020002 in ?? ()
> #50 0x000000000000037f in ?? ()
> #51 0x0000000000000000 in ?? ()
> #52 0x0000000000000000 in ?? ()
> #53 0x0002ffff00001fa0 in ?? ()
> #54 0x0000000068741582 in ?? ()
> #55 0x000000000000ffff in ?? ()
> #56 0x0000000000000000 in ?? ()
> #57 0x000000000000ffff in ?? ()
> #58 0x0000000000000000 in ?? ()
> #59 0x0000000000000000 in ?? ()
> #60 0x0000000000000000 in ?? ()
> #61 0x0000000000000000 in ?? ()
> #62 0x0000000000000000 in ?? ()
> #63 0x0000000000000000 in ?? ()
> #64 0x000000000000191b in ?? ()
> #65 0x000000000000ffff in ?? ()
> #66 0x0000000000000000 in ?? ()
> #67 0x0000000000000000 in ?? ()
> ---Type <return> to continue, or q <return> to quit---
> #68 0x0000000000000000 in ?? ()
> #69 0x0000000000000000 in ?? ()
> #70 0x0000000047012f00 in ?? ()
> #71 0x0000000000000000 in ?? ()
> #72 0x000000004b7fffff in ?? ()
> #73 0x0000000000000000 in ?? ()
> #74 0x0000000044d30000 in ?? ()
> #75 0x0000000000000000 in ?? ()
> #76 0x0000000043120000 in ?? ()
> #77 0x0000000000000000 in ?? ()
> #78 0x000000003f5db3d7 in ?? ()
> #79 0x0000000000000000 in ?? ()g3l!
>
> #80 0x0000000000000000 in ?? ()
> #81 0x0000000000000000 in ?? ()
> #82 0x0000000000000000 in ?? ()
> #83 0x0000000000000000 in ?? ()
> #84 0x000000007fffffff in ?? ()
> #85 0x0000000000000000 in ?? ()
> #86 0x000000003f800000 in ?? ()
> #87 0x0000000000000000 in ?? ()
> #88 0x000000003f800000 in ?? ()
> #89 0x0000000000000000 in ?? ()
> #90 0x0000000000000000 in ?? ()
> ---Type <return> to continue, or q <return> to quit---
> #91 0x0000000000000000 in ?? ()
> #92 0x0000000000000000 in ?? ()
> #93 0x0000000000000000 in ?? ()
> #94 0x0000000000000000 in ?? ()
> #95 0x0000000000000000 in ?? ()
> #96 0x0000000000000000 in ?? ()
> #97 0x0000000000000000 in ?? ()
> #98 0x0000000000000000 in ?? ()
> #99 0x0000000000000000 in ?? ()
> #100 0x0000000000000000 in ?? ()
> #101 0x0000000000000000 in ?? ()
> #102 0x0000000000000000 in ?? ()
> #103 0x0000000000000000 in ?? ()
> #104 0x0000000000000000 in ?? ()
> #105 0x0000000000000000 in ?? ()
> #106 0x0000000000000000 in ?? ()
> #107 0x0000000000000000 in ?? ()
> #108 0x0000000000000000 in ?? ()
> #109 0x0000000000000000 in ?? ()
> #110 0x0000000000000000 in ?? ()
> #111 0x0000000000000000 in ?? ()
> #112 0x0000000000000000 in ?? ()
> #113 0x0000000000000000 in ?? ()
> ---Type <return> to continue, or q <return> to quit---
> #114 0x000000080082f2a0 in ?? ()
> #115 0x0000000000000000 in ?? ()
> #116 0x0000000000000000 in ?? ()
> #117 0x0000000000000000 in ?? ()
> #118 0x0000000000000000 in ?? ()
> #119 0x0000000000000000 in ?? ()
> #120 0x0000000000000000 in ?? ()
> #121 0x0000000000000000 in ?? ()
> #122 0x0000000000000000 in ?? ()
> #123 0x0000000000000000 in ?? ()
> #124 0x0000000000000000 in ?? ()
> #125 0x0000000000000004 in ?? ()
> #126 0x0000000000000000 in ?? ()
> #127 0x0000000000000000 in ?? ()
> #128 0x0000000000000000 in ?? ()
> #129 0x0000000000000000 in ?? ()
> #130 0x000000000000000a in ?? ()
> #131 0x0000000000000003 in ?? ()
> #132 0x0000000000000000 in ?? ()
> #133 0x0000000803bc8bb2 in glxGetScreen ()
>    from /usr/local/lib/xorg/modules/extensions/libglx.so
> #134 0x0000000000000000 in ?? ()
> #135 0x0000000000000009 in ?? ()
> ---Type <return> to continue, or q <return> to quit---
> #136 0x0000000000000000 in ?? ()
> #137 0x0000000000000000 in ?? ()
> #138 0x0000000000000000 in ?? ()
> #139 0x0000000000000000 in ?? ()
> #140 0x0000000004c97000 in ?? ()
> #141 0x7d25c10fe5bd6725 in ?? ()
> #142 0x0000000004c970b0 in ?? ()
> #143 0x00000000010a4500 in ?? ()
> #144 0x000000000113cf00 in ?? ()
> #145 0x00000008035454a0 in __des_crypt_LOCAL () from /lib/libc.so.7
> #146 0x0000000004c97000 in ?? ()
> #147 0x00000000004ef463 in DamageDestroy ()
> #148 0x0000000003380100 in ?? ()
> #149 0x000000000080ccc0 in ScreenSaverBlanking ()
> #150 0x7d25c10fe5bd6725 in ?? ()
> #151 0x00000000008026c0 in RegionEmptyBox ()
> #152 0x0000000803bd13f3 in __glXDRIdrawableDestroy ()
>    from /usr/local/lib/xorg/modules/extensions/libglx.so
> #153 0x0000000803bc710c in DrawableGone ()
>    from /usr/local/lib/xorg/modules/extensions/libglx.so
> #154 0x00000000004510da in FreeResource ()
> #155 0x00007fffffffd970 in ?? ()
> #156 0x0000000001014bb0 in ?? ()
> ---Type <return> to continue, or q <return> to quit---
> #157 0x00007fffffffd96c in ?? ()
> #158 0x0000000803bc1286 in validGlxDrawable ()
>    from /usr/local/lib/xorg/modules/extensions/libglx.so
> #159 0x0000000803bc1a8f in DoDestroyDrawable.isra.12 ()
>    from /usr/local/lib/xorg/modules/extensions/libglx.so
> #160 0x00000008035454a0 in __des_crypt_LOCAL () from /lib/libc.so.7
> #161 0x00000000010af800 in ?? ()
> #162 0x0000000003380100 in ?? ()
> #163 0x7d25c10fe5bd6725 in ?? ()
> #164 0x0000000004c2a08c in ?? ()
> #165 0x00000000010af800 in ?? ()
> #166 0x00000000010af918 in ?? ()
> #167 0x0000000803bc7aeb in __glXDispatch ()
>    from /usr/local/lib/xorg/modules/extensions/libglx.so
> #168 0x00000000004319fb in SendErrorToClient ()
> #169 0x0000000000000000 in ?? ()
> #170 0x0000000000000000 in ?? ()
> #171 0x0000000001012c00 in ?? ()
> #172 0x000000000000001e in ?? ()
> #173 0x000000000080c4a0 in ConnectionInfo ()
> #174 0x0000000001012c00 in ?? ()
> #175 0x0000000000000000 in ?? ()
> #176 0x7d25c10fe5bd6725 in ?? ()
> ---Type <return> to continue, or q <return> to quit---
> #177 0x0000000001356d00 in ?? ()
> #178 0x00000000007f9fd4 in auditTrailLevel ()
> #179 0x0000000000000001 in ?? ()
> #180 0x000000000080ccc0 in ScreenSaverBlanking ()
> #181 0x000000000080ccf8 in screenInfo ()
> #182 0x000000000080cca0 in clients ()
> #183 0x000000000080c448 in DPMSEnabled ()
> #184 0x000000000042446a in ?? ()
> #185 0x00000000004247dd in _start ()
> #186 0x0000000800810000 in ?? ()
> #187 0x0000000000000000 in ?? ()
> #188 0x0000000000000004 in ?? ()
> #189 0x00007fffffffdd70 in ?? ()
> #190 0x00007fffffffdd81 in ?? ()
> #191 0x00007fffffffdd84 in ?? ()
> #192 0x00007fffffffdd8a in ?? ()
> #193 0x0000000000000000 in ?? ()
> #194 0x00007fffffffdda8 in ?? ()
> #195 0x00007fffffffddb6 in ?? ()
> #196 0x00007fffffffddd6 in ?? ()
> #197 0x00007fffffffddeb in ?? ()
> #198 0x00007fffffffde0e in ?? ()
> #199 0x00007fffffffde23 in ?? ()
> ---Type <return> to continue, or q <return> to quit---
> #200 0x00007fffffffde80 in ?? ()
> #201 0x00007fffffffde8f in ?? ()
> #202 0x00007fffffffde9f in ?? ()
> #203 0x00007fffffffdeb7 in ?? ()
> #204 0x00007fffffffdec2 in ?? ()
> #205 0x00007fffffffded3 in ?? ()
> #206 0x00007fffffffdede in ?? ()
> #207 0x00007fffffffdef6 in ?? ()
> #208 0x00007fffffffdf10 in ?? ()
> #209 0x00007fffffffdf28 in ?? ()
> #210 0x00007fffffffdf34 in ?? ()
> #211 0x00007fffffffdf63 in ?? ()
> #212 0x0000000000000000 in ?? ()
> #213 0x0000000000000003 in ?? ()
> #214 0x0000000000400040 in ?? ()
> #215 0x0000000000000004 in ?? ()
> #216 0x0000000000000038 in ?? ()
> #217 0x0000000000000005 in ?? ()
> #218 0x0000000000000008 in ?? ()
> #219 0x0000000000000006 in ?? ()
> #220 0x0000000000001000 in ?? ()
> #221 0x0000000000000008 in ?? ()
> #222 0x0000000000000000 in ?? ()
> ---Type <return> to continue, or q <return> to quit---
> #223 0x0000000000000009 in ?? ()
> #224 0x0000000000424750 in ?? ()
> #225 0x0000000000000007 in ?? ()
> #226 0x00000008007f0000 in ?? ()
> #227 0x000000000000000f in ?? ()
> #228 <signal handler called>
> #229 0x0000000000000000 in ?? ()
> Previous frame inner to this frame (corrupt stack?)
>
> Thanks!
>
> Matt
>
Fixed this issue using the changes indicated in the below patch, which
solved my issue with x bus errors. It looks like glxGetScreen was
choking. This may help users with similar problems in compiz or Kwin.
FYI I manually applied changes in the patch to x11-servers/xorg-server,
not sure if the patch below would apply cleanly.

diff --git a/glx/glxdri.c b/glx/glxdri.c
index 326f539..f6ef784 100644
--- a/glx/glxdri.c
+++ b/glx/glxdri.c
@@ -230,7 +230,7 @@ __glXDRIdrawableDestroy(__GLXdrawable *drawable)
 
     /* If the X window was destroyed, the dri DestroyWindow hook will
      * aready have taken care of this, so only call if pDraw isn't NULL. */
-    if (drawable->pDraw != NULL) {
+    if (drawable->pDraw != NULL && drawable->pDraw->type == DRAWABLE_WINDOW) {
 	screen = (__GLXDRIscreen *) glxGetScreen(drawable->pDraw->pScreen);
 	(*screen->core->destroyDrawable)(private->driDrawable);
 
-- 
1.7.6.4


Reference:
http://lists.x.org/archives/xorg-devel/2011-December/027839.html

Matt



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F98F3BC.3020305>