-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
php-fpm SIGABRT when pg_connect() called with host parameter #13339
Comments
is the issue occurring with php cli too ? |
No, cli is not affected. |
would it be possible to share a bit more infos ? e.g. relevant fpm config. |
No problem, I added config files and diffs to the description. |
Also, the FPM config is unchanged from the default Macports install. |
Does it happen also with persistent connections ? |
If I change |
A couple other notes:
|
Ok thanks I ll have a better look some time this week. |
@devnexen Would you be able to point out where in the code base I can find |
I cannot really reproduce it, I have an issue but not a |
It was after. I tested it with 8.1, 8.2, and 8.3, the same day I created this issue. |
So far, I get this crash with the homebrew version
|
Would it be possible for you to try if you still get the issue if you add |
That resolves the issue. For both 8.2 and 8.3. And 8.1 continues to work successfully. This is the connection string that I'm using: $c = pg_connect('host=localhost user=dbuser dbname=dbname gssencmode=disable'); |
Thanks for confirming, once I rebuilt libpq's homebrew without gss support it stopped crashing for me, I ll need to look to go beyond the "workarounds". |
hmm i don't know if this is related, but i'm getting segfault when freePGconn from libpq is called Fedora 40 with postgresql repositories from https://yum.postgresql.org/:
|
Description
It does not happen if
host=localhost
is removed from thepg_connect()
call.Happens in 8.2 and 8.3. Does NOT happen in 8.1.
CLI is not affected.
The following code:
Resulted in this output:
But I expected this output instead:
PHP Version
8.3.2, 8.2.15, 8.1.27
Operating System
macOS 14.1.2
Config Files
php83-fpm.conf.txt
php83-www.conf.txt
php81-fpm.conf.txt
php81-www.conf.txt
The text was updated successfully, but these errors were encountered: