<p dir="ltr">Hi Brian,</p>
<p dir="ltr"> will have to wait two weeks. Vacation :-)</p>
<p dir="ltr">Cheers<br>
Martin </p>
<div class="gmail_quote">Am 26.02.2015 16:30 schrieb "Brian Paul" <<a href="mailto:brianp@vmware.com">brianp@vmware.com</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 02/26/2015 03:41 AM, Martin Knoblauch wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wed, Feb 25, 2015 at 9:17 PM, Brian Paul <<a href="mailto:brianp@vmware.com" target="_blank">brianp@vmware.com</a><br>
<mailto:<a href="mailto:brianp@vmware.com" target="_blank">brianp@vmware.com</a>>> wrote:<br>
<br>
On 02/25/2015 09:59 AM, Martin Knoblauch wrote:<br>
<br>
<br>
<br>
<br>
<br>
Hi Brian,<br>
<br>
so I fixed the configure option, applied the patch and<br>
rebuilt. The<br>
program is now failing even quicker in:<br>
<br>
#0 XMesaGetCurrentDrawable () at xm_api.c:1324<br>
<br>
This is the only useful part of the stack and I need to omit the<br>
rest to<br>
hide the innocent and incompetent ...<br>
<br>
<br>
I really don't see how we'd be failing at line 1324 unless the<br>
'front' pointer was garbage (which it should never be). Can you use<br>
a debug build and gdb to try to narrow this down a little?<br>
<br>
I also hacked the Mesa xfont.c demo and can't reproduce a crash in<br>
XMesaGetCurrentDrawable().<br>
<br>
-Brian<br>
<br>
<br>
<br>
Hi Brian,<br>
<br>
this is what gdb tells me:<br>
<br>
1324 return front->drawable;<br>
(gdb) list<br>
1319 {<br>
1320 XMesaBuffer xmbuffer = XMesaGetCurrentBuffer();<br>
1321 if (xmbuffer) {<br>
1322 struct xmesa_renderbuffer *front = xmbuffer->frontxrb;<br>
1323 if (front)<br>
1324 return front->drawable;<br>
1325 }<br>
1326 return 0;<br>
1327 }<br>
1328<br>
(gdb) print front<br>
$1 = (struct xmesa_renderbuffer *) 0x72c3800000030<br>
(gdb) print front->drawable<br>
Cannot access memory at address 0x72c38000000c0<br>
(gdb) print *front<br>
Cannot access memory at address 0x72c3800000030<br>
(gdb)<br>
<br>
Seems the "front" pointer is not-null, but not readable.<br>
<br>
Any ideas ?<br>
</blockquote>
<br>
Not off-hand.<br>
<br>
Could you possibly try to hack a Mesa demo to reproduce the issue? The Mesa xfont.c demo is what I was using. I added a few calls to glXGetCurrentDrawable() but it didn't crash.<br>
<br>
-Brian<br>
<br>
<br>
</blockquote></div>