I was debugging my OpenGL app with valrind and I found the following in my 
logs, which might interest you. These are with the latest MESA git trunk.

==6988== Syscall param ioctl(generic) points to uninitialised byte(s)
==6988==    at 0x44536E9: ioctl (in /lib/tls/libc-2.5.so)
==6988==    by 0x4B2F32E: driWaitForMSC32 (vblank.c:128)
==6988==    by 0x4B302FF: driWaitForMSC (dri_util.c:554)
==6988==    by 0x4731DD4: __glXWaitVideoSyncSGI (glxcmds.c:1930)
==6988==    by 0x47D8D78: Producer::RenderSurface::testVSync() (in 
/usr/lib/libProducer.so)
==6988==    by 0x47D8F32: 
Producer::RenderSurface::realize(Producer::VisualChooser*, __GLXcontextRec*) 
(in /usr/lib/libProducer.so)
==6988==    by 0x47E5409: Producer::CameraGroup::realize() (in 
/usr/lib/libProducer.so)
==6988==    by 0x4252720: osgProducer::OsgCameraGroup::realize() (in 
/usr/lib/libosgProducer.so)
==6988==    by 0x4269BF6: osgProducer::Viewer::realize() (in 
/usr/lib/libosgProducer.so)
==6988==    by 0x8051C72: crc::OSGViewer::OSGViewer() (osgViewer.cpp:34)
==6988==    by 0x804D984: main (main.cpp:9)
==6988==  Address 0xBE940130 is on thread 1's stack

==6988== Conditional jump or move depends on uninitialised value(s)
==6988==    at 0x4B36836: radeonWaitForFrameCompletion (radeon_ioctl.c:132)
==6988==    by 0x4B36B85: radeonCopyBuffer (radeon_ioctl.c:186)
==6988==    by 0x4B362F9: radeonSwapBuffers (radeon_context.c:218)
==6988==    by 0x4B30184: driSwapBuffers (dri_util.c:487)
==6988==    by 0x472F9DD: glXSwapBuffers (glxcmds.c:800)
==6988==    by 0x47D8B29: Producer::RenderSurface::swapBuffers() (in 
/usr/lib/libProducer.so)
==6988==    by 0x47E25BB: Producer::CameraGroup::_singleThreadedFrame() (in 
/usr/lib/libProducer.so)
==6988==    by 0x47E2C88: Producer::CameraGroup::_frame() (in 
/usr/lib/libProducer.so)
==6988==    by 0x424CE00: osgProducer::OsgCameraGroup::frame() (in 
/usr/lib/libosgProducer.so)
==6988==    by 0x42692A8: osgProducer::Viewer::frame() (in 
/usr/lib/libosgProducer.so)
==6988==    by 0x804D9B8: main (main.cpp:14)

==6988== Conditional jump or move depends on uninitialised value(s)
==6988==    at 0x4B3D1B8: radeon_mm_alloc (radeon_mm.c:143)
==6988==    by 0x4B44BEF: r300RefillCurrentDmaRegion (r300_ioctl.c:595)
==6988==    by 0x4B44F73: r300AllocDmaRegion (r300_ioctl.c:669)
==6988==    by 0x4B5E7E2: emit_vector (r300_maos.c:199)
==6988==    by 0x4B5F55B: r300EmitArrays (r300_maos.c:498)
==6988==    by 0x4B50637: r300_run_vb_render (r300_render.c:341)
==6988==    by 0x4B40C7F: radeonDrawArrays (radeon_vtxfmt_a.c:566)
==6988==    by 0x476BD53: glDrawArrays (glapitemp.h:1645)
==6988==    by 0x44EB29B: osgText::Text::renderWithStencilBuffer(osg::State&, 
osg::Vec4f const&) const (in /usr/lib/libosgText.so)
==6988==    by 0x44ED59C: osgText::Text::drawImplementation(osg::State&, 
osg::Vec4f const&) const (in /usr/lib/libosgText.so)
==6988==    by 0x44ED7F6: osgText::Text::drawImplementation(osg::RenderInfo&) 
const (in /usr/lib/libosgText.so)
==6988==    by 0x460F0CC: osgUtil::RenderLeaf::render(osg::RenderInfo&, 
osgUtil::RenderLeaf*) (in /usr/lib/libosgUtil.so)

==6988== Invalid read of size 4
==6988==    at 0x4B3C7FD: intersect_rect (radeon_state.c:61)
==6988==    by 0x4B3C9DA: radeonRecalcScissorRects (radeon_state.c:108)
==6988==    by 0x4B3CAEC: radeonUpdateScissor (radeon_state.c:131)
==6988==    by 0x4B3CD04: radeonEnable (radeon_state.c:205)
==6988==    by 0x4B4B1C1: r300Enable (r300_state.c:542)
==6988==    by 0x4D13827: _mesa_set_enable (enable.c:956)
==6988==    by 0x4D138A6: _mesa_Enable (enable.c:971)
==6988==    by 0x4769879: glEnable (glapitemp.h:1160)
==6988==    by 0x4613A5F: 
osgUtil::RenderStage::drawImplementation(osg::RenderInfo&, 
osgUtil::RenderLeaf*&) (in /usr/lib/libosgUtil.so)
==6988==    by 0x4607658: osgUtil::RenderBin::draw(osg::RenderInfo&, 
osgUtil::RenderLeaf*&) (in /usr/lib/libosgUtil.so)
==6988==    by 0x46133BC: osgUtil::RenderStage::drawInner(osg::RenderInfo&, 
osgUtil::RenderLeaf*&, bool&) (in /usr/lib/libosgUtil.so)
==6988==    by 0x4612E6C: osgUtil::RenderStage::draw(osg::RenderInfo&, 
osgUtil::RenderLeaf*&) (in /usr/lib/libosgUtil.so)
==6988==  Address 0x4AF585C is 4 bytes inside a block of size 8 free'd
==6988==    at 0x402303F: free (vg_replace_malloc.c:233)
==6988==    by 0x4BAF503: _mesa_free (imports.c:93)
==6988==    by 0x4B2FF84: __driUtilUpdateDrawableInfo (dri_util.c:430)
==6988==    by 0x4B2FD46: DoBindContext (dri_util.c:339)
==6988==    by 0x4B2FF00: driBindContext (dri_util.c:383)
==6988==    by 0x4735921: BindContextWrapper (glxext.c:1620)
==6988==    by 0x4735A53: MakeContextCurrent (glxext.c:1674)
==6988==    by 0x4735D7C: glXMakeCurrent (glxext.c:1796)
==6988==    by 0x47D8BB3: Producer::RenderSurface::makeCurrent(bool) (in 
/usr/lib/libProducer.so)
==6988==    by 0x47DEEC6: Producer::Camera::_frame(bool) (in 
/usr/lib/libProducer.so)
==6988==    by 0x47DF75F: Producer::Camera::frame(bool) (in 
/usr/lib/libProducer.so)
==6988==    by 0x47E2589: Producer::CameraGroup::_singleThreadedFrame() (in 
/usr/lib/libProducer.so)

Regards
        Panagiotis Papadakos

-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to