From: BESTLyc (@BESTLyc) <noreply+BESTLyc@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] issue #874: The server terminated abnormally when SELECT vector using <=>
Date: Tue, 15 Jul 2025 06:57:51 +0000
Message-ID: <gh-pgvector-pgvector-874@github.com> (raw)
Here is my env.
<img width="836" height="186" alt="Image" src="https://github.com/user-attachments/assets/12399008-e8d2-436d-8f05-a5ab814c9ae7"; />
I running the same pgsql in another server which with inter CPU is ok.But running on my AMD E-350 Processor failed.Is it a compatibility issue?
Here is the client log
```
psql (15.8 (Debian 15.8-0+deb12u1))
Type "help" for help.
postgres=# EXPLAIN ANALYZE
WITH target AS (
SELECT vector FROM face_vector_1 WHERE face_id = 83466
)
SELECT
f.face_id,
f.vector <=> t.vector AS distance
FROM face_vector_1 f, target t
ORDER BY distance
LIMIT 5;
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.
!?>
```
Here is the server log
```
2025-07-15 14:50:18.517 CST [73108] LOG: server process (PID 87301) was terminated by signal 4: Illegal instruction
2025-07-15 14:50:18.517 CST [73108] DETAIL: Failed process was running: EXPLAIN ANALYZE
WITH target AS (
SELECT vector FROM face_vector_1 WHERE face_id = 83466
)
SELECT
f.face_id,
f.vector <=> t.vector AS distance
FROM face_vector_1 f, target t
ORDER BY distance
LIMIT 5;
2025-07-15 14:50:18.518 CST [73108] LOG: terminating any other active server processes
2025-07-15 14:50:18.531 CST [87302] FATAL: the database system is in recovery mode
2025-07-15 14:50:18.543 CST [73108] LOG: all server processes terminated; reinitializing
2025-07-15 14:50:18.635 CST [87303] LOG: database system was interrupted; last known up at 2025-07-15 14:41:12 CST
2025-07-15 14:50:18.761 CST [87303] LOG: database system was not properly shut down; automatic recovery in progress
2025-07-15 14:50:18.778 CST [87303] LOG: redo starts at 1/83C9C4D8
2025-07-15 14:50:18.778 CST [87303] LOG: invalid record length at 1/83C9C510: wanted 24, got 0
2025-07-15 14:50:18.779 CST [87303] LOG: redo done at 1/83C9C4D8 system usage: CPU: user: 0.00 s, system: 0.00 s, elapsed: 0.00 s
2025-07-15 14:50:18.806 CST [87304] LOG: checkpoint starting: end-of-recovery immediate wait
2025-07-15 14:50:18.875 CST [87304] LOG: checkpoint complete: wrote 3 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.002 s, sync=0.016 s, total=0.085 s; sync files=2, longest=0.009 s, average=0.008 s; distance=0 kB, estimate=0 kB
2025-07-15 14:50:18.901 CST [73108] LOG: database system is ready to accept connections
```