Regression: SIGILL crashing JVM when loading spatial module in DuckDB 2.0.1.0

未關閉
#1,007 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
55/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
java, linux
領域
backend, database

研究方向

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,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

duckdb/duckdb-java 的其他 Issue

查看 duckdb/duckdb-java 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。