@@ -0,0 +1,2447 @@
+package net.openhft.chronicle.bytes;%0A%0Aimport org.junit.Ignore;%0Aimport org.junit.Test;%0A%0Aimport java.nio.ByteBuffer;%0A%0Apublic class Bytes4Test %7B%0A%0A    @Ignore(%22https://github.com/OpenHFT/Chronicle-Bytes/issues/186%22)%0A    @Test%0A    public void segFault() %7B%0A        %7B%0A            byte%5B%5D arr = new byte%5B4%5D;%0A            BytesStore bs = BytesStore.wrap(arr);%0A            bs.writeInt(0, 0xaaaaaaaa);%0A            //System.exit(0);%0A        %7D%0A%0A        BytesStore bs = BytesStore.from(%22this is a test          %22);%0A        bs.append(14, 16, 12);%0A        bs.isClear();%0A        bs.writeUtf8(14, %22this is a another text it should over write the other%22);%0A    %7D%0A%0A%0A    public static void main(String%5B%5D args) %7B%0A%0A        %7B%0A            byte%5B%5D arr = new byte%5B4%5D;%0A            BytesStore bs = BytesStore.wrap(arr);%0A            bs.writeInt(0, 0xaaaaaaaa);%0A            //System.exit(0);%0A        %7D%0A%0A%0A%0A        BytesStore bs = BytesStore.from(%22this is a test          %22);%0A        bs.append(14, 16, 12);%0A        bs.isClear();%0A        bs.writeUtf8(14, %22this is a another text it should over write the other%22);%0A        print(%22ByteStore%22, bs);%0A%0A        Bytes%3CByteBuffer%3E by = Bytes.elasticByteBuffer();%0A        //  ByteBuffer bb = bytes.underlyingObject();%0A        // System.out.println();%0A        //  bytes.comment(%22true%22).writeBoolean(true);%0A        by.writeInt(55);%0A        by.comment(%22new1%22).writeInt(7);%0A        by.comment(%22new2%22).writeInt(8);%0A        by.comment(%22new2%22).writeInt(9);%0A        by.comment(%22new2%22).writeInt(10);%0A        //   bytes.comment(%22new3%22).writeBigInteger(BigInteger.valueOf(456729));%0A        print(%22by%22, by);%0A%0A        Bytes%3C?%3E b1 = by.bytesForRead();%0A        Bytes b2 = by.bytesForWrite();%0A        //  b1.writeInt(2);%0A        //int I1 = b2.readInt();%0A%0A        //  System.out.println(%22I1 = %22+I1);%0A%0A        print(%22b1 bytesForRead%22, b1);%0A        print(%22b2 bytesForWrite%22, b2);%0A%0A    %7D%0A%0A    private static void print(String name, BytesStore bs) %7B%0A        System.out.println(%22** %22 + name + %22 **%22);%0A        System.out.println(%22readlimit  %22 + bs.readLimit());%0A        System.out.println(%22writelimit %22 + bs.writeLimit());%0A        System.out.println(%22readposition %22 + bs.readPosition());%0A        System.out.println(%22writeposition %22 + bs.writePosition());%0A        System.out.println(%22capacity %22 + bs.capacity());%0A        System.out.println(%22real capacity %22 + bs.realCapacity());%0A        System.out.println(%22start %22 + bs.start());%0A        System.out.println();%0A%0A    %7D%0A%7D%0A

Add test producing seg fault. See #186