mbabic / lightweight-java-profiler

Automatically exported from code.google.com/p/lightweight-java-profiler
Apache License 2.0
0 stars 0 forks source link

Wrong stacktraces are returned for complex interface structures. #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. In globals.h, change the kNumInterrupts to 30, and the kMaxStackTraces to 
30000 (to make sure there will be enough space to record the whole execution)
2. Run the attached java file 
3. Look for all List1.writeInt stack traces. One of those comes from a 
computeList2 method, which should never happen. 
To spot it more easily, use the following command : 
$> pcregrep -Mn "List1\.writeInt(.*\n){5}.*List2" filename

What is the expected output? What do you see instead?
Expected : The List1.writeInt method is only called by the computeList1 method.
Actual : Some stacktraces show the computeList2 method as calling 
List1.writeInt.

What version of the product are you using? On what operating system?
openjdk7u25, on RedHat 6.4.

Additional informations:
I will be working on a simplier version of the java class that reproduces the 
bug, if possible.

Original issue reported on code.google.com by alexandr...@gmail.com on 31 Jul 2013 at 8:05

Attachments: