Crash when using jdbc extension function `REPLICATE`
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
Start with the reproducer in the issue and run it against sqlite-jdbc 3.49.1.0 on the reported Ubuntu x86_64 environment; the crash occurs in a query using REPLICATE with a RIGHT JOIN. Trace the JDBC extension function and native SQLite call paths to find where SIGSEGV occurs. Done means the reproducer returns a result or raises an exception instead of crashing.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
A fatal error has been detected by the Java Runtime Environment. SQLite exits with SIGSEGV. SQLite originally does not support REPLICATE, so I suppose there might be some issue in sqlite-jdbc.
To Reproduce
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class Reproduce {
public static void main(String[] args) {
try (Connection connection = DriverManager.getConnection("jdbc:sqlite::memory:");) {
Statement statement = connection.createStatement();
statement.executeUpdate("CREATE TABLE t0(c0 FLOAT, c1 INT DEFAULT (ABS(-1)), PRIMARY KEY(c0))");
statement.executeUpdate("INSERT INTO t0(c1, c0) VALUES (582293937, '^?V%'), ('73056190', '^')");
ResultSet rs = statement.executeQuery(
"SELECT * FROM t0 RIGHT JOIN (SELECT 2025567911 AS col0 FROM t0 WHERE ((0.57721)<(t0.c0))) AS sub0 ON REPLICATE(sub0.col0, t0.c1)");
while (rs.next()) {
// read the result set
}
} catch (SQLException e) {
e.printStackTrace(System.err);
}
}
}
then
javac Reproduce.java
java -classpath ".:sqlite-jdbc-3.49.1.0.jar" Reproduce
Expected behavior
Raise an exception or return a result.
Logs
If applicable, provide logs.
Environment (please complete the following information):
- OS: Ubuntu 22.04
- CPU architecture: x86_64
- sqlite-jdbc version 3.49.1.0
Additional context
Add any other context about the problem here.
- 主要言語
- Java
- スター
- 3.3k
- フォーク
- 676
- 平均マージ
- 1日 15時間
- マージ済み PR(30日)
- 18
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
xerial/sqlite-jdbc のほかの issue
-
triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
xerial/sqlite-jdbc#1515 ·
メンテナーはふだん 1 日以内に返信
-
triage
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
xerial/sqlite-jdbc#1514 ·
メンテナーはふだん 1 日以内に返信
-
triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
xerial/sqlite-jdbc#1513 ·
メンテナーはふだん 1 日以内に返信
-
triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
xerial/sqlite-jdbc#1512 ·
メンテナーはふだん 1 日以内に返信
-
SIGSEGV (exit 134) in bundled `rightstr()` when the length argument is a large negative number対応中かも @sarthakdev143-lite が 2 日前に担当しました。 オープンhelp wanted impacts:JNI
難易度 4/5 1〜2日 初心者へのやさしさ 38/100
xerial/sqlite-jdbc#1508 ·
メンテナーはふだん 1 日以内に返信
xerial/sqlite-jdbc の issue をすべて見る
似ている issue
-
vips-drift
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
Stirling-Tools/JPDFium#300 ·
メンテナーはふだん 1 日以内に返信
-
hermes-queue
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
chrisalunlloyd2-sudo/mindpalace#403 ·
メンテナーはふだん 1 日以内に返信
-
Guidelines: document how to build a use case against a local, unpublished Flow/browserless-test change対応中かも @totally-not-ai が今日担当しました。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
vaadin/use-cases#452 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area/storage area/storage/sql
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Apicurio/apicurio-registry#11159 ·
メンテナーはふだん 1 日以内に返信
-
Area/Configuration Type/Improvement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ballerina-platform/static-code-analysis-tool#217 ·
メンテナーはふだん 1 日以内に返信