-
Notifications
You must be signed in to change notification settings - Fork 435
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
pgbouncer 1.5.4 segmentation fault #42
Comments
Hi, |
Hey,
|
Hmm, what PostgreSQL connection driver is your client app using? It looks to me like the driver is sending password without sending the startup packet first. |
We're using postgresql-9.1-901.jdbc4.jar. Seems quite outdated when looking at it, but no change here for aeons |
Fixes a crash if password packet appears before startup packet (#42).
Fixes a crash if password packet appears before startup packet (#42).
Fixed. Crashing is bad... The client behaviour is rather abnormal, I guess there is multi-threading bug in client app and several threads are trying to use same connection or something like that. As it's unlikely to be protocol bug in pgjdbc driver. |
Closing as the bug is fixed. |
Hello,
we're suffering from a segmentation fault every now and than on CentOS6 x86_64 with pgbouncer 1.5.4. The instance is dying with the following message:
We've attached gdb to a core file and traced the issue down to an uninitialized struct:
after looking at client.c:41 we see that the passwd var is valid however the PgUser struct (or PgSocket struct) must be invalid:
The application log does not show any conclusive info. Please tell me if you need more information.
Thanks for help,
Wiktor
The text was updated successfully, but these errors were encountered: