It just so happens that I have been using GCC on my linux PC, and
I have never run clang there.

Maybe I should.

In any case, GCC 4.9 + ASAN worked and helped me to fix a memory issue (referencing a heap after it is freed.)

Another thing is that on a small device based on ARM, etc.,
there *may* be only GCC cross compiler and not CLANG yet, and
in that case, someone who may be porting mozilla software with their addon, etc. to such
environment may find my experience useful.

TIA


On 2015/03/25 21:36, Ehsan Akhgari wrote:
Why wouldn't you use clang instead?  ASAN builds using clang on Linux
are a supported and tested Firefox configuration so there is a good
chance that it works well for Thunderbird as well.  ASAN builds using
gcc is neither tested nor supported as far as I know.

On 2015-03-24 10:15 PM, ISHIKAWA,chiaki wrote:
Hi,

I filed the following bugzilla to share my experience of
using address sanitizer with GCC 4.9 (*NOT CLANG*)
to compile C-C TB.

Bug 1147248 - GCC 4.9 + Address Sanitizer + C-C TB: Compiling
comm-central thunderbird using address sanitizer, -fsanitize=address
using GCC 4.9

I wonder what I did is optimal or not.
Comments welcome, especially the patch I created for mozalloc.h

I believe similar setup will make it compile FF with GCC + ASAN.

I needed to use ASAN since valgrind/memcheck did not work due to recent
changes in OS, libraries, or the mozilla software itself.

TIA

_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform



_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to