extension-template icon indicating copy to clipboard operation
extension-template copied to clipboard

Segmentation Fault

Open Benyaminwasnthere opened this issue 1 year ago • 1 comments

I am receiving segmentation faults when trying to install and load in python import duckdb

Connect to an in-memory DuckDB database with the required configuration

con = duckdb.connect(':memory:', config={'allow_unsigned_extensions': 'true'})

Set the configuration for allowing extensions with metadata mismatch

con.execute("SET allow_extensions_metadata_mismatch=true;")

Install the 'scrooge' extension

con.execute("INSTALL '/home/k8/Documents/quack2/build/release/extension/quack/quack.duckdb_extension';") con.execute("LOAD '/home/k8/Documents/quack2/build/release/extension/quack/quack.duckdb_extension';")

Load the CSV file into DuckDB and execute the query

result = con.execute("select quack('Jane') as result;").fetchone()

print(result)

#close con.close()

Benyaminwasnthere avatar Jul 16 '24 15:07 Benyaminwasnthere

Hi @Benyaminwasnthere could you tell me what happens when you set allow_extensions_metadata_mismatch to false? you are circumventing a check here which checks that the extension matches platform and version of the duckdb instance trying to load it.

samansmink avatar Jul 17 '24 08:07 samansmink