8000 Segmentation fault on `SELECT` · Issue #7551 · duckdb/duckdb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Segmentation fault on SELECT #7551
Closed
Closed
@DerZc

Description

@DerZc

What happens?

The following program triggers a segmentation fault:

CREATE TABLE t0(c0 VARCHAR);
CREATE TABLE t1(c0 DATE);

INSERT INTO t1(c0) VALUES ((TIMESTAMP '1970-01-25 15:59:18'));

INSERT INTO t0(c0) VALUES ((DATE '1969-12-20')), ((TIMESTAMP '1970-01-11 21:25:45')), (DEFAULT), (('1')), (('')), ((TIMESTAMP '1969-12-15 21:35:22'));

CREATE VIEW v0(c0) AS SELECT t1.c0 FROM t1, t0;

SELECT t0.rowid FROM t0, t1 LEFT JOIN v0 ON (1) WHERE t0.c0 >= v0.c0 AND t0.c0 <= v0.c0;

If I remove any value of t0.c0, then can not reproduce this segmentation fault.
And the BETWEEN can also trigger this bug like SELECT t0.rowid FROM t0, t1 LEFT JOIN v0 ON (1) WHERE (t0.c0 BETWEEN v0.c0 AND v0.c0);

To Reproduce

I can reproduce this on the latest commit version 6e908cf

OS:

ubuntu 22.04

DuckDB Version:

6e908cf

DuckDB Client:

CLI

Full Name:

Chi Zhang

Affiliation:

Nanjing University, National University of Singapore

Have you tried this on the latest master branch?

  • I agree

Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?

  • I agree

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0