<div dir="ltr">On Wed, Feb 25, 2015 at 9:17 PM, Brian Paul <span dir="ltr"><<a href="mailto:brianp@vmware.com" target="_blank">brianp@vmware.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">On 02/25/2015 09:59 AM, Martin Knoblauch wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">
<br>
</span><br><div><div class="h5">
<br>
<br>
Hi Brian,<br>
<br>
so I fixed the configure option, applied the patch and 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 rest to<br>
hide the innocent and incompetent ...<br>
</div></div></blockquote>
<br>
I really don't see how we'd be failing at line 1324 unless the 'front' pointer was garbage (which it should never be). Can you use 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 XMesaGetCurrentDrawable().<span class=""><font color="#888888"><br>
<br>
-Brian<br>
<br>
<br>
</font></span></blockquote></div><br></div><div class="gmail_extra">Hi Brian,<br><br></div><div class="gmail_extra"> 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 clear="all"></div><div class="gmail_extra">Seems the "front" pointer is not-null, but not readable.<br><br></div><div class="gmail_extra">Any ideas ?<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Cheers<br></div><div class="gmail_extra">Martin<br></div><div class="gmail_extra">-- <br><div class="gmail_signature"><div dir="ltr">------------------------------------------------------<br>Martin Knoblauch<br>email: k n o b i AT knobisoft DOT de<br>www: <a href="http://www.knobisoft.de" target="_blank">http://www.knobisoft.de</a></div></div>
</div></div>