adoptium-support icon indicating copy to clipboard operation
adoptium-support copied to clipboard

SQL Lite driver crashes with Java 21

Open karianna opened this issue 10 months ago • 9 comments

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x00007ff3fa90fe17, pid=58512, tid=58513

JRE version: OpenJDK Runtime Environment (21.0.2+13) (build 21.0.2+13-Ubuntu-120.04.1) Java VM: OpenJDK 64-Bit Server VM (21.0.2+13-Ubuntu-120.04.1, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64) Problematic frame: C [sqlite-3.40.0.0-c0fa26ba-7228-4bed-ac22-ac902a2d1bcc-libsqlitejdbc.so+0x11e17]

Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /home/esraa/core.58512)

If you would like to submit a bug report, please visit: Unknown The crash happened outside the Java Virtual Machine in native code. See problematic frame for where to report the bug.

Originally posted by @esraaelmligy in https://github.com/adoptium/adoptium-support/issues/1051#issuecomment-2041362642

karianna avatar Apr 08 '24 03:04 karianna

@esraaelmligy Do you have some more of the log/crash output you can share?

karianna avatar Apr 08 '24 03:04 karianna

hs_err_pid24606.log

Here is a complete log file

esraaelmligy avatar Apr 08 '24 07:04 esraaelmligy

@esraaelmligy That is a bug in the SQLlite driver that is propagating back through to Java causing it to crash. I recommend you pudate sqllite to the latest (3.45.2) and see if that resolves the issue.

karianna avatar Apr 08 '24 07:04 karianna

I did as you requested and re ran after updating to sqlite 3.45 but still face the same error

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x00007fde68a24e17, pid=10910, tid=10911

JRE version: OpenJDK Runtime Environment (21.0.2+13) (build 21.0.2+13-Ubuntu-120.04.1) Java VM: OpenJDK 64-Bit Server VM (21.0.2+13-Ubuntu-120.04.1, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64) Problematic frame: C [sqlite-3.40.0.0-3f8024a3-42b2-40f6-b454-c1cc0eed22b8-libsqlitejdbc.so+0x11e17]

Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /path/to/core.10910)

An error report file with more information is saved as: /home/esraa/hs_err_pid10910.log [1748.741s][warning][os] Loading hsdis library failed

If you would like to submit a bug report, please visit: Unknown The crash happened outside the Java Virtual Machine in native code. See problematic frame for where to report the bug.

esraaelmligy avatar Apr 08 '24 08:04 esraaelmligy

Can you post the hs_err_pid log from that last run?

karianna avatar Apr 09 '24 23:04 karianna

Sorry for the late reply, it was holiday week in my country.

I did a new run and here is the log:

hs_err_pid7527.log

esraaelmligy avatar Apr 15 '24 08:04 esraaelmligy

The log file has: tmp/sqlite-3.40.0.0-971f0b84-5fc1-4771-951a-2c2ec7d31e06-libsqlitejdbc.so which indicates that it is still referencing the old sqllite version

karianna avatar Apr 15 '24 19:04 karianna

Okay so i realized that the jar that crashes has its own bundled sqlite-jdbc version, is there a way to fix that?

esraaelmligy avatar Apr 18 '24 07:04 esraaelmligy

Okay so i realized that the jar that crashes has its own bundled sqlite-jdbc version, is there a way to fix that?

You'll want to speak to the authors and have them upgrade. You can also try to use shading or classloading isolcation and try to get your SQLlite version higher up in the CLASSPATH

karianna avatar Apr 18 '24 12:04 karianna

We are marking this issue as stale because it has not been updated for a while. This is just a way to keep the support issues queue manageable. It will be closed soon unless the stale label is removed by a committer, or a new comment is made.

github-actions[bot] avatar Jul 18 '24 00:07 github-actions[bot]