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

Abierto
#1,007 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
java, linux
Área
backend, database

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
C++
Estrellas
129
Forks
90
Merge medio
5 h 34 min
PR fusionados (30 d)
56

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de duckdb/duckdb-java

Todos los issues de duckdb/duckdb-java

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.