How to build gcc with address sanitizer?

Qing Zhao QING.ZHAO@ORACLE.COM
Mon Dec 9 16:58:00 GMT 2019


Hello,

When using gcc8.2.1 to build one application, it’s out of memory during “cc1”, We suspect that there are some memory leak problem in “cc1”, therefore tried to build
Gcc with address sanitizer in order to detect the memory leak during compilation. 

However, it took me a lot of time in order to build the gcc (or just “cc1”) with address sanitizer. Still cannot do this successfully till now. 

Did anyone do this before? Any documentation on how to do this?

Thanks a lot for any help.

Qing


More information about the Gcc mailing list