Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

BUG postgres terminated by signal 6: Aborted #1205

Open
Labels
bugSomething isn't working
@ns1000

Description

@ns1000

I found a specific query that causes a crash in postgres.

I tested this bug on both postgres 15/16 on my debian installation and it also crashes the postgres in the latest docker ( ghcr.io/postgresml/postgresml:2.7.3 )

To reproduce follow the following sequence

SELECTpgml.load_dataset('ag_news');DROPTABLE phrases2;CREATETABLEphrases2 (  idserialPRIMARY KEY,  phrasetext,  embedding vector(384));insert into phrases2(phrase,embedding)selecttext,pgml.embed('all-MiniLM-L6-v2',text)::vectorfrompgml.ag_newslimit10000;

After the import is complete to phrases2. Exit the psql client. And start up the psql new. Then run this query:

WITH EmbeddingsAS (SELECTpgml.embed('all-MiniLM-L6-v2',p.phrase)AS embedding,    idFROM    phrases2 plimit45)SELECTp.id,p.phrase,1- (p.embedding<=>e.embedding::vector)AS similarityFROM  Embeddings eJOIN  phrases2 pON trueORDER BY  (p.embedding<=>e.embedding::vector)limit10;

This will create the following log files and an abort

: CommandLine Error: Option 'nvptx-no-f16-math' registered more than once!LLVM ERROR: inconsistency in registered CommandLine options2023-11-29 20:30:51.296 UTC [29] LOG:  server process (PID 162) was terminated by signal 6: Aborted

I found that initializing the embedding first mitigates the bug. So if you start psql client and then run:

SELECTpgml.embed('all-MiniLM-L6-v2','initialize the framework')::vector;WITH EmbeddingsAS (SELECTpgml.embed('all-MiniLM-L6-v2',p.phrase)AS embedding,    idFROM    phrases2 plimit45)SELECTp.id,p.phrase,1- (p.embedding<=>e.embedding::vector)AS similarityFROM  Embeddings eJOIN  phrases2 pON trueORDER BY  (p.embedding<=>e.embedding::vector)limit10;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp