Linux crash native stacks only have 1 line
Alexander Miloslavskiy
alexandr.miloslavskiy at gmail.com
Wed Apr 8 18:52:37 UTC 2020
On 08.04.2020 20:49, Volker Simonis wrote:
> Are you sure that the "backtrace" command in gdb is using the
> "backtrace()" function from libgcc?
>
> Just asking because I'm not sure. I thought gdb has its own stack
> unwinding logic and applies some extra tricks but it's actually quite
> a while since I've last looked into the sources :)
Apparently you were lazy and didn't try it yourself ;)
The snippet prints backtrace() to stdout.
gdb's `bt` gives gdb backtrace with all the tricks applied.
Then you compare the two and find that they are almost identical.
More information about the hotspot-dev
mailing list