[MacPorts] #46638: clang 3.5 sanitizer (ubsan) does not work

MacPorts noreply at macports.org
Tue Feb 17 08:39:18 PST 2015


#46638: clang 3.5 sanitizer (ubsan) does not work
------------------------+------------------------
  Reporter:  uri@…      |      Owner:  jeremyhu@…
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.3.3
Resolution:             |   Keywords:
      Port:  clang-3.5  |
------------------------+------------------------

Comment (by uri@…):

 This is what the "Sanitizers" folks said in [https://code.google.com/p
 /address-sanitizer/issues/detail?id=367]:

 >Apparently, UBSan runtime library in MacPorts Clang is built without
 RTTI, which is wrong. I don't know what build process / build system is
 used there...
 >
 >"-fno-sanitize=vptr" works because it turns off one piece of UBSan - vptr
 checker. So, all functions defined in ubsan_type_hash.o are now unused,
 and this object file is omitted from link.
 >
 > I will close this bug. If you encounter problems with upstream Clang,
 please file a bug in llvm.org/bugs (you can add me to cc there).


 Is UBSan library in clang-3.5 port build without RTTI? Is another library
 (''libcxx'' perhaps) the culprit? I consistently cannot run a program
 compiled with sanitizers if it's compiled with the macports clang-3.5, and
 can run it fine when compiled with a non-macports clang-3.5. Help (or
 ideally - a fix) would be greatly appreciated!

-- 
Ticket URL: <https://trac.macports.org/ticket/46638#comment:5>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list