[mlpack-git] [mlpack] Log::Fatal should give a backtrace of some sort (#380)

Grzegorz Krajewski notifications at github.com
Wed Nov 25 14:38:16 EST 2015


After good digging in C libs and some linux commands I prepared (external at the moment) pretty nice stack tracing.

<b>Please, test it in Your machine:</b> https://github.com/Kirizaki/stacktrace

Output should be:
```
/home/kirizaki/Projects/backtrace/traceExample/util/parent.cpp:Parent::ProtectedParentFoo():17
/home/kirizaki/Projects/backtrace/traceExample/util/parent.cpp:Parent::PublicParentFoo():12
/home/kirizaki/Projects/backtrace/traceExample/util/parent.cpp:Parent::Parent():6
/home/kirizaki/Projects/backtrace/traceExample/util/test.cpp:fooA(std::string):7
/home/kirizaki/Projects/backtrace/traceExample/util/test.cpp:fooB(int):15
/home/kirizaki/Projects/backtrace/traceExample/util/test.cpp:fooC(int):22
/home/kirizaki/Projects/backtrace/traceExample/util/test.cpp:main():27
```

While I'm implementing it in Log class, please feel free to comment what should be refactored. And after all I will try my best to add MSVC implementation too.

---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/issues/380#issuecomment-159710111
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20151125/06a523ec/attachment.html>


More information about the mlpack-git mailing list