How to use asan with qt creator 5.0.3 ?
-
is there simple steps to to use asan to use for qt project on linux ?
will this work when i add below sentence
CONFIG+=sanitizer CONFIG+=sanitize_address
into Qt's mkspecs (mkspecs/features/sanitizer.prf and mkspecs/common/sanitize.conf) ?
-
@SGaist My qt version is
Qt Creator 5.0.3
Based on Qt 5.15.2 (GCC 7.3.1 20180303 (Red Hat 7.3.1-5), 64 bit)So for use asan what i need to do ?
will it work when i add below steps in .pro file ?
CONFIG+=sanitizer CONFIG+=sanitize_address
@Qt-embedded-developer
I guess it is better to add it into debug onlydebug { CONFIG+=sanitizer CONFIG+=sanitize_address }
-
is there simple steps to to use asan to use for qt project on linux ?
will this work when i add below sentence
CONFIG+=sanitizer CONFIG+=sanitize_address
into Qt's mkspecs (mkspecs/features/sanitizer.prf and mkspecs/common/sanitize.conf) ?
Hi,
It has nothing to do with Qt Creator, it will depend on your Qt version. Don't modify the mkspecs for that. That's typically flags that you set in your project.
-
Hi,
It has nothing to do with Qt Creator, it will depend on your Qt version. Don't modify the mkspecs for that. That's typically flags that you set in your project.
@SGaist My qt version is
Qt Creator 5.0.3
Based on Qt 5.15.2 (GCC 7.3.1 20180303 (Red Hat 7.3.1-5), 64 bit)So for use asan what i need to do ?
will it work when i add below steps in .pro file ?
CONFIG+=sanitizer CONFIG+=sanitize_address
-
@SGaist My qt version is
Qt Creator 5.0.3
Based on Qt 5.15.2 (GCC 7.3.1 20180303 (Red Hat 7.3.1-5), 64 bit)So for use asan what i need to do ?
will it work when i add below steps in .pro file ?
CONFIG+=sanitizer CONFIG+=sanitize_address
@Qt-embedded-developer
I guess it is better to add it into debug onlydebug { CONFIG+=sanitizer CONFIG+=sanitize_address }
-
@Qt-embedded-developer
I guess it is better to add it into debug onlydebug { CONFIG+=sanitizer CONFIG+=sanitize_address }
-
@SGaist My qt version is
Qt Creator 5.0.3
Based on Qt 5.15.2 (GCC 7.3.1 20180303 (Red Hat 7.3.1-5), 64 bit)So for use asan what i need to do ?
will it work when i add below steps in .pro file ?
CONFIG+=sanitizer CONFIG+=sanitize_address
@Qt-embedded-developer said in How to use asan with qt creator 5.0.3 ?:
@SGaist My qt version is
Qt Creator 5.0.3
Based on Qt 5.15.2 (GCC 7.3.1 20180303 (Red Hat 7.3.1-5), 64 bit)This is not your Qt version. These are information about Qt Creator which has nothing to do with the actual version of Qt you are using to build your application.
-
On average, the instrumentation increases processing time by about 73% and memory usage by 240%.
from here
https://en.wikipedia.org/wiki/Code_sanitizer
Therefore, I use it only in debug mode, but not in release mode.Yes, it will be applied for the whole project.
-
@Qt-embedded-developer said in How to use asan with qt creator 5.0.3 ?:
@SGaist My qt version is
Qt Creator 5.0.3
Based on Qt 5.15.2 (GCC 7.3.1 20180303 (Red Hat 7.3.1-5), 64 bit)This is not your Qt version. These are information about Qt Creator which has nothing to do with the actual version of Qt you are using to build your application.
@SGaist then from where i will find information about qt version ?
-
@SGaist then from where i will find information about qt version ?
@Qt-embedded-developer i have find it using
const char *qt_version = qVersion();
qDebug()<<qt_version;its 5.15.8
-
-
@SGaist then from where i will find information about qt version ?
You are using a Kit to build your application. The kit is associated with a Qt version.