Program: 14760
Project: 14760
Buggy source:
@Override public boolean load() throws Exception {
  try {
    HostManager.getInstance();
    LOG.info("String_Node_Str" + SystemIds.membershipGroupName());
    hostMap=new ReplicatedHashMap<String,Host>(HostManager.getMembershipChannel());
    hostMap.setDeadlockDetection(true);
    hostMap.setBlockingUpdates(true);
    Runnable runMap=new Runnable(){
      public void run(){
        try {
          hostMap.start(STATE_INITIALIZE_TIMEOUT);
          OrderedShutdown.register(Eucalyptus.class,new Runnable(){
            @Override public void run(){
              try {
                try {
                  hostMap.remove(Internets.localHostIdentifier());
                }
 catch (                final Exception ex) {
                  LOG.error(ex,ex);
                }
                hostMap.stop();
              }
 catch (              final Exception ex) {
                LOG.error(ex,ex);
              }
            }
          }
);
        }
 catch (        Exception ex) {
          LOG.error(ex,ex);
          Exceptions.maybeInterrupted(ex);
          System.exit(123);
        }
      }
    }
;
    hostMap.addNotifier(HostMapStateListener.INSTANCE);
    Timers.loggingWrapper(runMap,hostMap).call();
    LOG.info("String_Node_Str" + HostMapStateListener.INSTANCE.printMap());
    LOG.info("String_Node_Str" + Hosts.getCoordinator());
    Coordinator.INSTANCE.initialize(hostMap.values());
    final Host local=Host.create();
    LOG.info("String_Node_Str" + local);
    hostMap.put(local.getDisplayName(),local);
    Listeners.register(HostBootstrapEventListener.INSTANCE);
    LOG.info("String_Node_Str" + HostMapStateListener.INSTANCE.printMap());
    LOG.info("String_Node_Str" + Hosts.getCoordinator());
    if (!BootstrapArgs.isCloudController()) {
      while (Hosts.listActiveDatabases().isEmpty()) {
        TimeUnit.SECONDS.sleep(5);
        LOG.info("String_Node_Str");
      }
      if (Databases.shouldInitialize()) {
        doInitialize();
      }
    }
    LOG.info("String_Node_Str" + Hosts.localHost());
    return true;
  }
 catch (  final Exception ex) {
    LOG.fatal(ex,ex);
    BootstrapException.throwFatal("String_Node_Str" + ex.getMessage(),ex);
    return false;
  }
}

Fixed version (ground truth):
@Override public boolean load() throws Exception {
  try {
    HostManager.getInstance();
    LOG.info("String_Node_Str" + SystemIds.membershipGroupName());
    hostMap=new ReplicatedHashMap<String,Host>(HostManager.getMembershipChannel());
    hostMap.setDeadlockDetection(true);
    hostMap.setBlockingUpdates(true);
    hostMap.addNotifier(HostMapStateListener.INSTANCE);
    Runnable runMap=new Runnable(){
      public void run(){
        try {
          hostMap.start(STATE_INITIALIZE_TIMEOUT);
          OrderedShutdown.register(Eucalyptus.class,new Runnable(){
            @Override public void run(){
              try {
                try {
                  hostMap.remove(Internets.localHostIdentifier());
                }
 catch (                final Exception ex) {
                  LOG.error(ex,ex);
                }
                hostMap.stop();
              }
 catch (              final Exception ex) {
                LOG.error(ex,ex);
              }
            }
          }
);
        }
 catch (        Exception ex) {
          LOG.error(ex,ex);
          Exceptions.maybeInterrupted(ex);
          System.exit(123);
        }
      }
    }
;
    Timers.loggingWrapper(runMap,hostMap).call();
    LOG.info("String_Node_Str" + HostMapStateListener.INSTANCE.printMap());
    LOG.info("String_Node_Str" + Hosts.getCoordinator());
    Coordinator.INSTANCE.initialize(hostMap.values());
    final Host local=Host.create();
    LOG.info("String_Node_Str" + local);
    hostMap.put(local.getDisplayName(),local);
    Listeners.register(HostBootstrapEventListener.INSTANCE);
    LOG.info("String_Node_Str" + HostMapStateListener.INSTANCE.printMap());
    LOG.info("String_Node_Str" + Hosts.getCoordinator());
    if (!BootstrapArgs.isCloudController()) {
      while (Hosts.listActiveDatabases().isEmpty()) {
        TimeUnit.SECONDS.sleep(5);
        LOG.info("String_Node_Str");
      }
      if (Databases.shouldInitialize()) {
        doInitialize();
      }
    }
    LOG.info("String_Node_Str" + Hosts.localHost());
    return true;
  }
 catch (  final Exception ex) {
    LOG.fatal(ex,ex);
    BootstrapException.throwFatal("String_Node_Str" + ex.getMessage(),ex);
    return false;
  }
}