Program: 55146
Project: 55146
Buggy source:
private void onRead0(@NotNull DocumentContext inDc,@NotNull WireOut out,@NotNull WireIn in){
  if (!YamlLogging.showHeartBeats()) {
    prevLogMessage.setLength(0);
    prevLogMessage.append(currentLogMessage);
    currentLogMessage.setLength(0);
    logToBuffer(in,currentLogMessage,in.bytes().readPosition() - 4);
  }
  logYamlToStandardOut(in);
  if (inDc.isMetaData()) {
    this.metaDataConsumer.readMarshallable(in);
  }
 else {
    try {
      if (LOG.isDebugEnabled())       Jvm.debug().on(getClass(),"String_Node_Str" + in.bytes().toHexString());
      @NotNull Consumer<WireType> wireTypeConsumer=wt -> {
        wireType(wt);
        checkWires(in.bytes(),out.bytes(),wireType());
      }
;
      if (isSystemMessage) {
        systemHandler.process(in,out,tid,sessionDetails,getMonitoringMap(),isServerSocket,this::publisher,hostIdentifier,wireTypeConsumer,wireType());
        if (!systemHandler.wasHeartBeat()) {
          if (!YamlLogging.showHeartBeats())           logBufferToStandardOut(prevLogMessage.append(currentLogMessage));
        }
        return;
      }
      if (!YamlLogging.showHeartBeats()) {
        logBufferToStandardOut(prevLogMessage.append(currentLogMessage));
      }
      @Nullable Map<String,UserStat> userMonitoringMap=getMonitoringMap();
      if (userMonitoringMap != null) {
        UserStat userStat=userMonitoringMap.get(sessionDetails.userId());
        if (userStat == null) {
          throw new AssertionError("String_Node_Str");
        }
        userStat.setRecentInteraction(LocalTime.now());
        userStat.setTotalInteractions(userStat.getTotalInteractions() + 1);
        userMonitoringMap.put(sessionDetails.userId(),userStat);
      }
      if (wireAdapter != null) {
        if (viewType == null)         return;
        if (MapView.class.isAssignableFrom(viewType)) {
          mapWireHandler.process(in,out,(MapView)view,tid,wireAdapter,requestContext);
          return;
        }
        if (EntrySetView.class.isAssignableFrom(viewType)) {
          entrySetHandler.process(in,out,(EntrySetView)view,wireAdapter.entryToWire(),wireAdapter.wireToEntry(),HashSet::new,tid);
          return;
        }
        if (KeySetView.class.isAssignableFrom(viewType)) {
          keySetHandler.process(in,out,(KeySetView)view,wireAdapter.keyToWire(),wireAdapter.wireToKey(),HashSet::new,tid);
          return;
        }
        if (MapColumnView.class.isAssignableFrom(viewType) || QueueColumnView.class.isAssignableFrom(viewType) || viewType == ColumnView.class) {
          columnViewHandler.process(in,out,(ColumnViewInternal)view,tid);
          return;
        }
        if (ColumnViewIterator.class.isAssignableFrom(viewType)) {
          columnViewIteratorHandler.process(in,out,tid,(Iterator<Row>)view,cid);
          return;
        }
        if (ValuesCollection.class.isAssignableFrom(viewType)) {
          valuesHandler.process(in,out,(ValuesCollection)view,wireAdapter.keyToWire(),wireAdapter.wireToKey(),ArrayList::new,tid);
          return;
        }
        if (ObjectSubscription.class.isAssignableFrom(viewType)) {
          subscriptionHandler.process(in,requestContext,publisher(),contextAsset,tid,outWire,(SubscriptionCollection)view);
          return;
        }
        if (TopologySubscription.class.isAssignableFrom(viewType)) {
          topologySubscriptionHandler.process(in,requestContext,publisher(),contextAsset,tid,outWire,(TopologySubscription)view);
          return;
        }
        if (Reference.class.isAssignableFrom(viewType)) {
          referenceHandler.process(in,requestContext,publisher(),tid,(Reference)view,cspText,outWire,wireAdapter);
          return;
        }
        if (TopicPublisher.class.isAssignableFrom(viewType) || QueueView.class.isAssignableFrom(viewType)) {
          topicPublisherHandler.process(in,publisher(),tid,outWire,(TopicPublisher)view,wireAdapter);
          return;
        }
        if (Publisher.class.isAssignableFrom(viewType)) {
          publisherHandler.process(in,requestContext,publisher(),tid,(Publisher)view,outWire,wireAdapter);
          return;
        }
        if (Replication.class.isAssignableFrom(viewType)) {
          replicationHandler.process(in,publisher(),tid,outWire,hostIdentifier,(Replication)view,eventLoop);
          return;
        }
        if (IndexQueueView.class.isAssignableFrom(viewType)) {
          indexQueueViewHandler.process(in,requestContext,contextAsset,publisher(),tid,outWire);
          return;
        }
        if (VaadinChart.class.isAssignableFrom(viewType)) {
          barChatHandler.process(in,out,(VaadinChart)view,tid);
        }
      }
    }
 catch (    Exception e) {
      Jvm.warn().on(getClass(),in.readingPeekYaml() + "String_Node_Str" + in.bytes().toDebugString(),e);
    }
 finally {
      if (sessionProvider != null)       sessionProvider.remove();
      cid=0;
    }
  }
}

Fixed version (ground truth):
private void onRead0(@NotNull DocumentContext inDc,@NotNull WireOut out,@NotNull WireIn in){
  if (!YamlLogging.showHeartBeats()) {
    prevLogMessage.setLength(0);
    prevLogMessage.append(currentLogMessage);
    currentLogMessage.setLength(0);
    logToBuffer(in,currentLogMessage,in.bytes().readPosition() - 4);
  }
  logYamlToStandardOut(in);
  if (inDc.isMetaData()) {
    this.metaDataConsumer.readMarshallable(in);
  }
 else {
    try {
      if (LOG.isDebugEnabled())       Jvm.debug().on(getClass(),"String_Node_Str" + in.bytes().toHexString());
      @NotNull Consumer<WireType> wireTypeConsumer=wt -> {
        wireType(wt);
        checkWires(in.bytes(),out.bytes(),wireType());
      }
;
      if (isSystemMessage) {
        systemHandler.process(in,out,tid,sessionDetails,getMonitoringMap(),wireTypeConsumer,wireType());
        if (!systemHandler.wasHeartBeat()) {
          if (!YamlLogging.showHeartBeats())           logBufferToStandardOut(prevLogMessage.append(currentLogMessage));
        }
        return;
      }
      if (!YamlLogging.showHeartBeats()) {
        logBufferToStandardOut(prevLogMessage.append(currentLogMessage));
      }
      @Nullable Map<String,UserStat> userMonitoringMap=getMonitoringMap();
      if (userMonitoringMap != null) {
        UserStat userStat=userMonitoringMap.get(sessionDetails.userId());
        if (userStat == null) {
          throw new AssertionError("String_Node_Str");
        }
        userStat.setRecentInteraction(LocalTime.now());
        userStat.setTotalInteractions(userStat.getTotalInteractions() + 1);
        userMonitoringMap.put(sessionDetails.userId(),userStat);
      }
      if (wireAdapter != null) {
        if (viewType == null)         return;
        if (MapView.class.isAssignableFrom(viewType)) {
          mapWireHandler.process(in,out,(MapView)view,tid,wireAdapter,requestContext);
          return;
        }
        if (EntrySetView.class.isAssignableFrom(viewType)) {
          entrySetHandler.process(in,out,(EntrySetView)view,wireAdapter.entryToWire(),wireAdapter.wireToEntry(),HashSet::new,tid);
          return;
        }
        if (KeySetView.class.isAssignableFrom(viewType)) {
          keySetHandler.process(in,out,(KeySetView)view,wireAdapter.keyToWire(),wireAdapter.wireToKey(),HashSet::new,tid);
          return;
        }
        if (MapColumnView.class.isAssignableFrom(viewType) || QueueColumnView.class.isAssignableFrom(viewType) || viewType == ColumnView.class) {
          columnViewHandler.process(in,out,(ColumnViewInternal)view,tid);
          return;
        }
        if (ColumnViewIterator.class.isAssignableFrom(viewType)) {
          columnViewIteratorHandler.process(in,out,tid,(Iterator<Row>)view,cid);
          return;
        }
        if (ValuesCollection.class.isAssignableFrom(viewType)) {
          valuesHandler.process(in,out,(ValuesCollection)view,wireAdapter.keyToWire(),wireAdapter.wireToKey(),ArrayList::new,tid);
          return;
        }
        if (ObjectSubscription.class.isAssignableFrom(viewType)) {
          subscriptionHandler.process(in,requestContext,publisher(),contextAsset,tid,outWire,(SubscriptionCollection)view);
          return;
        }
        if (TopologySubscription.class.isAssignableFrom(viewType)) {
          topologySubscriptionHandler.process(in,requestContext,publisher(),contextAsset,tid,outWire,(TopologySubscription)view);
          return;
        }
        if (Reference.class.isAssignableFrom(viewType)) {
          referenceHandler.process(in,requestContext,publisher(),tid,(Reference)view,cspText,outWire,wireAdapter);
          return;
        }
        if (TopicPublisher.class.isAssignableFrom(viewType) || QueueView.class.isAssignableFrom(viewType)) {
          topicPublisherHandler.process(in,publisher(),tid,outWire,(TopicPublisher)view,wireAdapter);
          return;
        }
        if (Publisher.class.isAssignableFrom(viewType)) {
          publisherHandler.process(in,requestContext,publisher(),tid,(Publisher)view,outWire,wireAdapter);
          return;
        }
        if (Replication.class.isAssignableFrom(viewType)) {
          replicationHandler.process(in,publisher(),tid,outWire,hostIdentifier,(Replication)view,eventLoop);
          return;
        }
        if (IndexQueueView.class.isAssignableFrom(viewType)) {
          indexQueueViewHandler.process(in,requestContext,contextAsset,publisher(),tid,outWire);
          return;
        }
        if (VaadinChart.class.isAssignableFrom(viewType)) {
          barChatHandler.process(in,out,(VaadinChart)view,tid);
        }
      }
    }
 catch (    Exception e) {
      Jvm.warn().on(getClass(),in.readingPeekYaml() + "String_Node_Str" + in.bytes().toDebugString(),e);
    }
 finally {
      if (sessionProvider != null)       sessionProvider.remove();
      cid=0;
    }
  }
}