Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DuckDB crashes assigning string when opening database. #151

Open
2 tasks done
fleitz opened this issue Feb 10, 2025 · 0 comments
Open
2 tasks done

DuckDB crashes assigning string when opening database. #151

fleitz opened this issue Feb 10, 2025 · 0 comments

Comments

@fleitz
Copy link

fleitz commented Feb 10, 2025

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<char> 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

oven-sh/bun#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?

  • Yes, I have

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

  • Yes, I have
@szarnyasg szarnyasg transferred this issue from duckdb/duckdb Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant