http://bugs.freedesktop.org/show_bug.cgi?id=7205





------- Comment #33 from [EMAIL PROTECTED]  2007-03-16 05:34 PST -------
This seems to be an endless endavour ;-)

Program received signal SIGSEGV, Segmentation fault.
#0  0x00002b5559c362fb in memset () from /lib64/libc.so.6
#1  0x00002b556c11b960 in _mesa_memset (dst=0x0, val=0x0, n=0x1000) at
imports.c:248
#2  0x00002b556c18f856 in put_mono_row_alpha8 (ctx=0xb17520, arb=0x1028b30,
count=0x1000, x=0x0, y=0x0, value=0x7fff522a1710, mask=0x0) at
renderbuffer.c:1387
#3  0x00002b556c244591 in clear_rgba_buffer (ctx=0xb17520, rb=0x1028b30) at
s_buffers.c:189
#4  0x00002b556c244806 in clear_color_buffers (ctx=0xb17520) at s_buffers.c:281
#5  0x00002b556c2448ac in _swrast_Clear (ctx=0xb17520, buffers=0x101) at
s_buffers.c:331
#6  0x00002b556c357c7d in clear_buffers (ctx=0xb17520, buffers=0x101) at
xm_dd.c:424
#7  0x00002b556c191ef5 in _mesa_Clear (mask=0x4100) at buffers.c:179
#8  0x00002b555aa14a00 in __glXDisp_Clear (pc=0xb066cc "") at
indirect_dispatch.c:1337
#9  0x00002b555aa0b1b6 in DoRender (cl=0xb089a0, pc=0xb066c8 "\b", do_swap=0x0)
at glxcmds.c:1802
#10 0x00002b555aa0b20c in __glXDisp_Render (cl=0xb089a0, pc=0xb066c0
"\217\001\004") at glxcmds.c:1816
#11 0x00002b555aa11590 in __glXDispatch (client=0xb062a0) at glxext.c:551
#12 0x00000000005671d1 in XaceCatchExtProc (client=0xb062a0) at xace.c:299
#13 0x000000000044c061 in Dispatch () at dispatch.c:503
#14 0x0000000000432c69 in main (argc=0x1, argv=0x7fff522a1f38,
envp=0x7fff522a1f48) at main.c:467

(gdb) frame 2
#2  0x00002b556c18f856 in put_mono_row_alpha8 (ctx=0xb17520, arb=0x1028b30,
count=0x1000, x=0x0, y=0x0, value=0x7fff522a1710, mask=0x0) at
renderbuffer.c:1387
1387          _mesa_memset(dst, val, count);
(gdb) print dst
$1 = (GLubyte *) 0x0


Now with the following patch the test program doesn't crash any longer:

diff --git a/src/mesa/swrast/s_buffers.c b/src/mesa/swrast/s_buffers.c
index 35f2dd6..d3bf6bf 100644
--- a/src/mesa/swrast/s_buffers.c
+++ b/src/mesa/swrast/s_buffers.c
@@ -273,6 +273,8 @@ clear_color_buffers(GLcontext *ctx)

    for (i = 0; i < ctx->DrawBuffer->_NumColorDrawBuffers[0]; i++) {
       struct gl_renderbuffer *rb = ctx->DrawBuffer->_ColorDrawBuffers[0][i];
+      if (!rb || !rb->Data)
+         continue;
       if (ctx->Visual.rgbMode) {
          if (masking) {
             clear_rgba_buffer_with_masking(ctx, rb);

So please consider applying.

Now testing matlab.


-- 
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.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to