Valgrind run error with Postgres on OSX

From: Pavel Borisov <pashkin(dot)elfe(at)gmail(dot)com>
To: Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Valgrind run error with Postgres on OSX
Date: 2020-10-28 11:37:53
Message-ID: CALT9ZEFmx=UbnZpc2SmjbLdoFcC6i6d6aoNAm77-0_qnoaCtaA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi, hackers!

I tried to run PG in a Valgrind on OSX 10.13 with Clang 9/10 and get an
assertion error inside Valgrind

valgrind --leak-check=no --gen-suppressions=all --time-stamp=yes \
--error-markers=VALGRINDERROR-BEGIN,VALGRINDERROR-END \
--log-file=%p.log --trace-children=yes postgres -D ./pgdata \
--log_line_prefix="%m %p " --log_statement=all

Then I got an assertion error in Valgrind
m_signals.c:1106 (void handle_SCSS_change(Bool)):
Assertion 'ksa_old.sa_flags == skss_old.skss_per_sig[sig].skss_flags'
failed

I am not very much sure it has much do to with Postgres and I will report
this error to Valgrind community but it is not raised when I try to run
different programs under Valgrind on the same system. I haven't dived deep
into the issue and I am not sure that this patch is not an utter hack but
it heals an issue which may be useful for some of you.

If you have ideas on the issue please share.

--
Best regards,
Pavel Borisov

Postgres Professional: http://postgrespro.com <http://www.postgrespro.com>

Attachment Content-Type Size
v1-0001-Fix-for-bug-when-running-Valgrind-on-OSX.patch application/octet-stream 1.5 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Amul Sul 2020-10-28 11:43:38 Re: [Patch] ALTER SYSTEM READ ONLY
Previous Message tsunakawa.takay@fujitsu.com 2020-10-28 10:59:28 RE: Multiple hosts in connection string failed to failover in non-hot standby mode