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