Under certain configurations (release builds), what you think is the paraview binary is really just a launcher that sets up the required LD_LIBRARY_PATH and spawns a new process. Look for another paraview binary, maybe bin/../lib/paraview. To run it the real binary, you may have to manually set your LD_LIBRARY_PATH.<br>
<br>There could also be a way to make the launcher to play nice with valgrind that I am not aware of...<br><br>Pat<br><br><div class="gmail_quote">On Tue, Feb 15, 2011 at 6:16 PM, Sohail Shafii <span dir="ltr"><<a href="mailto:sohailshafii@yahoo.com">sohailshafii@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">
I have to re-send this message since I subscribed to the list after sending the original message. So it should go through this time around.<br><br>Sohail<br><br>--- On <b>Tue, 2/15/11, Sohail Shafii <i><<a href="mailto:sohailshafii@yahoo.com" target="_blank">sohailshafii@yahoo.com</a>></i></b> wrote:<br>
<blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Sohail Shafii <<a href="mailto:sohailshafii@yahoo.com" target="_blank">sohailshafii@yahoo.com</a>><br>Subject: Valgrind + Paraview<br>
To: <a href="mailto:paraview-developers@paraview.org" target="_blank">paraview-developers@paraview.org</a><br>Date: Tuesday, February 15, 2011, 3:04 PM<br><br><div><table border="0" cellpadding="0" cellspacing="0"><tbody><tr>
<td style="font: inherit;" valign="top"><div><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit; font-family: arial; font-size: 10pt;">
<div><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit; font-family: arial; font-size: 10pt;">
Hi,<br><br>I'm currently debugging some of my own filters so I thought I would run valgrind with paraview. It appears that valgrind and paraview are entirely
disconnected, even though my command line arguments appear to be correct and paraview has been built as a debug version. Here is the terminal output:<br>shodan@shodan:~/kitware/ParaView-3.8.0-bin-debug/bin$ valgrind --tool=memcheck --track-origins=yes --leak-check=full
./paraview<br>==13652== Memcheck, a memory error detector<br>==13652== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.<br>==13652== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info<br>
==13652== Command: ./paraview<br>==13652== <br>Load file /home/shodan/Code/Flow/sample_timesteps/turbine/wtbl.2040<br>Load file
/home/shodan/Code/Flow/sample_timesteps/field/comp.out.2040<br>Load file /home/shodan/Code/Flow/sample_timesteps/turbine/wtbl.2040<br>Finished computing Lambda-2 and vorticity fields, it took: 0 second(s).<br>Number of negative Lambda-2s: 291072 out of 896000 tuples.<br>
Values min/max: -17.3383/7.8664.<br>Lower threshold: -0.01<br>Num seeds for vortex cores: 1998.<br><br>....usually valgrind reports more information when the program exits. Also, paraview appears to be running way to fast, which tells me that valgrind isn't doing anything (usually the slowdowns are very noticeable). Has anyone used valgrind with Paraview? <br>
<br>Thanks, Sohail<br></td></tr></tbody></table></div></td></tr></tbody></table></div></td></tr></tbody></table><br>
</div></blockquote></td></tr></tbody></table><br>
<br>_______________________________________________<br>
Paraview-developers mailing list<br>
<a href="mailto:Paraview-developers@paraview.org">Paraview-developers@paraview.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/paraview-developers" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><br>
<br></blockquote></div><br>