title: Valgrind is hanging with no output
body: <p>For a method that I am trying to code for one of the classes I have been working on, I am trying to read double values from a file and dynamically set some arrays inside the program with these numeric values.</p>
  
  <p>I wanted to check, at least up to the point that I came, whether I have memory leaks or not. However, firing up <code>valgrind</code> just hangs, <code>valgrind</code> seems to work quite heavily since the cpu loading is high, but no output is generated even if I have been waiting for some time now. I have shuffled through the pages of the manual however could not find something useful. I compiled valgrind-3.8.0 and using that now. And I am firing it the way I have always done as</p>
  
  <pre><code>valgrind --leak-check=yes --log-file=valgrind_log ./binary_to_execute args_if_any
  </code></pre>
  
  <p>I could not also find sth useful for this hanging problem on google search. Any ideas on the reason of this hanging behaviour?</p>
  
  <p>Edit 1: Here is a timing output from time command for the application</p>
  
  <p>47740</p>
  
  <pre><code>real    0m1.299s
  user    0m1.116s
  sys     0m0.176s
  </code></pre>
  
  <p>Edit 2: Here is a link which is more or less the same as the problem that I am experiencing,</p>
  
  <p><a href="http://www.mail-archive.com/valgrind-developers@lists.sourceforge.net/msg01743.html" rel="noreferrer">A message with a similar problem</a></p>
  
  <p>Edit 3: I have noticed sth interesting, if the file size that I am trying to read is large this problem occurs, if the size of the files are relatively small, this hanging does not occur, which is also strange to me.</p>