sqllite-jdbc crash on linux

Issue #219 new
Anonymous created an issue

Hi I have java web application. When we are running load test with my application . it is crashing in below stack. I am using sqlite-jdbc-3.8.11.2.jar. I tried latest version 3.15.1. but same issue

Stack: [0x00007f2966ff0000,0x00007f29670f1000], sp=0x00007f29670edff8, free space=1015k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [sqlite-3.8.11.2-a3c77772-0a7f-489d-8be5-4e45110f29d5-libsqlitejdbc.so+0x102fd]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) J 2914 org.sqlite.core.NativeDB.step(J)I (0 bytes) @ 0x00007f29b1bac5d8 [0x00007f29b1bac5a0+0x38]

Comments (5)

  1. Saravanan Balasubramanian

    This issue is only happening on load 4 multi-threaded instances reading same DB. A fatal error has been detected by the Java Runtime Environment:

    SIGSEGV (0xb) at pc=0x00007f2974eda2fd, pid=31647, tid=139815799424768

    JRE version: Java(TM) SE Runtime Environment (8.0_60-b27) (build 1.8.0_60-b27)

    Java VM: Java HotSpot(TM) 64-Bit Server VM (25.60-b23 mixed mode linux-amd64 compressed oops)

    Problematic frame:

    C [sqlite-3.8.11.2-a3c77772-0a7f-489d-8be5-4e45110f29d5-libsqlitejdbc.so+0x102fd]

    Core dump written. Default location: /local/mnt//core or core.31647

    If you would like to submit a bug report, please visit:

    http://bugreport.java.com/bugreport/crash.jsp

    The crash happened outside the Java Virtual Machine in native code.

    See problematic frame for where to report the bug.

  2. Saravanan Balasubramanian

    it is easy re-produces

    glibc detected /usr/bin/java: free(): invalid pointer: 0x00007fdfc00ec7f8 *** ======= Backtrace: ========= /lib64/libc.so.6[0x342b675f4e] /lib64/libc.so.6[0x342b678cad] /local/mnt/xtrat/xt-uds-2/tmp/sqlite-3.8.11.2-340ba581-a154-4732-9702-1f9087145a47-libsqlitejdbc.so(+0xc235)[0x7fe364b44235] /local/mnt/xtrat/xt-uds-2/tmp/sqlite-3.8.11.2-340ba581-a154-4732-9702-1f9087145a47-libsqlitejdbc.so(+0xe61f)[0x7fe364b4661f] /local/mnt/xtrat/xt-uds-2/tmp/sqlite-3.8.11.2-340ba581-a154-4732-9702-1f9087145a47-libsqlitejdbc.so(+0xe803)[0x7fe364b46803] /local/mnt/xtrat/xt-uds-2/tmp/sqlite-3.8.11.2-340ba581-a154-4732-9702-1f9087145a47-libsqlitejdbc.so(+0xe9ad)[0x7fe364b469ad] /local/mnt/xtrat/xt-uds-2/tmp/sqlite-3.8.11.2-340ba581-a154-4732-9702-1f9087145a47-libsqlitejdbc.so(+0x44dd2)[0x7fe364b7cdd2] /local/mnt/xtrat/xt-uds-2/tmp/sqlite-3.8.11.2-340ba581-a154-4732-9702-1f9087145a47-libsqlitejdbc.so(+0x44efe)[0x7fe364b7cefe] /local/mnt/xtrat/xt-uds-2/tmp/sqlite-3.8.11.2-340ba581-a154-4732-9702-1f9087145a47-libsqlitejdbc.so(+0x45036)[0x7fe364b7d036] /local/mnt/xtrat/xt-uds-2/tmp/sqlite-3.8.11.2-340ba581-a154-4732-9702-1f9087145a47-libsqlitejdbc.so(+0x545fd)[0x7fe364b8c5fd] /local/mnt/xtrat/xt-uds-2/tmp/sqlite-3.8.11.2-340ba581-a154-4732-9702-1f9087145a47-libsqlitejdbc.so(Java_org_sqlite_core_NativeDB__1close+0x19)[0x7fe364b41999] [0x7fe389f51514]

  3. Saravanan Balasubramanian

    I am able continually reproduce this crash. I am using java 8 (1.8.60)

    glibc detected /usr/bin/java: free(): invalid pointer: 0x00007f803c1ca6f8 *** ======= Backtrace: ========= /lib64/libc.so.6[0x3bb7475f3e] /lib64/libc.so.6[0x3bb7478d8d] /local/mnt/xtrat/xt-uds-4/tmp/sqlite-3.8.11.2-e0e271e0-bbc3-4b96-8afb-46fbf4d3b6bc-libsqlitejdbc.so(+0xc235)[0x7f82d2efd235] /local/mnt/xtrat/xt-uds-4/tmp/sqlite-3.8.11.2-e0e271e0-bbc3-4b96-8afb-46fbf4d3b6bc-libsqlitejdbc.so(+0xe61f)[0x7f82d2eff61f] /local/mnt/xtrat/xt-uds-4/tmp/sqlite-3.8.11.2-e0e271e0-bbc3-4b96-8afb-46fbf4d3b6bc-libsqlitejdbc.so(+0xe803)[0x7f82d2eff803] /local/mnt/xtrat/xt-uds-4/tmp/sqlite-3.8.11.2-e0e271e0-bbc3-4b96-8afb-46fbf4d3b6bc-libsqlitejdbc.so(+0xe9ad)[0x7f82d2eff9ad] /local/mnt/xtrat/xt-uds-4/tmp/sqlite-3.8.11.2-e0e271e0-bbc3-4b96-8afb-46fbf4d3b6bc-libsqlitejdbc.so(+0x44dd2)[0x7f82d2f35dd2] /local/mnt/xtrat/xt-uds-4/tmp/sqlite-3.8.11.2-e0e271e0-bbc3-4b96-8afb-46fbf4d3b6bc-libsqlitejdbc.so(+0x44efe)[0x7f82d2f35efe] /local/mnt/xtrat/xt-uds-4/tmp/sqlite-3.8.11.2-e0e271e0-bbc3-4b96-8afb-46fbf4d3b6bc-libsqlitejdbc.so(+0x45036)[0x7f82d2f36036] /local/mnt/xtrat/xt-uds-4/tmp/sqlite-3.8.11.2-e0e271e0-bbc3-4b96-8afb-46fbf4d3b6bc-libsqlitejdbc.so(+0x545fd)[0x7f82d2f455fd] /local/mnt/xtrat/xt-uds-4/tmp/sqlite-3.8.11.2-e0e271e0-bbc3-4b96-8afb-46fbf4d3b6bc-libsqlitejdbc.so(Java_org_sqlite_core_NativeDB__1close+0x19)[0x7f82d2efa999] [0x7f831e39a154]

  4. Saravanan Balasubramanian

    Stack: [0x00007faa204fa000,0x00007faa205fb000], sp=0x00007faa205f7868, free space=1014k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [sqlite-3.16.1-d3a80d89-6201-4a2d-a794-383d25742a8f-libsqlitejdbc.so+0xff70]

    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) J 2550 org.sqlite.core.NativeDB.step(J)I (0 bytes) @ 0x00007faa55967958 [0x00007faa55967920+0x38] J 11533 C2 org.sqlite.jdbc3.JDBC3ResultSet.next()Z (132 bytes) @ 0x00007faa56776c1c [0x00007faa56776ba0+0x7c]

  5. Log in to comment