http://bugs.freedesktop.org/show_bug.cgi?id=12906
[EMAIL PROTECTED] changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #12273|0 |1
is obsolete| |
------- Comment #5 from [EMAIL PROTECTED] 2007-10-31 10:42 PST -------
Created an attachment (id=12276)
--> (http://bugs.freedesktop.org/attachment.cgi?id=12276&action=view)
actual patch that was applied.
i think we're looking at slightly different source trees, because the patch to
context.c did not apply cleanly, but i found the _mesa_make_current function
and added the assertions.
well, it didn't crash on any of these, but probably because asserts get
undef'ed or something.
i did actually attach gdb to running server, set breakpoint on
_mesa_make_current and here's what i got:
(gdb) break _mesa_make_current
Breakpoint 1 at 0x307a7437: file context.c, line 1440.
(gdb) cont
Continuing.
Breakpoint 1, _mesa_make_current (newCtx=0x8809000, drawBuffer=0x9095000,
readBuffer=0x9095000) at context.c:1440
1440 GET_CURRENT_CONTEXT(oldCtx);
(gdb) cont
Continuing.
Breakpoint 1, _mesa_make_current (newCtx=0x90f0000, drawBuffer=0x968d000,
readBuffer=0x968d000) at context.c:1440
1440 GET_CURRENT_CONTEXT(oldCtx);
(gdb) cont
Continuing.
Breakpoint 1, _mesa_make_current (newCtx=0x8809000, drawBuffer=0x0,
readBuffer=0x0) at context.c:1440
1440 GET_CURRENT_CONTEXT(oldCtx);
(gdb) bt
#0 _mesa_make_current (newCtx=0x8809000, drawBuffer=0x0, readBuffer=0x0) at
context.c:1440
#1 0x308ef65e in XMesaForceCurrent (c=0x8809000) at xm_api.c:1879
#2 0x28644d40 in __glXMesaContextForceCurrent (baseContext=0x0) at
glxglcore.c:209
#3 0x286446b6 in __glXForceCurrent (cl=0x873b240, tag=677967912,
error=0xbfbfe904) at glxext.c:408
#4 0x286643d1 in DoGetString (cl=0x873b240, pc=0x867f000 "\220\201\003",
need_swap=0 '\0') at single2.c:334
#5 0x286645da in __glXDisp_GetString (cl=0x0, pc=0x0) at single2.c:393
#6 0x28644938 in __glXDispatch (client=0x87f1e00) at glxext.c:561
#7 0x0814656d in XaceCatchExtProc (client=0x87f1e00) at xace.c:299
#8 0x08087024 in Dispatch () at dispatch.c:502
#9 0x0806df1c in main (argc=7, argv=0xbfbfeebc, envp=0x0) at main.c:452
(gdb) frame 6
#6 0x28644938 in __glXDispatch (client=0x87f1e00) at glxext.c:561
561 retval = (*proc)(cl, (GLbyte *) stuff);
(gdb) print *client
$1 = {index = 16, clientAsMask = 33554432, requestBuffer = 0x867f000, osPrivate
= 0x8786b60, swapped = 0, pSwapReplyFunc = 0x81ae100 <WriteToClient>,
errorValue = 33554495,
sequence = 365, closeDownMode = 0, clientGone = 0, noClientException = 0,
lastDrawable = 0x878ca00, lastDrawableID = 33554495, lastGC = 0x0, lastGCID =
0, saveSet = 0x0, numSaved = 0,
screenPrivate = {0x80015, 0x8000c, 0x90015, 0x9000b, 0xa0015, 0xa000a,
0xb0015, 0xb0009, 0xc0015, 0xc0008, 0xd0015, 0xd0007, 0xe0015, 0xe0006,
0xf0015, 0xf0005},
requestVector = 0x81fcec0, req_len = 3, big_requests = 1, priority = 0,
clientState = ClientStateRunning, devPrivates = 0x87f1ec4, xkbClientFlags =
32771, mapNotifyMask = 255,
newKeyboardNotifyMask = 65535, vMajor = 1, vMinor = 0, minKC = 8 '\b', maxKC
= 255 'ΓΏ', replyBytesRemaining = 0, appgroup = 0x0, fontResFunc = 0,
smart_priority = 0,
smart_start_tick = 67620, smart_stop_tick = 67500, smart_check_tick = 67620}
(gdb) print cl
$2 = (__GLXclientState *) 0x873b240
(gdb) print *cl
$3 = {inUse = 1, returnBuf = 0x0, returnBufSize = 0, largeCmdBytesSoFar = 0,
largeCmdBytesTotal = 0, largeCmdRequestsSoFar = 0, largeCmdRequestsTotal = 0,
largeCmdBuf = 0x0,
largeCmdBufSize = 0, currentContexts = 0x87efa20, numCurrentContexts = 1,
client = 0x87f1e00, GLClientmajorVersion = 1, GLClientminorVersion = 4,
GLClientextensions = 0x8782000 "GL_ARB_depth_texture GL_ARB_draw_buffers
GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_imaging
GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query
GL_ARB_point_parameters GL_"...}
(gdb) frame 5
#5 0x286645da in __glXDisp_GetString (cl=0x0, pc=0x0) at single2.c:393
393 return DoGetString(cl, pc, GL_FALSE);
(gdb) print cl
$4 = (__GLXclientState *) 0x0
(gdb) print pc
$5 = (GLbyte *) 0x0
i don't know what to make of it, put as you see i poked around some pointers
and printed bunch of structues. hope it gives you and idea of what's going on.
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev