David,<br><br>I think you&#39;re right. Following is a part of the Valgrind output. It seems the problem is in my graphic card driver, not in VTK. I should have read it more carefully.<br><br>I&#39;m glad to know such flaws are nightly checked. Thanks.<span><span></span></span><br>

The next step for me is to find another way to debug my code... <br><span><span><br>Marie-Gabrielle Vallet</span></span><br><br><br>==4474== Conditional jump or move depends on uninitialised value(s)<br>==4474==&nbsp;&nbsp;&nbsp; at 0x3F4201868E: (within /usr/lib64/nvidia/libGLcore.so.1.0.9762)<br>

==4474==&nbsp;&nbsp;&nbsp; by 0x3F42016BE8: (within /usr/lib64/nvidia/libGLcore.so.1.0.9762)<br>==4474==&nbsp;&nbsp;&nbsp; by 0x3F42015BCA: (within /usr/lib64/nvidia/libGLcore.so.1.0.9762)<br>==4474==&nbsp;&nbsp;&nbsp; by 0x3F41B6B278: (within /usr/lib64/nvidia/libGLcore.so.1.0.9762)<br>

==4474==&nbsp;&nbsp;&nbsp; by 0x3F41B12205: (within /usr/lib64/nvidia/libGLcore.so.1.0.9762)<br>==4474==&nbsp;&nbsp;&nbsp; by 0x3F41B10EAC: (within /usr/lib64/nvidia/libGLcore.so.1.0.9762)<br>==4474==&nbsp;&nbsp;&nbsp; by 0x392BD6F61E: vtkOpenGLPolyDataMapper::RenderPiece(vtkRenderer*, vtkActor*) (in /usr/lib64/libvtkRendering.so.5.0.3)<br>

==4474==&nbsp;&nbsp;&nbsp; by 0x392BD0FED9: vtkPolyDataMapper::Render(vtkRenderer*, vtkActor*) (in /usr/lib64/libvtkRendering.so.5.0.3)<br>==4474==&nbsp;&nbsp;&nbsp; by 0x392BD65010: vtkOpenGLActor::Render(vtkRenderer*, vtkMapper*) (in /usr/lib64/libvtkRendering.so.5.0.3)<br>

==4474==&nbsp;&nbsp;&nbsp; by 0x392BCAE64E: vtkActor::RenderOpaqueGeometry(vtkViewport*) (in /usr/lib64/libvtkRendering.so.5.0.3)<br>==4474==&nbsp;&nbsp;&nbsp; by 0x392BD276E4: vtkRenderer::UpdateGeometry() (in /usr/lib64/libvtkRendering.so.5.0.3)<br>

==4474==&nbsp;&nbsp;&nbsp; by 0x392BD7AC15: vtkOpenGLRenderer::DeviceRender() (in /usr/lib64/libvtkRendering.so.5.0.3)<br><br><br><div><span class="gmail_quote">2008/2/4, David Cole &lt;<a href="mailto:david.cole@kitware.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">david.cole@kitware.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Valgrind is run nightly on &quot;dash6.kitware&quot; on the VTK dashboards.<br><br>Here are last night&#39;s results:<br><a href="http://www.vtk.org/Testing/Sites/dash6.kitware/Linux-g++/20080204-0300-Nightly/DynamicAnalysis.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.vtk.org/Testing/Sites/dash6.kitware/Linux-g++/20080204-0300-Nightly/DynamicAnalysis.html</a><br>


<br>While there are a handful of tests that show some problems on this valgrind run, this is the result of running more than 600 test programs as part of the nightly dashboard on that machine. And when you dig into these, you will often encounter valgrind identifying issues in non-VTK code (XWindows implementation shared libs, Mesa shared libs, others)<br>


<br>If you could pinpoint the uninitialized value and demonstrate that it comes from someplace in the VTK source tree, I&#39;d be happy to correct it and commit a fix to the VTK code.<br><br><br>Thanks,<br>David Cole<br>

Kitware, Inc.<br>
<br><br><div><div><span><span class="gmail_quote">On 2/4/08, <b class="gmail_sendername">Marie-Gabrielle Vallet</b> &lt;<a href="mailto:mgv.research@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mgv.research@gmail.com</a>&gt; wrote:</span></span></div>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><span>
I believed I had a memory-related problem with my vtk code. I ran it <font color="#231f20" face="Times" size="3"><span style="font-size: 11px; font-family: Times; color: rgb(35, 31, 32);"></span></font>through Valgrind, a memory checking program. It detects some problems :<br>



&nbsp; Conditional jump or move depends on uninitialised value(s)<br>&nbsp; Use of uninitialised value of size 8<br>&nbsp; Invalid read of size 8<br><br>BUT, running Valgrind on the very simple following code results in the same messages... that&#39;s disturbing!<br>



<br>Has someone ever checked any vtk software for such flaws ?<br><span><br>Marie-Gabrielle Vallet<br>
</span><br></span></div>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.vtk.org/Wiki/VTK_FAQ</a><br>


Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>


<br><br clear="all"></blockquote></div><br>
</blockquote></div><br>