pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@enterprisedb.com>
To: Thomas Munro <thomas.munro@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: dikkop seems unhappy because of openssl stuff (FreeBSD 14-BETA1)
Date: Tue, 19 Sep 2023 18:11:06 +0200
Message-ID: <a0abad2c-fb03-f2f2-50b4-d7e22aeeb2e5@enterprisedb.com> (raw)
In-Reply-To: <CA+hUKGLSBemXaDRsFexkpMPMmabPmT+weWBUREumOt2uPTtiqg@mail.gmail.com>
References: <316d304a-1dcd-cea1-3d6c-27f794727a06@enterprisedb.com>
	<ZQjhMFq_NdcAk2jJ@paquier.xyz>
	<CA+hUKGLSBemXaDRsFexkpMPMmabPmT+weWBUREumOt2uPTtiqg@mail.gmail.com>

On 9/19/23 04:25, Thomas Munro wrote:
> On Tue, Sep 19, 2023 at 2:04 PM Michael Paquier <michael@paquier.xyz> wrote:
>> On Mon, Sep 18, 2023 at 03:11:27PM +0200, Tomas Vondra wrote:
>>> Both 11 and 12 failed with a weird openssl segfaults in plpython tests,
>>> see [2] and [3]. And 13 is stuck in some openssl stuff in plpython
>>> tests, with 100% CPU usage (for ~30h now):
>>>
>>> #0  0x00000000850e86c0 in OPENSSL_sk_insert ()
>>>     from /usr/local/lib/libcrypto.so.11
>>> #1  0x00000000850a5848 in CRYPTO_set_ex_data ()
>>>     from /usr/local/lib/libcrypto.so.11
>>> ...
>>>
>>> Full backtrace attached. I'm not sure what could possibly be causing
>>> this, except maybe something in FreeBSD? Or maybe there's some confusion
>>> about libraries? No idea.
>>
>> FWIW, I've seen such corrupted and time-sensitive stacks in the past
>> in the plpython tests in builds when python linked to a SSL library
>> different than what's linked with the backend.  So that smells like a
>> packaging issue to me.
> 
> Could it be confusion due to the presence of OpenSSL 3.0 in the
> FreeBSD base system (/usr/include, /usr/lib) combined with the
> presence of OpenSSL 1.1.1 installed with "pkg install openssl"
> (/usr/local/include, /usr/local/lib)?  Tomas, does it help if you "pkg
> remove openssl"?

Oh! That might be it - I didn't realize FreeBSD already has openssl 3.0
already included in the base system, so perhaps installing 1.1.1v leads
to some serious confusion ...

After some off-list discussion with Alvaro I tried removing the 1.1.1v
and installed the openssl31 package, which apparently resolved this (at
which point it ran into the unrelated tcl issue).

Still, this confusion seems rather unexpected, and I'm not sure if
having both 3.0 (from base) and 3.1 (from package) could lead to the
same confusion / crashes. Not sure if it's "our" problem ...

regards

-- 
Tomas Vondra
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company





view thread (23+ messages)  latest in thread

Message-ID: <a0abad2c-fb03-f2f2-50b4-d7e22aeeb2e5@enterprisedb.com>
Permalink:  ../a0abad2c-fb03-f2f2-50b4-d7e22aeeb2e5@enterprisedb.com/
Also on:    postgresql.org/message-id/a0abad2c-fb03-f2f2-50b4-d7e22aeeb2e5@enterprisedb.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tomas.vondra@enterprisedb.com, thomas.munro@gmail.com, michael@paquier.xyz, pgsql-hackers@lists.postgresql.org
  Subject: Re: dikkop seems unhappy because of openssl stuff (FreeBSD 14-BETA1)
  In-Reply-To: <a0abad2c-fb03-f2f2-50b4-d7e22aeeb2e5@enterprisedb.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox