On Wed, Jan 25, 2012 at 12:22 PM, Paul Berry <span dir="ltr"><<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On 25 January 2012 11:42, Anuj Phogat <span dir="ltr"><<a href="mailto:anuj.phogat@gmail.com" target="_blank">anuj.phogat@gmail.com</a>></span> wrote:<br></div></div><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div>Hi,</div><div><br></div><div>I'm getting following assertion failure on executing any OpenGL application including glxinfo with mesa master (dc435ae):</div><div><br></div><div><div>glxinfo: brw_program.c:261: brwInitFragProgFuncs: Assertion `functions->ProgramStringNotify == _tnl_program_string' failed.</div>
<div><br></div><div>Program received signal SIGABRT, Aborted.</div><div>0x00110416 in __kernel_vsyscall ()</div><div>(gdb) bt</div><div>#0 0x00110416 in __kernel_vsyscall ()</div><div>#1 0x4dc3698f in raise () from /lib/libc.so.6</div>
<div>#2 0x4dc382d5 in abort () from /lib/libc.so.6</div><div>#3 0x4dc2f6a5 in __assert_fail_base () from /lib/libc.so.6</div><div>#4 0x4dc2f757 in __assert_fail () from /lib/libc.so.6</div><div>#5 0x00221850 in brwInitFragProgFuncs (functions=0xbfffeb30) at brw_program.c:261</div>
<div>#6 0x0020d3e8 in brwInitDriverFunctions (functions=0xbfffeb30, screen=0x805fd38) at brw_context.c:117</div><div>#7 brwCreateContext (api=0, mesaVis=0x8063040, driContextPriv=0x8066180, sharedContextPrivate=0x0) at brw_context.c:148</div>
<div>#8 0x001fcde8 in intelCreateContext (api=API_OPENGL, mesaVis=0x8063040, driContextPriv=0x8066180, major_version=1, minor_version=0, flags=0, error=0xbfffee9c, </div><div> sharedContextPrivate=0x0) at intel_screen.c:557</div>
<div>#9 0x002915fb in dri2CreateContextAttribs (screen=0x805fc70, api=0, config=0x8063040, shared=0x0, num_attribs=0, attribs=0x0, error=0xbfffee9c, data=0x805a850)</div><div> at ../common/dri_util.c:236</div><div>#10 0x002917b7 in dri2CreateNewContextForAPI (screen=0x805fc70, api=0, config=0x8063040, shared=0x0, data=0x805a850) at ../common/dri_util.c:254</div>
<div>#11 0x002917ef in dri2CreateNewContext (screen=0x805fc70, config=0x8063040, shared=0x0, data=0x805a850) at ../common/dri_util.c:262</div><div>#12 0x00163244 in dri2_create_context (base=0x805a390, config_base=0x8066cc0, shareList=0x0, renderType=32788) at dri2_glx.c:213</div>
<div>#13 0x0012bb91 in CreateContext (dpy=0x804e008, generic_id=146, config=0x8066cc0, shareList_user=0x0, allowDirect=1, code=3, renderType=32788, screen=0)</div><div> at glxcmds.c:276</div><div>#14 0x0012c023 in glXCreateContext (dpy=0x804e008, vis=0x805a6b8, shareList=0x0, allowDirect=1) at glxcmds.c:381</div>
<div>#15 0x08048fc3 in print_screen_info (limits=0 '\000', allowDirect=1, scrnum=0, dpy=0x804e008) at glxinfo.c:430</div><div>#16 main (argc=1, argv=0xbffff254) at glxinfo.c:1255</div></div><div><br></div><div><br>
</div><div>I also verified that i'm using latest drm (66518ab). Is anyone else seeing similar errors? or am i missing something?</div><div><br></div><div>Thanks</div><span><font color="#888888"><div>Anuj</div>
</font></span><br></div></div>_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
<br></blockquote></div><br>That's a surprising failure, since that assertion would only be expected to be hit if brwInitFragProgFuncs() got called more than once on the same context. That in turn should only happen if the driver's CreateContext() function got called more than once on the same context, and it's hard to see how dri2CreateContextAttribs() would ever do that.<br>
<br>Note: I've heard that there have been some build problems recently; have you tried building from scratch just to be sure? I happen to be reinstalling my OS today, so I've just done a clean build, install, and piglit run on mesa commit dc435ae, and everything looks fine. </blockquote>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>If a clean build doesn't help for you, I'd recommend either bisecting to try to see if a recent commit introduced the problem, or else using gdb to see if brwInitFragProgFuncs() is getting called multiple times, and if so, why.<br>
</blockquote><div>clean build didn't help. It shows assertion failure while executing brwInitFragProgFuncs() for the first time. </div><div>A fresh clone of mesa git repository works fine.</div><div><br></div><div>Thanks</div>
<div>Anuj</div></div><br>