• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Enabling AddressSanitizer from Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Enabling AddressSanitizer from Xcode (From: Jeff Smith <email@hidden>)
 >Re: Enabling AddressSanitizer from Xcode (From: Sean McBride <email@hidden>)
 >Re: Enabling AddressSanitizer from Xcode (From: James Walker <email@hidden>)

  • Prev by Date: Re: Enabling AddressSanitizer from Xcode
  • Next by Date: Re: Enabling AddressSanitizer from Xcode
  • Previous by thread: Re: Enabling AddressSanitizer from Xcode
  • Next by thread: Re: Enabling AddressSanitizer from Xcode
  • Index(es):
    • Date
    • Thread