Re: Enabling AddressSanitizer from Xcode
Re: Enabling AddressSanitizer from Xcode
- Subject: Re: Enabling AddressSanitizer from Xcode
- From: Sean McBride <email@hidden>
- Date: Fri, 15 Mar 2013 10:37:16 -0400
- Organization: Rogue Research Inc.
On Thu, 14 Mar 2013 16:18:21 -0700, James Walker said:
>Using the current Clang as described in that blog, when I attempt to use
>-fsanitize=address, I get link errors on symbols such as
>___asan_after_dynamic_init. When I tried to use -fsanitize=undefined, I
>got link errors on a different set of symbols such as
>___ubsan_handle_add_overflow.
If I'm not mistaken, many of these 'sanitize' things need to link to a clang library to handle the undefined behaviour once detected, usually by printing out filename/line number etc.
>I did manage to get some code to link using
>-fsanitize-undefined-trap-on-error -fsanitize=undefined-trap, but
>whether that will find any bugs for me remains to be seen.
The 'trap' part means just crash, so the libraries aren't needed.
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden