"malloc: Heap corruption detected" after running merge_adjacent_files() on PG+S3 partitioned ducklake · Issue #87 · duckdb/ducklake · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've managed to reproduce this a couple of times, but only with my data:
Create a new ducklake (PG catalog, S3 object store partitioned on 2 fields)
Copy in ~40GB of data from an iceberg lake (INSERT TO ... FROM s3tables WHERE ..)
Everything works fine - at this point I can query etc and get the expected results
run CALL main.merge_adjacent_files() - appears to succeed but does nothing
All subsequent queries to the ducklake cause the process to crash with a malloc error below
duckdb(36187,0x16b99f000) malloc: Heap corruption detected, free list is damaged at 0x6000037c53e0
*** Incorrect guard value: 105553178690160
duckdb(36187,0x16b99f000) malloc: *** set a breakpoint in malloc_error_break to debug
zsh: abort duckdb
This happens whether I do any of these queries from my local mac or remote ubuntu.
Confusingly, I exported the contents of pg before and after, and none of the data appears different. Looking through S3, I can't see any modified files.
Happy to run this a couple of times if you let me know how to get useful debugging info out of duckdb
The text was updated successfully, but these errors were encountered:
Does this behavior only happen when using Postgres/S3, or does it also happen locally when using DuckDB + local storage?
Does the behavior happen after reconnecting as well? Or does calling merge_adjacent_files only influence the running process, and the behavior is fine again after reconnecting?
The behaviour happens when S3 is used as the storage - it did not appear when I used the SSD as storage (using both duckdb and postgres as the catalog).
When it happens, it spoils the ducklake completely - after restarting the process, it will crash any time the ducklake is queried.
Uh oh!
There was an error while loading. Please reload this page.
I've managed to reproduce this a couple of times, but only with my data:
INSERT TO ... FROM s3tables WHERE ..
)CALL main.merge_adjacent_files()
- appears to succeed but does nothingThis happens whether I do any of these queries from my local mac or remote ubuntu.
Confusingly, I exported the contents of pg before and after, and none of the data appears different. Looking through S3, I can't see any modified files.
Happy to run this a couple of times if you let me know how to get useful debugging info out of duckdb
The text was updated successfully, but these errors were encountered: