pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Steele <david@pgmasters.net>
To: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgresql.org
Subject: Re: ubsan
Date: Fri, 25 Mar 2022 09:55:45 -0600
Message-ID: <0befb6fb-d125-95f2-9815-7dbda8086f25@pgmasters.net> (raw)
In-Reply-To: <20220323225528.hqt66d6mpx66hoal@alap3.anarazel.de>
References: <20220323173537.ll7klrglnp4gn2um@alap3.anarazel.de>
	<2771659.1648058090@sss.pgh.pa.us>
	<20220323182137.hgq4qz57yldtbhwl@alap3.anarazel.de>
	<20220323192241.tzeo6cu6mvepok53@alap3.anarazel.de>
	<2784183.1648065489@sss.pgh.pa.us>
	<20220323201234.nyh2uzot3t6becr5@alap3.anarazel.de>
	<20220323225528.hqt66d6mpx66hoal@alap3.anarazel.de>

On 3/23/22 16:55, Andres Freund wrote:
> 
> It's particularly impressive that the cost of running with ASAN is *so* much
> lower than valgrind. On my workstation a check-world with
> -fsanitize=alignment,undefined,address takes 3min17s, vs 1min10s or so without
> -fsanitize.  Not something to always use, but certainly better than valgrind.

It also catches things that valgrind does not so that's a bonus.

One thing to note, though. I have noticed that when enabling 
-fsanitize=undefined and/or -fsanitize=address in combination with 
-fprofile-arcs -ftest-coverage there is a loss in reported coverage, at 
least on gcc 9.3. This may not be very obvious unless coverage is 
normally at 100%.

Regards,
-David





view thread (18+ messages)  latest in thread

Message-ID: <0befb6fb-d125-95f2-9815-7dbda8086f25@pgmasters.net>
Permalink:  ../0befb6fb-d125-95f2-9815-7dbda8086f25@pgmasters.net/
Also on:    postgresql.org/message-id/0befb6fb-d125-95f2-9815-7dbda8086f25@pgmasters.net

 · 

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: david@pgmasters.net, andres@anarazel.de, tgl@sss.pgh.pa.us
  Subject: Re: ubsan
  In-Reply-To: <0befb6fb-d125-95f2-9815-7dbda8086f25@pgmasters.net>

* 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