Issue Details (XML | Word | Printable)

Key: BTRACE-85
Type: Bug Bug
Status: In Progress In Progress
Priority: Major Major
Assignee: j.bachorik
Reporter: ihepda
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
btrace

Threads.jstack losts the first stack

Created: 07/Feb/12 08:29 AM   Updated: 01/Apr/12 07:28 PM
Component/s: Core
Affects Version/s: release-1.2.1
Fix Version/s: None

Time Tracking:
Not Specified

Environment:

Linux, jdk 1.6.0_24


Tags:


 Description  « Hide

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



j.bachorik added a comment - 01/Apr/12 07:28 PM

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.