DuckDB crashes assigning string when opening database.
- Dominant language
- C++
- Stars
- 91
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
Description
### What happens?
DuckDB crashes assinging a string when opening databases when using bun.
```
__memmove_evex_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:872
872 ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: No such file or directory.
(gdb) backtrace
#0 __memmove_evex_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:872
duckdb/duckdb#1 0x00007fff9c39b8d0 in std::string::_Rep::_M_clone(std::allocator const&, unsigned long) () from /lib/x86_64-linux-gnu/libstdc++.so.6
duckdb/duckdb#2 0x00007fff9c39c344 in std::string::assign(std::string const&) () from /lib/x86_64-linux-gnu/libstdc++.so.6
duckdb/duckdb#3 0x00007fff9dc73d12 in duckdb::DatabaseInstance::Configure(duckdb::DBConfig&, char const*) ()
from /home/fred/src/duckdb_crash/node_modules/@duckdb/node-bindings-linux-x64/libduckdb.so
duckdb/duckdb#4 0x00007fff9dc7dbef in duckdb::DatabaseInstance::Initialize(char const*, duckdb::DBConfig*) ()
from /home/fred/src/duckdb_crash/node_modules/@duckdb/node-bindings-linux-x64/libduckdb.so
duckdb/duckdb#5 0x00007fff9dc7e707 in duckdb::DuckDB::DuckDB(char const*, duckdb::DBConfig*) ()
from /home/fred/src/duckdb_crash/node_modules/@duckdb/node-bindings-linux-x64/libduckdb.so
duckdb/duckdb#6 0x00007fff9dbaafc6 in duckdb_open_internal(duckdb::DBInstanceCacheWrapper*, char const*, _duckdb_database**, _duckdb_config*, char**) ()
from /home/fred/src/duckdb_crash/node_modules/@duckdb/node-bindings-linux-x64/libduckdb.so
duckdb/duckdb#7 0x00007fffa802a741 in OpenWorker::Execute() () from /home/fred/src/duckdb_crash/node_modules/@duckdb/node-bindings-linux-x64/duckdb.node
duckdb/duckdb#8 0x00007fffa802a8c5 in Napi::AsyncWorker::OnAsyncWorkExecute(napi_env__*, void*) ()
from /home/fred/src/duckdb_crash/node_modules/@duckdb/node-bindings-linux-x64/duckdb.node
duckdb/duckdb#9 0x000000000308aff9 in ?? ()
duckdb/duckdb#10 0x0000000000000000 in ?? ()
```
### To Reproduce
https://github.com/oven-sh/bun/issues/17216
```
bun init
bun add @duckdb/node-api
```
```
gdb --args bun run index.ts
```
Will crash without GDB as well.
### OS:
Linux
### DuckDB Version:
1.2
### DuckDB Client:
@duckdb/node-api
### Hardware:
Core i9-11900KF, Windows 11 23H2, WSL2, Ubuntu 22.04
### Full Name:
Fred Leitz
### Affiliation:
Fred Leitz
### 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?
- [x] Yes, I have
### Did you include all relevant configuration (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?
- [x] Yes, I have
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.