Seems that duckdb sources is not bundled with jemalloc. https://github.com/duckdb/duckdb/discussions/13075 It could be the reason of some memory issues, e.g. https://github.com/duckdb/duckdb/issues/9712