This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 68271 - Show Back Traces shows different call trees for different threads
Summary: Show Back Traces shows different call trees for different threads
Status: CLOSED WORKSFORME
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-08 12:32 UTC by ehucka
Modified: 2007-02-20 18:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2005-11-08 12:32:55 UTC
I have an application with two threads calling one method. If I invoke 'Show
Back Traces' in snapshot on this method I get different caltrees for each thread. 
If I invoke the action on method called from main thread it shows only the main
thread back traces but if I invoke it from another thread it shows back traces
from both threads.
Comment 1 iformanek 2005-11-23 12:06:00 UTC
I cannot reproduce this.
I am trying with this application:

/*
 * Main.java
 *
 * Created on November 23, 2005, 1:00 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package javaapplication4;

/**
 *
 * @author Ian Formanek
 */
public class Main {
    public static void testMethod () {
        System.out.println("Test");
        Thread.dumpStack ();
    }
    
    /** Creates a new instance of Main */
    public Main() {
    }
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        new MyThread ().start ();
        testMethod ();
        // TODO code application logic here
    }
    
    public static class MyThread extends Thread {
        public void run () {
            testMethod ();
        }
    }
}

anf the back traces are correct whatever thread they are displayed from (both 
from call tree and from hotspots).

Please attach the sample app and/or the snapshot.
Comment 2 ehucka 2006-03-22 10:17:04 UTC
verified
Comment 3 Alexander Kouznetsov 2007-02-20 10:26:41 UTC
Closing old issues
Comment 4 Alexander Kouznetsov 2007-02-20 18:09:58 UTC
Reverting to original Target Milestone value changed by mistake. Sorry for
inconvenience.