Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BTRACE-85] Threads.jstack losts the first stack #23

Closed
jbachorik opened this issue Aug 28, 2014 · 2 comments
Closed

[BTRACE-85] Threads.jstack losts the first stack #23

jbachorik opened this issue Aug 28, 2014 · 2 comments

Comments

@jbachorik
Copy link
Collaborator

[reporter="ihepda", created="Tue, 7 Feb 2012 09:29:01 +0100", resolved="Tue, 2 Jul 2013 16:26:24 +0200"]

The dump of the stack trace using Threads.jstack or Threads.jstackStr dump the stack without the first stack of the business class.
For example:
ClassA.methodA call ClassB.methodB
ClassB.methodB call ClassC.methodC
ClassC.methodC call ClassD.methodD

ClassD.methodD is probed and in the probe method print the stack trace with Thrads.jstack

The output show the stack trace from ClassB.methodB

@jbachorik jbachorik added this to the release-1.2.3 milestone Aug 28, 2014
@jbachorik
Copy link
Collaborator Author

[author="j.bachorik", created="Sun, 1 Apr 2012 21:28:21 +0200"]

There is a problem with computing the number of stack frames to skip when generating the jstack() output. Please, for the time being use BTraceUtils.jstack() which should yield the correct results.

@jbachorik
Copy link
Collaborator Author

[author="j.bachorik", created="Tue, 2 Jul 2013 16:26:24 +0200"]

https://kenai.com/projects/btrace/sources/hg/revision/445

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant