Add comment with workaround for PostgreSQL crash with pgvector v0.6.1 on ARM64
@sahilds1 is already working on this.
Since Sep 18, 2025.
Assessment
This issue has not been assessed yet.
Description
Bug Report: PostgreSQL Segmentation Fault with pgvector v0.6.1 on ARM64
Summary
PostgreSQL crashes with segmentation fault when executing vector similarity queries using pgvector v0.6.1 on ARM64 architecture causing chatbot functionality to fail.
Environment
- OS: Linux (Docker container)
- Architecture: aarch64 (ARM64)
- PostgreSQL Version: 15.14
- pgvector Version: v0.6.1
- Application: Django backend with RAG embeddings feature
Issue Description
The PostgreSQL database process terminates with signal 11 (segmentation fault) when executing vector similarity searches using the <-> operator on embedding vectors.
Error Details
2025-08-19 23:58:53.756 UTC [1] LOG: server process (PID 65) was terminated by signal 11: Segmentation fault
2025-08-19 23:58:53.756 UTC [1] DETAIL: Failed process was running: SELECT "api_embeddings"."id", ... ("api_embeddings"."embedding_sentence_transformers" <-> '[vector_data...]') AS "distance" FROM "api_embeddings"
Reproduction Steps
- Build custom PostgreSQL Docker image with pgvector v0.6.1 on ARM64
- Execute vector similarity query using
<->operator - Database crashes with segmentation fault
Build Configuration
Dockerfile:
FROM postgres:15
RUN apt-get update && apt-get install -y ca-certificates git build-essential postgresql-server-dev-15
RUN cd /tmp && git clone --branch v0.6.1 https://github.com/pgvector/pgvector.git && cd pgvector && make && make install
Additional Context
- ARM64 compatibility warning observed:
Can't read MIDR_EL1 sysfs entry - PostgreSQL automatically recovers after crash
- Issue is specific to ARM64 architecture
- No issues reported on x86_64
Root Cause
pgvector v0.6.1 has known stability issues with ARM64 processors, particularly affecting vector similarity operations.
Solution
Replace custom PostgreSQL build with official pgvector image:
services:
db:
image: pgvector/pgvector:pg15
# ... rest of configuration
Status
RESOLVED - Using official pgvector Docker image eliminates segmentation faults and restores full functionality.
Impact
- Severity: High (database crashes)
- Scope: ARM64 deployments using custom pgvector builds
- Workaround: Use official pgvector/pgvector:pg15 Docker image
- Alternative: Downgrade to pgvector v0.5.1 for custom builds
- Dominant language
- TypeScript
- Stars
- 21
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from CodeForPhilly/balancer-main
-
Bug
Difficulty 1/5 1-3 hours Newbie friendliness 72/100
CodeForPhilly/balancer-main#509 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 76/100
CodeForPhilly/balancer-main#503 ·
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
CodeForPhilly/balancer-main#502 · 1 comment ·
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
CodeForPhilly/balancer-main#488 ·
-
Documentation
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
CodeForPhilly/balancer-main#478 ·
All issues in CodeForPhilly/balancer-main
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
opengovsg/FormSG#10118 · 1 comment ·
Maintainers usually reply within 1 day
-
ai-driven-qa bug claude
Difficulty 1/5 Under an hour Newbie friendliness 75/100
linagora/twake-calendar-frontend#1434 · 1 comment ·
Maintainers usually reply within 1 day
-
check:passed streams:add
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
iptv-org/iptv#52824 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 Half a day Newbie friendliness 78/100
jaegertracing/jaeger-ui#4512 ·
Maintainers usually reply within 1 day
-
area:ide documentation enhancement platform:macos platform:vscode
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
anthropics/claude-code#97389 ·
Maintainers usually reply within 1 day