Program: 92801
Project: 92801
Buggy source:
/** 
 * The main body of this event. Starts by making sure the current editor is valid to run, then builds the command line arguments for stap and retrieves the environment variables. Next, it gets an instance of <code>ScriptConsole</code> to run the script. Finally, it Registers a new <code>ChartStreamDaemon2</code> to handle formating the script output for a <code>DataSet</code>. Once everything is setup, it will attempt to switch to the Graphing Perspective.
 */
public void run(){
  LogManager.logDebug("String_Node_Str",this);
  continueRun=true;
  if (ConsoleLogPlugin.getDefault().getPluginPreferences().getBoolean(ConsoleLogPreferenceConstants.REMEMBER_SERVER) != true) {
    new SelectServerDialog(fWindow.getShell()).open();
  }
  if (isValid()) {
    try {
      ScpClient scpclient=new ScpClient();
      serverfileName=fileName.substring(fileName.lastIndexOf('/') + 1);
      tmpfileName="String_Node_Str" + serverfileName;
      scpclient.transfer(fileName,tmpfileName);
    }
 catch (    Exception e) {
      e.printStackTrace();
    }
    String[] script=buildScript();
    String[] envVars=getEnvironmentVariables();
    if (continueRun) {
      ScriptConsole console=ScriptConsole.getInstance(serverfileName);
      console.run(script,envVars,new PasswordPrompt(IDESessionSettings.password),new StapErrorParser());
      console.getCommand().addInputStreamListener(new ChartStreamDaemon2(console,dataSet,parser));
      try {
        IWorkbenchPage p=PlatformUI.getWorkbench().showPerspective(GraphingPerspective.ID,PlatformUI.getWorkbench().getActiveWorkbenchWindow());
        IViewPart ivp=p.findView(GraphSelectorView.ID);
        String name=console.getName();
        ((GraphSelectorView)ivp).createScriptSet(name.substring(name.lastIndexOf('/') + 1),dataSet);
      }
 catch (      WorkbenchException we) {
      }
    }
  }
  LogManager.logDebug("String_Node_Str",this);
}

Fixed version (ground truth):
/** 
 * The main body of this event. Starts by making sure the current editor is valid to run, then builds the command line arguments for stap and retrieves the environment variables. Next, it gets an instance of <code>ScriptConsole</code> to run the script. Finally, it Registers a new <code>ChartStreamDaemon2</code> to handle formating the script output for a <code>DataSet</code>. Once everything is setup, it will attempt to switch to the Graphing Perspective.
 */
public void run(){
  LogManager.logDebug("String_Node_Str",this);
  continueRun=true;
  if (ConsoleLogPlugin.getDefault().getPluginPreferences().getBoolean(ConsoleLogPreferenceConstants.REMEMBER_SERVER) != true) {
    new SelectServerDialog(fWindow.getShell()).open();
  }
  if (isValid()) {
    try {
      ScpClient scpclient=new ScpClient();
      serverfileName=fileName.substring(fileName.lastIndexOf('/') + 1);
      tmpfileName="String_Node_Str" + serverfileName;
      scpclient.transfer(fileName,tmpfileName);
    }
 catch (    Exception e) {
      continueRun=false;
    }
    String[] script=null;
    if (continueRun)     script=buildScript();
    if (continueRun) {
      String[] envVars=getEnvironmentVariables();
      ScriptConsole console=ScriptConsole.getInstance(serverfileName);
      console.run(script,envVars,new PasswordPrompt(IDESessionSettings.password),new StapErrorParser());
      console.getCommand().addInputStreamListener(new ChartStreamDaemon2(console,dataSet,parser));
      try {
        IWorkbenchPage p=PlatformUI.getWorkbench().showPerspective(GraphingPerspective.ID,PlatformUI.getWorkbench().getActiveWorkbenchWindow());
        IViewPart ivp=p.findView(GraphSelectorView.ID);
        String name=console.getName();
        ((GraphSelectorView)ivp).createScriptSet(name.substring(name.lastIndexOf('/') + 1),dataSet);
      }
 catch (      WorkbenchException we) {
      }
    }
  }
  LogManager.logDebug("String_Node_Str",this);
}