public inbox for [email protected]
help / color / mirror / Atom feedFrom: Robert Haas <[email protected]>
To: Thomas Munro <[email protected]>
Cc: PostgreSQL Hackers <[email protected]>
Subject: Re: margay fails assertion in stats/dsa/dsm code
Date: Tue, 28 Jun 2022 14:04:32 -0400
Message-ID: <CA+TgmoYGNgRwN=pVK70GC=CtU8sUXwNC1admiH2H4iUjEC=F3g@mail.gmail.com> (raw)
In-Reply-To: <CA+hUKGKqKrCV5xKWfh9rnm=o=DwZLTLtnsj_XpUi9g5=V+9oyg@mail.gmail.com>
References: <CA+hUKGKqKrCV5xKWfh9rnm=o=DwZLTLtnsj_XpUi9g5=V+9oyg@mail.gmail.com>
On Thu, Jun 2, 2022 at 8:06 PM Thomas Munro <[email protected]> wrote:
> I know that on Solaris we use dynamic_shared_memory=posix. The other
> Solaris/Sparc system is wrasse, and it's not doing this. I don't see
> it yet, but figured I'd report this much to the list in case someone
> else does.
My first thought was that the return value of the call to
dsm_impl_op() at the end of dsm_attach() is not checked and that maybe
it was returning NULL, but it seems like whoever wrote
dsm_impl_posix() was pretty careful to ereport(elevel, ...) in every
failure path, and elevel is ERROR here, so I don't see any issue. My
second thought was that maybe control had escaped from dsm_attach()
due to an error before we got to the step where we actually map the
segment, but then the dsm_segment * would be returned to the caller.
Maybe they could retrieve it later using dsm_find_mapping(), but that
function has no callers in core.
So I'm kind of stumped too, but did you by any chance check whether
there are any DSM-related messages in the logs before the assertion
failure?
--
Robert Haas
EDB: http://www.enterprisedb.com
view thread (11+ messages) latest in thread
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: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: margay fails assertion in stats/dsa/dsm code
In-Reply-To: <CA+TgmoYGNgRwN=pVK70GC=CtU8sUXwNC1admiH2H4iUjEC=F3g@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox