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

Offen
#1,007 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
55/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
java, linux
Bereich
backend, database

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
C++
Sterne
129
Forks
90
Ø Merge
5 Std. 34 Min.
Gemergte PRs (30 T.)
56

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus duckdb/duckdb-java

Alle Issues in duckdb/duckdb-java

Ähnliche Issues

Weitere Issues zu C++

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.