OpenJDK JVM crash in StubRoutines from com.itextpdf.text.io

Solution Verified - Updated -

Issue

  • JVM crash in com.itextpdf.io.source.FileChannelRandomAccessSource.get():
# Problematic frame:
# v  ~StubRoutines::jbyte_disjoint_arraycopy

siginfo: si_signo: 7 (SIGBUS), si_code: 2 (BUS_ADRERR), si_addr: 0x00007f81e90a3000

Stack: [0x00007f81a3352000,0x00007f81a3453000],  sp=0x00007f81a344fc50,  free space=1015k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
v  ~StubRoutines::jbyte_disjoint_arraycopy
J 140012 C2 com.itextpdf.text.io.IndependentRandomAccessSource.get(J[BII)I (16 bytes) @ 0x00007f824b98bd9a [0x00007f824b98ba20+0x37a]
J 106475 C2 com.itextpdf.text.pdf.RandomAccessFileOrArray.readFully([BII)V (45 bytes) @ 0x00007f8252b6f3fc [0x00007f8252b6f020+0x3dc]
J 125862 C2 com.itextpdf.text.pdf.RandomAccessFileOrArray.readFully([B)V (9 bytes) @ 0x00007f8251ff37d8 [0x00007f8251ff37a0+0x38]
j  com.itextpdf.text.pdf.PdfReader.getStreamBytesRaw(Lcom/itextpdf/text/pdf/PRStream;Lcom/itextpdf/text/pdf/RandomAccessFileOrArray;)[B+39
j  com.itextpdf.text.pdf.PdfReader.getStreamBytesRaw(Lcom/itextpdf/text/pdf/PRStream;)[B+14
j  com.itextpdf.text.pdf.PRStream.toPdf(Lcom/itextpdf/text/pdf/PdfWriter;Ljava/io/OutputStream;)V+1
J 138538 C2 com.itextpdf.text.pdf.PdfWriter$PdfBody.add(Lcom/itextpdf/text/pdf/PdfObject;IIZ)Lcom/itextpdf/text/pdf/PdfIndirectObject; (142 bytes) @ 0x00007f825814a4e4 [0x00007f8258149a60+0xa84]
...
  • JVM crash in com.itextpdf.io.source.FileChannelRandomAccessSource.get():
# Problematic frame:
# v  ~BufferBlob::StubRoutines (2)

siginfo: si_signo: 7 (SIGBUS), si_code: 2 (BUS_ADRERR), si_addr: 0x00007fe89c3181ba

Stack: [0x00007fe830b24000,0x00007fe830c25000],  sp=0x00007fe830c210e0,  free space=1012k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
v  ~BufferBlob::StubRoutines (2)
J 9632 C2 com.itextpdf.io.source.FileChannelRandomAccessSource.get(J[BII)I (14 bytes) @ 0x00007feac18ad53d [0x00007feac18ad2e0+0x25d]
J 6726 C2 com.itextpdf.io.source.GetBufferedRandomAccessSource.get(J)I (80 bytes) @ 0x00007feac25aa9ec [0x00007feac25aa940+0xac]
J 14684 C2 com.itextpdf.io.source.PdfTokenizer.read()I (8 bytes) @ 0x00007feac278cdc8 [0x00007feac278cd60+0x68]
j  com.itextpdf.io.source.PdfTokenizer.readString(I)Ljava/lang/String;+16
j  com.itextpdf.io.source.PdfTokenizer.getStartxref()J+46
j  com.itextpdf.kernel.pdf.PdfReader.readXref()V+8
j  com.itextpdf.kernel.pdf.PdfReader.readPdf()V+32
...
  • JVM crash in com.itextpdf.io.source.FileChannelRandomAccessSource.get():
# Problematic frame:
# v  ~StubRoutines::jbyte_disjoint_arraycopy
...
RAX=0x00007f5b88766f47 is an unknown value
RBX=0x000000077eb74148 is an oop
com.itextpdf.text.io.PagedChannelRandomAccessSource
 - klass: 'com/itextpdf/text/io/PagedChannelRandomAccessSource'

~~~

Environment

  • Red Hat OpenJDK
    • 8
    • 11

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content