adoptium-support
adoptium-support copied to clipboard
SQL Lite driver crashes with Java 21
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
@esraaelmligy Do you have some more of the log/crash output you can share?
@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.
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.
Can you post the hs_err_pid log from that last run?
Sorry for the late reply, it was holiday week in my country.
I did a new run and here is the log:
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
Okay so i realized that the jar that crashes has its own bundled sqlite-jdbc version, is there a way to fix that?
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
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.