<p>What about simple backtrace from c lib <em></em> ?</p>

<p>(<a href="http://www.gnu.org/software/libc/manual/html_node/Backtraces.html">http://www.gnu.org/software/libc/manual/html_node/Backtraces.html</a>)</p>

<p>I already done some simple implementation which gives me similar output like this:</p>

<pre><code>[bt]: (1) ./test(crash+0x24) [0x8c50]
[bt]: (2) ./test(foo4+0x10) [0x8c70]
[bt]: (3) ./test(foo3+0x10) [0x8c8c]
[bt]: (4) ./test(foo2+0x10) [0x8ca8]
[bt]: (5) ./test(foo1+0x10) [0x8cc4]
[bt]: (6) ./test(main+0x74) [0x8d44]
[bt]: (7) /lib/libc.so.6(__libc_start_main+0xa8) [0x40032e44]
</code></pre>

<p>At the beginning <em>backtrace</em> gives mangled strings, after demangling and using libSegFault.so You can get some nice tracing with files / line number and functions, but more information You can find here:</p>

<p>(<a href="https://help.github.com/articles/markdown-basics/">https://help.github.com/articles/markdown-basics/</a>)</p>

<p>And I'm not sure what about portability of those methods.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/380#issuecomment-158023424">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFL9TutY64l_y9FETb3yvv_0jGkWjks5pHaOEgaJpZM4DRaYY.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/issues/380#issuecomment-158023424"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>