Program: 173019
Project: 173019
Buggy source:
/** 
 * Initialize
 * @param cfg
 * @param t
 * @param tPlan
 * @param ed
 */
public void init(Config cfg,MessageType t,TaskPlan tPlan,int ed){
  this.config=cfg;
  this.instancePlan=tPlan;
  this.type=t;
  this.edge=ed;
  router=new BinaryTreeRouter(cfg,tPlan,source,destinations);
  if (this.finalReceiver != null) {
    this.finalReceiver.init(cfg,this,receiveExpectedTaskIds());
  }
 else {
    throw new RuntimeException("String_Node_Str");
  }
  LOG.info(String.format("String_Node_Str",executor,router.sendQueueIds()));
  Map<Integer,Queue<Pair<Object,MPIMessage>>> pendingReceiveMessagesPerSource=new HashMap<>();
  Map<Integer,Queue<MPIMessage>> pendingReceiveDeSerializations=new HashMap<>();
  Map<Integer,MessageSerializer> serializerMap=new HashMap<>();
  Map<Integer,MessageDeSerializer> deSerializerMap=new HashMap<>();
  Set<Integer> srcs=router.sendQueueIds();
  for (  int s : srcs) {
    ArrayBlockingQueue<Pair<Object,MPISendMessage>> pendingSendMessages=new ArrayBlockingQueue<Pair<Object,MPISendMessage>>(MPIContext.sendPendingMax(cfg));
    pendingSendMessagesPerSource.put(s,pendingSendMessages);
    serializerMap.put(s,new MPIMessageSerializer(new KryoSerializer()));
  }
  int maxReceiveBuffers=MPIContext.receiveBufferCount(cfg);
  int receiveExecutorsSize=receivingExecutors().size();
  if (receiveExecutorsSize == 0) {
    receiveExecutorsSize=1;
  }
  Set<Integer> execs=router.receivingExecutors();
  for (  int e : execs) {
    int capacity=maxReceiveBuffers * 2 * receiveExecutorsSize;
    Queue<Pair<Object,MPIMessage>> pendingReceiveMessages=new ArrayBlockingQueue<Pair<Object,MPIMessage>>(capacity);
    pendingReceiveMessagesPerSource.put(e,pendingReceiveMessages);
    pendingReceiveDeSerializations.put(e,new ArrayBlockingQueue<MPIMessage>(capacity));
    deSerializerMap.put(e,new MPIMessageDeSerializer(new KryoSerializer()));
  }
  delegete.init(cfg,t,tPlan,ed,router.receivingExecutors(),router.isLastReceiver(),this,pendingSendMessagesPerSource,pendingReceiveMessagesPerSource,pendingReceiveDeSerializations,serializerMap,deSerializerMap,false);
}

Fixed version (ground truth):
/** 
 * Initialize
 * @param cfg
 * @param t
 * @param tPlan
 * @param ed
 */
public void init(Config cfg,MessageType t,TaskPlan tPlan,int ed){
  this.config=cfg;
  this.instancePlan=tPlan;
  this.type=t;
  this.edge=ed;
  this.executor=tPlan.getThisExecutor();
  router=new BinaryTreeRouter(cfg,tPlan,source,destinations);
  if (this.finalReceiver != null) {
    this.finalReceiver.init(cfg,this,receiveExpectedTaskIds());
  }
 else {
    throw new RuntimeException("String_Node_Str");
  }
  LOG.info(String.format("String_Node_Str",executor,router.sendQueueIds()));
  Map<Integer,Queue<Pair<Object,MPIMessage>>> pendingReceiveMessagesPerSource=new HashMap<>();
  Map<Integer,Queue<MPIMessage>> pendingReceiveDeSerializations=new HashMap<>();
  Map<Integer,MessageSerializer> serializerMap=new HashMap<>();
  Map<Integer,MessageDeSerializer> deSerializerMap=new HashMap<>();
  Set<Integer> srcs=router.sendQueueIds();
  for (  int s : srcs) {
    ArrayBlockingQueue<Pair<Object,MPISendMessage>> pendingSendMessages=new ArrayBlockingQueue<Pair<Object,MPISendMessage>>(MPIContext.sendPendingMax(cfg));
    pendingSendMessagesPerSource.put(s,pendingSendMessages);
    serializerMap.put(s,new MPIMessageSerializer(new KryoSerializer()));
  }
  int maxReceiveBuffers=MPIContext.receiveBufferCount(cfg);
  int receiveExecutorsSize=receivingExecutors().size();
  if (receiveExecutorsSize == 0) {
    receiveExecutorsSize=1;
  }
  Set<Integer> execs=router.receivingExecutors();
  for (  int e : execs) {
    int capacity=maxReceiveBuffers * 2 * receiveExecutorsSize;
    Queue<Pair<Object,MPIMessage>> pendingReceiveMessages=new ArrayBlockingQueue<Pair<Object,MPIMessage>>(capacity);
    pendingReceiveMessagesPerSource.put(e,pendingReceiveMessages);
    pendingReceiveDeSerializations.put(e,new ArrayBlockingQueue<MPIMessage>(capacity));
    deSerializerMap.put(e,new MPIMessageDeSerializer(new KryoSerializer()));
  }
  delegete.init(cfg,t,tPlan,ed,router.receivingExecutors(),router.isLastReceiver(),this,pendingSendMessagesPerSource,pendingReceiveMessagesPerSource,pendingReceiveDeSerializations,serializerMap,deSerializerMap,false);
}