duckdb / duckdb/duckdb-node

NodeJS 'duckdb' module SEGVs

Open
#69 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
91
Forks
36
PR merge metrics
No merged PRs in 30d

Description

### What happens?

This NodeJS code that instantiates the DuckDB object SEGVs:
```
const duckdb = require("duckdb");
const db = new duckdb.Database(":memory:", {
"access_mode": "READ_WRITE",
"threads": "1"
}, (err) => {
console.log(err);
});
```

### To Reproduce

```
- Run 'npm install --save duckdb'
- Create this trivial program as duckdb.js:
const duckdb = require("duckdb");
const db = new duckdb.Database(":memory:", {
"access_mode": "READ_WRITE",
"threads": "1"
}, (err) => {
console.log(err);
});
- Run 'node duckdb.js' which will fail with a segmentation fault.
```

This bug report is forwarded from [this](https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276952) FreeBSD bug report.

[Stack trace](https://bz-attachments.freebsd.org/attachment.cgi?id=248320).

### OS:

FreeBSD 14.0

### DuckDB Version:

Not sure what version NodeJS uses.

### DuckDB Client:

NodeJS

### Full Name:

Yuri Victorovich

### Affiliation:

n/a

### Have you tried this on the latest [nightly build](https://duckdb.org/docs/installation/?version=main)?

I have tested with a nightly build

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

- [X] Yes, I have

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.