Re: BUG #17391: While using --with-ssl=openssl and PG_TEST_EXTRA='ssl' options, SSL tests fail on OpenBSD 7.0

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: Daniel Gustafsson <daniel(at)yesql(dot)se>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andres Freund <andres(at)anarazel(dot)de>, byavuz81(at)gmail(dot)com, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org>, Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>, Michael Paquier <michael(at)paquier(dot)xyz>
Subject: Re: BUG #17391: While using --with-ssl=openssl and PG_TEST_EXTRA='ssl' options, SSL tests fail on OpenBSD 7.0
Date: 2022-02-05 21:20:56
Message-ID: CA+hUKGJGin-M9=KF6q0B7E2zUdry68fAVgqWNxn0LQTSER-3vw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Sat, Feb 5, 2022 at 3:12 AM Daniel Gustafsson <daniel(at)yesql(dot)se> wrote:
> Looking at these remaining failures today left me a bit confused. It seems to
> be some form of timing or synchronization issue as delaying shutdown with a
> sleep(1) in the be_tls_open_server errorpath makes the tests pass. With the
> attached diff I get all tests passing on OpenBSD 7. Following the bouncing
> ball into differences between OpenSSL and LibreSSL in the revocation and
> shutdown paths didn't lead to anything.
>
> Does anyone have any ideas what this could be?

usleep(1) is also enough, but usleep(0) isn't. I wonder if something
could be disabling SO_LINGER on the socket, or somehow activating
similar data-dropping behaviour so the final ereport doesn't get
transferred.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Surya Prakash 2022-02-05 21:28:24 Re: BUG #17394: pg_dump: query returned 0 rows instead of one:
Previous Message Andres Freund 2022-02-05 20:47:14 Re: BUG #17391: While using --with-ssl=openssl and PG_TEST_EXTRA='ssl' options, SSL tests fail on OpenBSD 7.0