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 小时 新手友好度 78/100
godotengine/godot#125913 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100
-
期待增加虚线线条样式未关闭
难度 2/5 1-3 小时 新手友好度 62/100
-
bug
难度 1/5 1 小时以内 新手友好度 94/100
vllm-project/vllm#70568 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
mw00/project-maya#1368 ·
维护者通常 2 天内回复