pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
[pgvector/pgvector] issue #938: pgvector crashes on Debian 12 under QEMU due to unsupported CPU instructions
3+ messages / 2 participants
[nested] [flat]

* [pgvector/pgvector] issue #938: pgvector crashes on Debian 12 under QEMU due to unsupported CPU instructions
@ 2025-12-16 09:05 "imtiazqa (@imtiazqa)" <noreply+imtiazqa@github.com>
  0 siblings, 0 replies; 3+ messages in thread

From: imtiazqa (@imtiazqa) @ 2025-12-16 09:05 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

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.

^ permalink  raw  [nested|flat] 3+ messages in thread

* Re: [pgvector/pgvector] issue #938: pgvector crashes on Debian 12 under QEMU due to unsupported CPU instructions
@ 2025-12-16 09:25 ` "ankane (@ankane)" <noreply+ankane@github.com>
  1 sibling, 0 replies; 3+ messages in thread

From: ankane (@ankane) @ 2025-12-16 09:25 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hi @imtiazqa, see the docs on [how to compile for portability](https://github.com/pgvector/pgvector?tab=readme-ov-file#portability).

^ permalink  raw  [nested|flat] 3+ messages in thread

* Re: [pgvector/pgvector] issue #938: pgvector crashes on Debian 12 under QEMU due to unsupported CPU instructions
@ 2025-12-16 09:25 ` "ankane (@ankane)" <noreply+ankane@github.com>
  1 sibling, 0 replies; 3+ messages in thread

From: ankane (@ankane) @ 2025-12-16 09:25 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

@ankane closed this.

^ permalink  raw  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2025-12-16 09:25 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-12-16 09:05 [pgvector/pgvector] issue #938: pgvector crashes on Debian 12 under QEMU due to unsupported CPU instructions "imtiazqa (@imtiazqa)" <noreply+imtiazqa@github.com>
2025-12-16 09:25 ` "ankane (@ankane)" <noreply+ankane@github.com>
2025-12-16 09:25 ` "ankane (@ankane)" <noreply+ankane@github.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox