From: imtiazqa (@imtiazqa) <noreply+imtiazqa@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] issue #938: pgvector crashes on Debian 12 under QEMU due to unsupported CPU instructions
Date: Tue, 16 Dec 2025 09:05:56 +0000
Message-ID: <gh-pgvector-pgvector-938@github.com> (raw)
On Debian 12 ARM64 running under QEMU, pgvector crash with an “illegal instruction” error. This happens because pgvector attempts to execute CPU instructions that are available on the host but not exposed or supported in the QEMU guest environment.
postgres=# create database test;
CREATE DATABASE
postgres=# \c test
You are now connected to database "test" as user "postgres".
test=# create extension vector;
CREATE EXTENSION
test=# SELECT '[1,2,3]'::vector <=> '[4,5,6]'::vector;
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
The connection to the server was lost. Attempting reset: Failed.
The connection to the server was lost. Attempting reset: Failed.
!?>
The crash occurs during any pgvector operation. And it happens in SPI_execute() with ::vector cast.