Linux crash native stacks only have 1 line
Volker Simonis
volker.simonis at gmail.com
Wed Apr 8 19:06:32 UTC 2020
On Wed, Apr 8, 2020 at 8:52 PM Alexander Miloslavskiy
<alexandr.miloslavskiy at gmail.com> wrote:
>
> 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 ;)
>
No, I didn't and yes, I am :)
> 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.
Sounds good.
More information about the hotspot-dev
mailing list