Regression: SIGILL crashing JVM when loading spatial module in DuckDB 2.0.1.0
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
Start by reproducing the crash with the provided Java program and DuckDB JDBC 2.0.1.0 on Ubuntu 26.04, then inspect the attached hs_err log for the native crash details. Compare the same spatial extension load with a 1.x driver to narrow down the regression; done means loading spatial no longer triggers SIGILL in the reported setup.
由索引模型根據 Issue 內容生成。
描述
Create this simple Java program:
import java.sql.*;
void main() throws Exception {
try (
Connection c = DriverManager.getConnection("jdbc:duckdb:~/duckdb.db");
Statement s = c.createStatement();
) {
s.executeUpdate("install spatial");
s.executeUpdate("load spatial");
}
}
Now run it like so:
java -cp duckdb_jdbc-2.0.1.0.jar Test.java
This produces the following crash output:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGILL (0x4) at pc=0x00007c79efe15026, pid=136403, tid=136404
#
# JRE version: OpenJDK Runtime Environment (25.0.5.1+2) (build 25.0.5.1+2-1-26.04.1-Ubuntu)
# Java VM: OpenJDK 64-Bit Server VM (25.0.5.1+2-1-26.04.1-Ubuntu, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C [spatial.duckdb_extension+0x1215026] _GLOBAL__sub_I_spatial_join_optimizer.cpp+0x66
#
# Core dump will be written. Default location: Determined by the following: "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -F%F -- %E" (alternatively, falling back to /home/lukaseder/core.136403)
#
# An error report file with more information is saved as:
# /home/lukaseder/hs_err_pid136403.log
#
# If you would like to submit a bug report, please visit:
# https://bugs.launchpad.net/ubuntu/+source/openjdk-25
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted (core dumped) java -cp duckdb_jdbc-2.0.1.0.jar Test.java
Attached the core dump: hs_err_pid136403.log
I'm running on this Linux distribution:
lukaseder@dg-test-26:~$ lsb_release -irc
Distributor ID: Ubuntu
Release: 26.04
Codename: resolute
This is a 2.x regression as the issue didn't appear with 1.x
- 主要語言
- C++
- 星號
- 129
- 分支
- 90
- 平均合併
- 5 小時 34 分鐘
- 30 天內合併 PR
- 56
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
duckdb/duckdb-java 的其他 Issue
-
難度 5/5 一週以上 新手友好度 35/100
duckdb/duckdb-java#837 · 4 則留言 ·
維護者通常 1 天內回覆
-
executeBatch()` on a prepared INSERT runs s are ~1–2 orders of magnitude slower than the Appender未關閉
難度 5/5 一週以上 新手友好度 42/100
duckdb/duckdb-java#815 · 1 則留言 ·
維護者通常 1 天內回覆
-
capi_v2
難度 5/5 一週以上 新手友好度 35/100
duckdb/duckdb-java#806 · 1 則留言 ·
維護者通常 1 天內回覆
-
Optimizer incorrectly rewrites window plans involving arrow scan inputs to self-joins with multiple refs to the scan可能已有人在做 @randalloveson 於 165 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 35/100
duckdb/duckdb-java#713 ·
維護者通常 1 天內回覆
-
難度 3/5 1-2 天 新手友好度 52/100
duckdb/duckdb-java#679 · 2 則留言 ·
維護者通常 1 天內回覆
查看 duckdb/duckdb-java 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 1 天內回覆
-
component: tabs platform: macOS
難度 2/5 1-3 小時 新手友好度 72/100
zen-browser/desktop#16860 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
windirstat/windirstat#776 ·
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
godotengine/godot#125913 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 90/100