Re: Configure with thread sanitizer fails the thread test

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Ewan Higgs <ewan_higgs(at)yahoo(dot)co(dot)uk>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Configure with thread sanitizer fails the thread test
Date: 2015-08-17 17:31:24
Message-ID: 20150817173124.GW5232@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Ewan Higgs wrote:

> So I changed volatile to _Atomic and continued (patch is in
> thread_test_atomic.patch). I then ran it against sqlsmith. The good
> news: I didn't happen to find any problems in normal use. The bad
> news: I did find a lot of warnings about improper use of functions
> like malloc and free from signal handlers.

There's a reason why we don't offer a threaded server ... The
postmaster process in particular runs in a rather unusual arrangement,
where most of the interesting stuff does happen in signal handlers. I
doubt there's any chance that we would make it run in a threaded
environment.

--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Fetter 2015-08-17 17:37:52 Re: More WITH
Previous Message Peter Geoghegan 2015-08-17 17:30:21 Re: More WITH