Hello,

I am new to this list. I have been trying to see if I can fix or at least pin 
point an issue with Radeon r300 driver failing on PowerPC systems. This has 
been a problem for a while and I would like to help to get this fixed. I have 
done some debugging with valgrind and I think I may see where the issue is but 
I would to have someone double check what I am doing. So when I set my Default 
Depth to 16 I do get 3D acceleration but when I set to the default of 24 it 
breaks. Valgrind reports memory leaks when I run glxgears with a Default Depth 
of 24 but shows no definite memory leaks with a Depth of 16. I then got the 
source code and created a dev environment andnran glxgears through valgrind 
with my default depth of 24 and saw similar memory leaks. Here is a sample of 
what I am seeing.

==25273== 108 (12 direct, 96 indirect) bytes in 1 blocks are definitely lost in 
loss record 54 of 78
==25273==    at 0xFFB2868: malloc (vg_replace_malloc.c:299)
==25273==    by 0xED0457B: ???
==25273==    by 0xEEC6F3B: ???
==25273==    by 0xE95A78B: ???
==25273==    by 0xED7DF7F: ???
==25273==    by 0xED7D5DB: ???
==25273==    by 0xEC5B377: ???
==25273==    by 0xEC567EB: ???
==25273==    by 0xFDEDFD3: dri2CreateScreen (dri2_glx.c:1235)
==25273==    by 0xFDB866F: AllocAndFetchScreenConfigs (glxext.c:799)
==25273==    by 0xFDB866F: __glXInitialize (glxext.c:910)
==25273==    by 0xFDB36F3: GetGLXPrivScreenConfig.part.2 (glxcmds.c:172)
==25273==    by 0xFDB396B: GetGLXPrivScreenConfig (glxcmds.c:168)
==25273==    by 0xFDB396B: glXChooseVisual (glxcmds.c:1249)

It looks like the files in the src/glx branch is where the issue is. I am 
attaching the summary portion of the output I got from valgrind. Am I heading 
in the right direction?

Herminio









 
==20991== LEAK SUMMARY:
==20991==    definitely lost: 0 bytes in 0 blocks
==20991==    indirectly lost: 0 bytes in 0 blocks
==20991==      possibly lost: 592,952 bytes in 2,927 blocks
==20991==    still reachable: 1,359,273 bytes in 1,538 blocks
==20991==         suppressed: 0 bytes in 0 blocks
==20991== Reachable blocks (those to which a pointer was found) are not shown.
==20991== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==20991== 
==20991== ERROR SUMMARY: 672 errors from 672 contexts (suppressed: 0 from 0)
==20991== ERROR SUMMARY: 672 errors from 672 contexts (suppressed: 0 from 0)
==21922== HEAP SUMMARY:
==21922==     in use at exit: 96,554 bytes in 192 blocks
==21922==   total heap usage: 1,312 allocs, 1,120 frees, 413,711 bytes allocated
==21922== 
==21922== Searching for pointers to 192 not-freed blocks
==21922== Checked 356,496 bytes
==21922== 
==21922== 5 bytes in 1 blocks are definitely lost in loss record 7 of 81
==21922==    at 0xFFB2868: malloc (vg_replace_malloc.c:299)
==21922==    by 0xFA073FB: strdup (in /lib/powerpc-linux-gnu/libc-2.21.so)
==21922==    by 0xED1DA37: ???
==21922==    by 0xE93B313: ???
==21922==    by 0xEC12C6B: ???
==21922==    by 0xEC0EAFB: ???
==21922==    by 0xFDFB1D3: dri2CreateScreen (in 
/usr/lib/powerpc-linux-gnu/libGL.so.1.2.0)
==21922==    by 0xFDC61AF: __glXInitialize (in 
/usr/lib/powerpc-linux-gnu/libGL.so.1.2.0)
==21922==    by 0xFDC10A3: GetGLXPrivScreenConfig.part.2 (in 
/usr/lib/powerpc-linux-gnu/libGL.so.1.2.0)
==21922==    by 0xFDC1303: glXChooseVisual (in 
/usr/lib/powerpc-linux-gnu/libGL.so.1.2.0)
==21922==    by 0x10002A33: ??? (in /usr/bin/glxgears)
==21922==    by 0x100010A3: ??? (in /usr/bin/glxgears)
==21922== 
==21922== 108 (12 direct, 96 indirect) bytes in 1 blocks are definitely lost in 
loss record 55 of 81
==21922==    at 0xFFB2868: malloc (vg_replace_malloc.c:299)
==21922==    by 0xECAD53B: ???
==21922==    by 0xEF1F3CB: ???
==21922==    by 0xE93B44B: ???
==21922==    by 0xEC12C6B: ???
==21922==    by 0xEC0EAFB: ???
==21922==    by 0xFDFB1D3: dri2CreateScreen (in 
/usr/lib/powerpc-linux-gnu/libGL.so.1.2.0)
==21922==    by 0xFDC61AF: __glXInitialize (in 
/usr/lib/powerpc-linux-gnu/libGL.so.1.2.0)
==21922==    by 0xFDC10A3: GetGLXPrivScreenConfig.part.2 (in 
/usr/lib/powerpc-linux-gnu/libGL.so.1.2.0)
==21922==    by 0xFDC1303: glXChooseVisual (in 
/usr/lib/powerpc-linux-gnu/libGL.so.1.2.0)
==21922==    by 0x10002A33: ??? (in /usr/bin/glxgears)
==21922==    by 0x100010A3: ??? (in /usr/bin/glxgears)
==21922== 
==21922== 3,172 (76 direct, 3,096 indirect) bytes in 1 blocks are definitely 
lost in loss record 75 of 81
==21922==    at 0xFFB50A4: calloc (vg_replace_malloc.c:711)
==21922==    by 0xEC0DA53: ???
==21922==    by 0xEC1168F: ???
==21922==    by 0xEC12CFF: ???
==21922==    by 0xEC0EAFB: ???
==21922==    by 0xFDFB1D3: dri2CreateScreen (in 
/usr/lib/powerpc-linux-gnu/libGL.so.1.2.0)
==21922==    by 0xFDC61AF: __glXInitialize (in 
/usr/lib/powerpc-linux-gnu/libGL.so.1.2.0)
==21922==    by 0xFDC10A3: GetGLXPrivScreenConfig.part.2 (in 
/usr/lib/powerpc-linux-gnu/libGL.so.1.2.0)
==21922==    by 0xFDC1303: glXChooseVisual (in 
/usr/lib/powerpc-linux-gnu/libGL.so.1.2.0)
==21922==    by 0x10002A33: ??? (in /usr/bin/glxgears)
==21922==    by 0x100010A3: ??? (in /usr/bin/glxgears)
==21922==    by 0xF994A13: generic_start_main.isra.0 (in 
/lib/powerpc-linux-gnu/libc-2.21.so)
==21922== 
==21922== 8,452 (196 direct, 8,256 indirect) bytes in 1 blocks are definitely 
lost in loss record 77 of 81
==21922==    at 0xFFB2868: malloc (vg_replace_malloc.c:299)
==21922==    by 0xE685C57: ???
==21922==    by 0xE7096EB: ???
==21922==    by 0xE6868DB: ???
==21922==    by 0xFDF654F: driswCreateScreen (in 
/usr/lib/powerpc-linux-gnu/libGL.so.1.2.0)
==21922==    by 0xFDC61FF: __glXInitialize (in 
/usr/lib/powerpc-linux-gnu/libGL.so.1.2.0)
==21922==    by 0xFDC10A3: GetGLXPrivScreenConfig.part.2 (in 
/usr/lib/powerpc-linux-gnu/libGL.so.1.2.0)
==21922==    by 0xFDC1303: glXChooseVisual (in 
/usr/lib/powerpc-linux-gnu/libGL.so.1.2.0)
==21922==    by 0x10002A33: ??? (in /usr/bin/glxgears)
==21922==    by 0x100010A3: ??? (in /usr/bin/glxgears)
==21922==    by 0xF994A13: generic_start_main.isra.0 (in 
/lib/powerpc-linux-gnu/libc-2.21.so)
==21922==    by 0xF994C13: (below main) (in /lib/powerpc-linux-gnu/libc-2.21.so)
==21922== 
==21922== LEAK SUMMARY:
==21922==    definitely lost: 289 bytes in 4 blocks
==21922==    indirectly lost: 11,448 bytes in 69 blocks
==21922==      possibly lost: 0 bytes in 0 blocks
==21922==    still reachable: 84,817 bytes in 119 blocks
==21922==         suppressed: 0 bytes in 0 blocks
==21922== Reachable blocks (those to which a pointer was found) are not shown.
==21922== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==21922== 
==21922== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 0 from 0)
==21922== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 0 from 0)
rican-linux@debian-ibook:~$ 
==25273== HEAP SUMMARY:
==25273==     in use at exit: 114,329 bytes in 292 blocks
==25273==   total heap usage: 1,532 allocs, 1,240 frees, 471,934 bytes allocated
==25273== 
==25273== Searching for pointers to 292 not-freed blocks
==25273== Checked 397,612 bytes
==25273== 
==25273== 108 (12 direct, 96 indirect) bytes in 1 blocks are definitely lost in 
loss record 54 of 78
==25273==    at 0xFFB2868: malloc (vg_replace_malloc.c:299)
==25273==    by 0xED0457B: ???
==25273==    by 0xEEC6F3B: ???
==25273==    by 0xE95A78B: ???
==25273==    by 0xED7DF7F: ???
==25273==    by 0xED7D5DB: ???
==25273==    by 0xEC5B377: ???
==25273==    by 0xEC567EB: ???
==25273==    by 0xFDEDFD3: dri2CreateScreen (dri2_glx.c:1235)
==25273==    by 0xFDB866F: AllocAndFetchScreenConfigs (glxext.c:799)
==25273==    by 0xFDB866F: __glXInitialize (glxext.c:910)
==25273==    by 0xFDB36F3: GetGLXPrivScreenConfig.part.2 (glxcmds.c:172)
==25273==    by 0xFDB396B: GetGLXPrivScreenConfig (glxcmds.c:168)
==25273==    by 0xFDB396B: glXChooseVisual (glxcmds.c:1249)
==25273== 
==25273== 172 bytes in 1 blocks are possibly lost in loss record 59 of 78
==25273==    at 0xFFB2868: malloc (vg_replace_malloc.c:299)
==25273==    by 0xE2248C3: ???
==25273==    by 0xE2287BF: ???
==25273==    by 0xE228EAF: ???
==25273==    by 0xE2257EB: ???
==25273==    by 0xFDE8FFF: driswCreateScreen (drisw_glx.c:695)
==25273==    by 0xFDB86BF: AllocAndFetchScreenConfigs (glxext.c:804)
==25273==    by 0xFDB86BF: __glXInitialize (glxext.c:910)
==25273==    by 0xFDB36F3: GetGLXPrivScreenConfig.part.2 (glxcmds.c:172)
==25273==    by 0xFDB396B: GetGLXPrivScreenConfig (glxcmds.c:168)
==25273==    by 0xFDB396B: glXChooseVisual (glxcmds.c:1249)
==25273==    by 0x10002A33: ??? (in /usr/bin/glxgears)
==25273==    by 0x100010A3: ??? (in /usr/bin/glxgears)
==25273==    by 0xF986A13: generic_start_main.isra.0 (in 
/lib/powerpc-linux-gnu/libc-2.21.so)
==25273== 
==25273== 3,172 (76 direct, 3,096 indirect) bytes in 1 blocks are definitely 
lost in loss record 71 of 78
==25273==    at 0xFFB50A4: calloc (vg_replace_malloc.c:711)
==25273==    by 0xEC55793: ???
==25273==    by 0xEC597BF: ???
==25273==    by 0xEC5B417: ???
==25273==    by 0xEC567EB: ???
==25273==    by 0xFDEDFD3: dri2CreateScreen (dri2_glx.c:1235)
==25273==    by 0xFDB866F: AllocAndFetchScreenConfigs (glxext.c:799)
==25273==    by 0xFDB866F: __glXInitialize (glxext.c:910)
==25273==    by 0xFDB36F3: GetGLXPrivScreenConfig.part.2 (glxcmds.c:172)
==25273==    by 0xFDB396B: GetGLXPrivScreenConfig (glxcmds.c:168)
==25273==    by 0xFDB396B: glXChooseVisual (glxcmds.c:1249)
==25273==    by 0x10002A33: ??? (in /usr/bin/glxgears)
==25273==    by 0x100010A3: ??? (in /usr/bin/glxgears)
==25273==    by 0xF986A13: generic_start_main.isra.0 (in 
/lib/powerpc-linux-gnu/libc-2.21.so)
==25273== 
==25273== 26,232 (604 direct, 25,628 indirect) bytes in 1 blocks are definitely 
lost in loss record 78 of 78
==25273==    at 0xFFB2868: malloc (vg_replace_malloc.c:299)
==25273==    by 0xE224BA7: ???
==25273==    by 0xE2287CB: ???
==25273==    by 0xE228EAF: ???
==25273==    by 0xE2257EB: ???
==25273==    by 0xFDE8FFF: driswCreateScreen (drisw_glx.c:695)
==25273==    by 0xFDB86BF: AllocAndFetchScreenConfigs (glxext.c:804)
==25273==    by 0xFDB86BF: __glXInitialize (glxext.c:910)
==25273==    by 0xFDB36F3: GetGLXPrivScreenConfig.part.2 (glxcmds.c:172)
==25273==    by 0xFDB396B: GetGLXPrivScreenConfig (glxcmds.c:168)
==25273==    by 0xFDB396B: glXChooseVisual (glxcmds.c:1249)
==25273==    by 0x10002A33: ??? (in /usr/bin/glxgears)
==25273==    by 0x100010A3: ??? (in /usr/bin/glxgears)
==25273==    by 0xF986A13: generic_start_main.isra.0 (in 
/lib/powerpc-linux-gnu/libc-2.21.so)
==25273== 
==25273== LEAK SUMMARY:
==25273==    definitely lost: 692 bytes in 3 blocks
==25273==    indirectly lost: 28,820 bytes in 170 blocks
==25273==      possibly lost: 172 bytes in 1 blocks
==25273==    still reachable: 84,645 bytes in 118 blocks
==25273==         suppressed: 0 bytes in 0 blocks
==25273== Reachable blocks (those to which a pointer was found) are not shown.
==25273== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==25273== 
==25273== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 0 from 0)
==25273== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 0 from 0)
rican-linux@debian-ibook:~/src/mesa$ 

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to