[llvm-dev] Using ASAN on C code called from other languages
Kostya Serebryany via llvm-dev
llvm-dev at lists.llvm.org
Mon Feb 6 15:12:44 PST 2017
I don't know anything about haskell, but if you post a minimal reproducer
here
we *may* be able to help.
--kcc
On Sun, Feb 5, 2017 at 11:35 PM, Erik de Castro Lopo via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Hi all,
>
> I have haskell code that calls into C code and i'd like to compile the C
> code with ASAN. I've managed to convince the build system to compile the
> C code with '-fsanitize=address -g' (so that if I get a link errors of
> the ASAN library isn't linked) and then also managed to link libasan,
> but when my trivial test program with an obvious out-of-bounds access
> run, I don't get the ASAN error I was expecting.
>
> Is there some ASAN initialisation step that isn't happening?
>
> Any clues appreciated.
>
> Cheers,
> Erik
> --
> ----------------------------------------------------------------------
> Erik de Castro Lopo
> http://www.mega-nerd.com/
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170206/320f8747/attachment.html>
More information about the llvm-dev
mailing list