Skip to content

INTERNAL Error: Attempted to dereference unique_ptr that is NULL! #13841

@darthf1

Description

@darthf1

What happens?

When I run a query on a specific CSV, I get:

INTERNAL Error: Attempted to dereference unique_ptr that is NULL!
This error signals an assertion failure within DuckDB. This usually occurs due to unexpected conditions or errors in the program's logic.
For more information, see https://duckdb.org/docs/dev/internal_errors

To Reproduce

echo "column1,column2\nyes,no\nyes,yes,yes\nyes" > error.csv
SELECT * FROM read_csv('error.csv', rejects_table='rejects_table');

(if you remove rejects_table='rejects_table', no error is thrown)

The result with duckdb 1.0.0:

D SELECT * FROM read_csv('error.csv', rejects_table='rejects_table');
┌─────────┬─────────┐
│ column1 │ column2 │
│ varchar │ varchar │
├─────────┼─────────┤
│ yes     │ no      │
└─────────┴─────────┘

OS:

x86_x64

DuckDB Version:

1.1.0

DuckDB Client:

Python,

Hardware:

No response

Full Name:

Frank Verschuren

Affiliation:

1 Giant Leap Solutions BV

What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.

I have tested with a stable release

Did you include all relevant data sets for reproducing the issue?

Yes

Did you include all code required to reproduce the issue?

  • Yes, I have

Did you include all relevant configuration (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?

  • Yes, I have

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions