Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Address Sanitizer. How to set value detect-odr-violation=0
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="galaird" data-source="post: 1774512" data-attributes="member: 396376"><p>Guys,</p><p> </p><p>I about to throw my laptop out the window. Could anyone help here. I'm building my app through xcodebuild command with the option enableAddressSanitizer YES.</p><p></p><p>xcodebuild build-for-testing -project 'SparkMacDesktop/SparkMacDesktop.xcodeproj' -scheme 'Incremental Build Unit Test' -configuration Release -enableAddressSanitizer YES</p><p></p><p>This works fine. It's builds and when I run my test it's finding issues. Brilliant. One of the issues is</p><p> </p><p>00:04:30.629 ==24173==HINT: if you don't care about these errors you may set ASAN_OPTIONS=detect_odr_violation=0</p><p> </p><p>This is false positive and all I want to do is set detect-odr-violation=0. It states to set the environmental ASAN_OPTIONS=detect_odr_violation=0</p><p></p><p>1. I have tried to do this using "export ASAN_OPTIONS=detect_odr_violation=0" just before running xcodebuild command</p><p>2. I have tried to do it by setting this value in path (bash_profile..etc...)</p><p>3. I have tried setting it in the xcode project, in the schema. Go to schema, edit schema, select Arguments and add enviromental variable</p><p></p><p></p><p>Nothing works. Does anyone know how to set this enviromental variable. Any help here would really be appreciated.</p><p></p><p>Thanks,</p><p>Gary</p></blockquote><p></p>
[QUOTE="galaird, post: 1774512, member: 396376"] Guys, I about to throw my laptop out the window. Could anyone help here. I'm building my app through xcodebuild command with the option enableAddressSanitizer YES. xcodebuild build-for-testing -project 'SparkMacDesktop/SparkMacDesktop.xcodeproj' -scheme 'Incremental Build Unit Test' -configuration Release -enableAddressSanitizer YES This works fine. It's builds and when I run my test it's finding issues. Brilliant. One of the issues is 00:04:30.629 ==24173==HINT: if you don't care about these errors you may set ASAN_OPTIONS=detect_odr_violation=0 This is false positive and all I want to do is set detect-odr-violation=0. It states to set the environmental ASAN_OPTIONS=detect_odr_violation=0 1. I have tried to do this using "export ASAN_OPTIONS=detect_odr_violation=0" just before running xcodebuild command 2. I have tried to do it by setting this value in path (bash_profile..etc...) 3. I have tried setting it in the xcode project, in the schema. Go to schema, edit schema, select Arguments and add enviromental variable Nothing works. Does anyone know how to set this enviromental variable. Any help here would really be appreciated. Thanks, Gary [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Address Sanitizer. How to set value detect-odr-violation=0
Top