title: Valgrind with Java in Mac
body: <p>I want to use Valgrind to track a JNI memory leak, but Valgrind always crashes if I use it to track java program. I tried other programs like bash, these all worked well.</p>
  
  <p>My OS: MacOs High Sierra Version 10.13.2</p>
  
  <p>Install Valgrind by:</p>
  
  <pre><code>brew install --HEAD valgrind
  </code></pre>
  
  <p>Execute command:</p>
  
  <pre><code>valgrind java -h
  </code></pre>
  
  <p>Error Information:</p>
  
  <blockquote>
    <p>valgrind: m_debuginfo/debuginfo.c:452 (void
    discard_or_archive_DebugInfo(DebugInfo *)): Assertion
    'is_DebugInfo_active(di)' failed.</p>
  </blockquote>
  
  <p>Did anyone have this issue before? How do you resolve it?</p>