Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 314872

Summary: Trace on console
Product: [Tools] Linux Tools Reporter: Andrew Overholt <overholt>
Component: SystemtapAssignee: anithra <anithra>
Status: RESOLVED INVALID QA Contact:
Severity: major    
Priority: P3 CC: pmuldoon, sgehwolf
Version: 0.6   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Andrew Overholt CLA 2010-05-28 09:55:45 EDT
I'm getting a bunch of stack trace elements on the console.  I don't know what caused it.  All I did was open a bunch of the SystemTap views.  My terminal scrolled off with a bunch of these:

org.eclipse.linuxtools.systemtap.ui.ide.structures.TapsetParser.runPass2FunctionSet(TapsetParser.java:388)
Comment 1 Andrew Overholt CLA 2010-05-28 09:58:30 EDT
I'll set the milestone to 0.6 if I can reproduce this.  FWIW, the line in the trace and a few around it are:

	/**
	 * This method runs stap -up2 on the specified group of functions.
	 * If errors result, it will break the batch in half and run again
	 * on each subset
	 * @param funcs The list of all functions available in the tapsets
	 * @param low The lower bound of functions to use in this set
	 * @param high The upper bound of functions to use in this set
	 */
	private void runPass2FunctionSet(String[] funcs, int low, int high) {
		if(low == high)
			return;
		if(stopped)
			return;
		
		StringBuilder functionStr = new StringBuilder("probe begin{\n");
		for(int i=low; i<high; i++)
			functionStr.append(funcs[i]);
		functionStr.append("}\n");

		String result = runStap(new String[] {"-u"}, functionStr.toString(), 2);
		
		if(0 < result.trim().length()) {
			parsePass2Functions(result);
		} else if(low+1 != high) {
			runPass2FunctionSet(funcs, low, low+((high-low)>>1));
			runPass2FunctionSet(funcs, low+((high-low)>>1), high);
		}
	}

I don't know I triggered this method.
Comment 2 Andrew Overholt CLA 2010-05-28 10:01:31 EDT
This now started happening again.  I entered the Dashboard perspective and went back to the Java perspective.  No files are open at the moment and it appears to just keep logging that error.

Please fix.
Comment 3 Severin Gehwolf CLA 2010-06-04 11:06:49 EDT
This doesn't seem to happen for me. Is it just a switch from the SystemTap Dashboard perspective to the Java perspective what's causing this for you? I'm on RC3 and helios-updates Linux Tools.
Comment 4 Andrew Overholt CLA 2010-06-04 11:23:18 EDT
I couldn't really pin it down when it happened.  I *was* having problems with my installation so let's chalk it up to that and re-open if it re-occurs.