Re: Clang 3.3 Analyzer Results

From: Jeffrey Walton <noloader(at)gmail(dot)com>
To: Kevin Grittner <kgrittn(at)ymail(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Clang 3.3 Analyzer Results
Date: 2013-11-11 22:51:52
Message-ID: CAH8yC8kRUJjxgychDRhCwB5CLJF3yo2-rKLFfdjU+NxAvr=r_w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Mon, Nov 11, 2013 at 5:18 PM, Kevin Grittner <kgrittn(at)ymail(dot)com> wrote:
> [moving the discussion to pgsql-hackers]
>
> Jeffrey Walton <noloader(at)gmail(dot)com> wrote:
>> ...
>> ##############
>> # Sanitizers
>>
>> make distclean
>>
>> export DYLD_FALLBACK_LIBRARY_PATH=/usr/local/lib/clang/3.3/lib/darwin/
>> export CC=/usr/local/bin/clang
>> export CXX=/usr/local/bin/clang++
>> export CFLAGS="-g3 -fsanitize=address -fsanitize=undefined"
>> export CXXFLAGS="-g3 -fsanitize=address -fsanitize=undefined -fno-sanitize=vptr"
>>
>> ./configure
>>
>> make
>>
>> make check 2>&1 | asan_symbolize.py
>
> I haven't tried this yet, but will have a go at it after I capture
> the other.
Be sure asan_symbolize.py is on path. Otherwise, your dumps won't have
any symbols.

Jeff

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeffrey Walton 2013-11-11 22:57:31 Re: Clang 3.3 Analyzer Results
Previous Message Peter Geoghegan 2013-11-11 22:51:34 Re: Clang 3.3 Analyzer Results

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeffrey Walton 2013-11-11 22:57:31 Re: Clang 3.3 Analyzer Results
Previous Message Peter Geoghegan 2013-11-11 22:51:34 Re: Clang 3.3 Analyzer Results