I have tried to look at this (also using drawpix). I can just say that the bad drawing happens in draw_rgba_pixels(). I also tried to disable fast_draw_rgba_pixels in gdb so that the normal "slow" path is taken, but the same corruption occured.
(gdb) where
#0 fast_draw_rgba_pixels (ctx=<value optimized out>,
x=<value optimized out>, y=20, width=194, height=188, format=6407,
type=5121, userUnpack=0x8072380, pixels=0x8198428)
at swrast/s_drawpix.c:154
#1 0x00791273 in draw_rgba_pixels (ctx=0x8063558, x=<value optimized out>,
y=20, width=194, height=188, format=6407, type=5121, unpack=0x8072380,
pixels=0x8198428) at swrast/s_drawpix.c:477
#2 0x0079200a in _swrast_DrawPixels (ctx=0x8063558, x=20, y=20, width=194,
height=188, format=6407, type=5121, unpack=0x8072380, pixels=0x8198428)
at swrast/s_drawpix.c:809
#3 0x00698307 in savageDrawPixels (ctx=0x8063558, x=20, y=20, width=194,
height=188, format=6407, type=5121, packing=0x8072380, pixels=0x8198428)
at savagespan.c:211
#4 0x006ceef0 in _mesa_DrawPixels (width=194, height=188, format=6407,
type=5121, pixels=0x8198428) at main/drawpix.c:119
#5 0x0804a401 in Display () at drawpix.c:70
#6 0x00144820 in ?? () from /usr/lib/libglut.so.3
#7 0x00148660 in fgEnumWindows () from /usr/lib/libglut.so.3
#8 0x00144cdb in glutMainLoopEvent () from /usr/lib/libglut.so.3
#9 0x00145605 in glutMainLoop () from /usr/lib/libglut.so.3
#10 0x0804aea8 in main (argc=1, argv=0xbffff494) at drawpix.c:357
I have tried to look at this (also using drawpix). I can just say that the bad drawing happens in draw_rgba_pixels(). I also tried to disable fast_draw_ rgba_pixels in gdb so that the normal "slow" path is taken, but the same corruption occured.
(gdb) where rgba_pixels (ctx=<value optimized out>, 0x8072380, pixels=0x8198428) s_drawpix. c:154 0x8198428) at swrast/ s_drawpix. c:477 s_drawpix. c:809 libglut. so.3 libglut. so.3 libglut. so.3 libglut. so.3
#0 fast_draw_
x=<value optimized out>, y=20, width=194, height=188, format=6407,
type=5121, userUnpack=
at swrast/
#1 0x00791273 in draw_rgba_pixels (ctx=0x8063558, x=<value optimized out>,
y=20, width=194, height=188, format=6407, type=5121, unpack=0x8072380,
pixels=
#2 0x0079200a in _swrast_DrawPixels (ctx=0x8063558, x=20, y=20, width=194,
height=188, format=6407, type=5121, unpack=0x8072380, pixels=0x8198428)
at swrast/
#3 0x00698307 in savageDrawPixels (ctx=0x8063558, x=20, y=20, width=194,
height=188, format=6407, type=5121, packing=0x8072380, pixels=0x8198428)
at savagespan.c:211
#4 0x006ceef0 in _mesa_DrawPixels (width=194, height=188, format=6407,
type=5121, pixels=0x8198428) at main/drawpix.c:119
#5 0x0804a401 in Display () at drawpix.c:70
#6 0x00144820 in ?? () from /usr/lib/
#7 0x00148660 in fgEnumWindows () from /usr/lib/
#8 0x00144cdb in glutMainLoopEvent () from /usr/lib/
#9 0x00145605 in glutMainLoop () from /usr/lib/
#10 0x0804aea8 in main (argc=1, argv=0xbffff494) at drawpix.c:357