Program: 191658
Project: 191658
Buggy source:
public void dump(FileDescriptor fd,PrintWriter pw,String[] args){
synchronized (mQueueLock) {
    pw.println("String_Node_Str");
    pw.println("String_Node_Str" + mExpandedVisible + "String_Node_Str"+ mTrackingPosition);
    pw.println("String_Node_Str" + mTracking);
    pw.println("String_Node_Str" + mDisplayMetrics);
    pw.println("String_Node_Str" + viewInfo(mStackScroller));
    pw.println("String_Node_Str" + viewInfo(mStackScroller) + "String_Node_Str"+ mStackScroller.getScrollX()+ "String_Node_Str"+ mStackScroller.getScrollY());
  }
  pw.print("String_Node_Str");
  pw.println(mInteractingWindows);
  pw.print("String_Node_Str");
  pw.println(windowStateToString(mStatusBarWindowState));
  pw.print("String_Node_Str");
  pw.println(BarTransitions.modeToString(mStatusBarMode));
  pw.print("String_Node_Str");
  pw.println(mDozing);
  pw.print("String_Node_Str");
  pw.println(Settings.Global.zenModeToString(mZenMode));
  pw.print("String_Node_Str");
  pw.println(mUseHeadsUp);
  dumpBarTransitions(pw,"String_Node_Str",mStatusBarView.getBarTransitions());
  if (mNavigationBarView != null) {
    pw.print("String_Node_Str");
    pw.println(windowStateToString(mNavigationBarWindowState));
    pw.print("String_Node_Str");
    pw.println(BarTransitions.modeToString(mNavigationBarMode));
    dumpBarTransitions(pw,"String_Node_Str",mNavigationBarView.getBarTransitions());
  }
  pw.print("String_Node_Str");
  if (mNavigationBarView == null) {
    pw.println("String_Node_Str");
  }
 else {
    mNavigationBarView.dump(fd,pw,args);
  }
  pw.print("String_Node_Str");
  pw.println(mMediaSessionManager);
  pw.print("String_Node_Str");
  pw.println(mMediaNotificationKey);
  pw.print("String_Node_Str");
  pw.print(mMediaController);
  if (mMediaController != null) {
    pw.print("String_Node_Str" + mMediaController.getPlaybackState());
  }
  pw.println();
  pw.print("String_Node_Str");
  pw.print(mMediaMetadata);
  if (mMediaMetadata != null) {
    pw.print("String_Node_Str" + mMediaMetadata.getText(MediaMetadata.METADATA_KEY_TITLE));
  }
  pw.println();
  pw.println("String_Node_Str");
  if (mNotificationPanel != null) {
    pw.println("String_Node_Str" + mNotificationPanel + "String_Node_Str"+ mNotificationPanel.getLayoutParams().debug("String_Node_Str"));
    pw.print("String_Node_Str");
    mNotificationPanel.dump(fd,pw,args);
  }
  DozeLog.dump(pw);
  if (DUMPTRUCK) {
synchronized (mNotificationData) {
      mNotificationData.dump(pw,"String_Node_Str");
    }
    mIconController.dump(pw);
    if (false) {
      pw.println("String_Node_Str");
      mHandler.post(new Runnable(){
        public void run(){
          mStatusBarView.getLocationOnScreen(mAbsPos);
          Log.d(TAG,"String_Node_Str" + mAbsPos[0] + "String_Node_Str"+ mAbsPos[1]+ "String_Node_Str"+ mStatusBarView.getWidth()+ "String_Node_Str"+ getStatusBarHeight());
          mStatusBarView.debug();
        }
      }
);
    }
  }
  if (DEBUG_GESTURES) {
    pw.print("String_Node_Str");
    mGestureRec.dump(fd,pw,args);
  }
  if (mStatusBarWindowManager != null) {
    mStatusBarWindowManager.dump(fd,pw,args);
  }
  if (mNetworkController != null) {
    mNetworkController.dump(fd,pw,args);
  }
  if (mBluetoothController != null) {
    mBluetoothController.dump(fd,pw,args);
  }
  if (mHotspotController != null) {
    mHotspotController.dump(fd,pw,args);
  }
  if (mCastController != null) {
    mCastController.dump(fd,pw,args);
  }
  if (mUserSwitcherController != null) {
    mUserSwitcherController.dump(fd,pw,args);
  }
  if (mBatteryController != null) {
    mBatteryController.dump(fd,pw,args);
  }
  if (mNextAlarmController != null) {
    mNextAlarmController.dump(fd,pw,args);
  }
  if (mSecurityController != null) {
    mSecurityController.dump(fd,pw,args);
  }
  if (mHeadsUpManager != null) {
    mHeadsUpManager.dump(fd,pw,args);
  }
 else {
    pw.println("String_Node_Str");
  }
  if (KeyguardUpdateMonitor.getInstance(mContext) != null) {
    KeyguardUpdateMonitor.getInstance(mContext).dump(fd,pw,args);
  }
  FalsingManager.getInstance(mContext).dump(pw);
  FalsingLog.dump(pw);
  pw.println("String_Node_Str");
  for (  Map.Entry<String,?> entry : Prefs.getAll(mContext).entrySet()) {
    pw.print("String_Node_Str");
    pw.print(entry.getKey());
    pw.print("String_Node_Str");
    pw.println(entry.getValue());
  }
}

Fixed version (ground truth):
public void dump(FileDescriptor fd,PrintWriter pw,String[] args){
synchronized (mQueueLock) {
    pw.println("String_Node_Str");
    pw.println("String_Node_Str" + mExpandedVisible + "String_Node_Str"+ mTrackingPosition);
    pw.println("String_Node_Str" + mTracking);
    pw.println("String_Node_Str" + mDisplayMetrics);
    pw.println("String_Node_Str" + viewInfo(mStackScroller));
    pw.println("String_Node_Str" + viewInfo(mStackScroller) + "String_Node_Str"+ mStackScroller.getScrollX()+ "String_Node_Str"+ mStackScroller.getScrollY());
  }
  pw.print("String_Node_Str");
  pw.println(mInteractingWindows);
  pw.print("String_Node_Str");
  pw.println(windowStateToString(mStatusBarWindowState));
  pw.print("String_Node_Str");
  pw.println(BarTransitions.modeToString(mStatusBarMode));
  pw.print("String_Node_Str");
  pw.println(mDozing);
  pw.print("String_Node_Str");
  pw.println(Settings.Global.zenModeToString(mZenMode));
  pw.print("String_Node_Str");
  pw.println(mUseHeadsUp);
  dumpBarTransitions(pw,"String_Node_Str",mStatusBarView.getBarTransitions());
  if (mNavigationBarView != null) {
    pw.print("String_Node_Str");
    pw.println(windowStateToString(mNavigationBarWindowState));
    pw.print("String_Node_Str");
    pw.println(BarTransitions.modeToString(mNavigationBarMode));
    dumpBarTransitions(pw,"String_Node_Str",mNavigationBarView.getBarTransitions());
  }
  pw.print("String_Node_Str");
  if (mNavigationBarView == null) {
    pw.println("String_Node_Str");
  }
 else {
    mNavigationBarView.dump(fd,pw,args);
  }
  pw.print("String_Node_Str");
  pw.println(mMediaSessionManager);
  pw.print("String_Node_Str");
  pw.println(mMediaNotificationKey);
  pw.print("String_Node_Str");
  pw.print(mMediaController);
  if (mMediaController != null) {
    pw.print("String_Node_Str" + mMediaController.getPlaybackState());
  }
  pw.println();
  pw.print("String_Node_Str");
  pw.print(mMediaMetadata);
  if (mMediaMetadata != null) {
    pw.print("String_Node_Str" + mMediaMetadata.getText(MediaMetadata.METADATA_KEY_TITLE));
  }
  pw.println();
  pw.println("String_Node_Str");
  if (mNotificationPanel != null) {
    pw.println("String_Node_Str" + mNotificationPanel + "String_Node_Str"+ mNotificationPanel.getLayoutParams().debug("String_Node_Str"));
    pw.print("String_Node_Str");
    mNotificationPanel.dump(fd,pw,args);
  }
  DozeLog.dump(pw);
  if (DUMPTRUCK) {
synchronized (mNotificationData) {
      mNotificationData.dump(pw,"String_Node_Str");
    }
    mIconController.dump(pw);
    if (false) {
      pw.println("String_Node_Str");
      mHandler.post(new Runnable(){
        public void run(){
          mStatusBarView.getLocationOnScreen(mAbsPos);
          Log.d(TAG,"String_Node_Str" + mAbsPos[0] + "String_Node_Str"+ mAbsPos[1]+ "String_Node_Str"+ mStatusBarView.getWidth()+ "String_Node_Str"+ getStatusBarHeight());
          mStatusBarView.debug();
        }
      }
);
    }
  }
  if (DEBUG_GESTURES) {
    pw.print("String_Node_Str");
    mGestureRec.dump(fd,pw,args);
  }
  if (mStatusBarWindowManager != null) {
    mStatusBarWindowManager.dump(fd,pw,args);
  }
  if (mNetworkController != null) {
    mNetworkController.dump(fd,pw,args);
  }
  if (mBluetoothController != null) {
    mBluetoothController.dump(fd,pw,args);
  }
  if (mHotspotController != null) {
    mHotspotController.dump(fd,pw,args);
  }
  if (mCastController != null) {
    mCastController.dump(fd,pw,args);
  }
  if (mUserSwitcherController != null) {
    mUserSwitcherController.dump(fd,pw,args);
  }
  if (mBatteryController != null) {
    mBatteryController.dump(fd,pw,args);
  }
  if (mNextAlarmController != null) {
    mNextAlarmController.dump(fd,pw,args);
  }
  if (mSecurityController != null) {
    mSecurityController.dump(fd,pw,args);
  }
  if (mHeadsUpManager != null) {
    mHeadsUpManager.dump(fd,pw,args);
  }
 else {
    pw.println("String_Node_Str");
  }
  if (mGroupManager != null) {
    mGroupManager.dump(fd,pw,args);
  }
 else {
    pw.println("String_Node_Str");
  }
  if (KeyguardUpdateMonitor.getInstance(mContext) != null) {
    KeyguardUpdateMonitor.getInstance(mContext).dump(fd,pw,args);
  }
  FalsingManager.getInstance(mContext).dump(pw);
  FalsingLog.dump(pw);
  pw.println("String_Node_Str");
  for (  Map.Entry<String,?> entry : Prefs.getAll(mContext).entrySet()) {
    pw.print("String_Node_Str");
    pw.print(entry.getKey());
    pw.print("String_Node_Str");
    pw.println(entry.getValue());
  }
}