New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG postgres terminated by signal 6: Aborted #1205
Comments
you saved me with this, thank you! |
My immediate thought goes to parallel workers. If you temporarily disable them by setting |
@levkk i tried the max_parallel_work_per_gather to 0 but that doesn't solve the issue. I believe it has to do some how with the venv, and perhaps the reason pg hasn't noticed is because they use pgcat (pooler) that might mitigate the bug. I have an easier way to reproduce a similar (i think the same) issue, still a few steps to take though: This assume you have docker + postgresml docker installed and you run the docker with a bash shell you can run interactive commands
then start this command sequence:
Now run this sequence
That crashed the server Now run it like this:
You can see initialization of python before pgml make sure you dont get a error 11 which leads to a fatal crash |
My guess is this was fixed by #1276, and this bug report is stale. Can you reproduce with latest master build, or is this on an older version? |
The presence of More context here: #931 |
@montanalow so i checked and the problem described in the first post i am not seeing on my latest installed postgresml, but I do still have seeing the second problem with python3 and this happens on both my postgres instances (one wihch has the older bug and one that doesn't have the older bug anymore) I still need to check to see if the upgrade helps there. |
@levkk ah yes that looks like the same thing. When do a python function before the first call to pgml there is no problem. |
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
After the import is complete to phrases2. Exit the psql client. And start up the psql new. Then run this query:
This will create the following log files and an abort
I found that initializing the embedding first mitigates the bug. So if you start psql client and then run:
The text was updated successfully, but these errors were encountered: