title: How to debug "glibc detected *** python: malloc(): memory corruption"
body: <p>I'm using python2.5 with scipy.weave to embed c code.</p>
  
  <p>In my c code, there is no malloc() function, but I received error like</p>
  
  <pre><code>"glibc detected *** python: malloc(): memory corruption"
  </code></pre>
  
  <p>from time to time.(It's a random algorithm)</p>
  
  <p>So how shall I debug it out?</p>
  
  <p>Thanks</p>