[cfe-dev] recent change broke -fcatch-undefined-behavior

Jean-Daniel Dupas devlists at shadowlab.org
Fri Nov 16 05:01:15 PST 2012


Maybe we should disable vprt in the driver when targeting darwin, or emit an error (like it does when trying to use vptr without RTTI enabled).

Le 16 nov. 2012 à 13:42, Alexey Samsonov <samsonov at google.com> a écrit :

> On Thu, Nov 15, 2012 at 10:33 PM, Jean-Daniel Dupas <devlists at shadowlab.org> wrote:
> If you want to test with trunk, you have to apply the 2 attached patched.
> 
> - clang-ubsan add support to the make toolchain and the driver (Note to Richard: I removed the inclusion of CoreFoundation framework from you previous patch as I think only asan need it and not ubsan).
> - librt-ubsan fixes a couple of build issue in compiler-rt.
> 
> Hi Jean-Daniel,
> 
> I also get undefined symbol errors for symbols:
>                  U __ZTIN10__cxxabiv117__class_type_infoE
>                  U __ZTIN10__cxxabiv120__si_class_type_infoE
>                  U __ZTIN10__cxxabiv121__vmi_class_type_infoE
> but this only happens in a single test: TypeCheck/vptr.cpp
> 
> other tests (with minor fixes) work for me, and ubsan compiles on Mac fine.
> 
> 
> Le 15 nov. 2012 à 18:37, Jonathan Sauer <jonathan.sauer at gmx.de> a écrit :
> 
> > Hello,
> >
> >>> Thanks for the prod, I've checked in some pending patches to add OS X
> >>> support, in r167888, r167889, and r167890. If you could build
> >>> clang_rt.ubsan_osx and let me know whether everything is working as
> >>> intended, that'd be great; we can then ask to get those patches pulled
> >>> onto the 3.2 branch.
> >>
> >> I've rebuilt clang r167897 and still get link errors, ex:
> >>
> >> Undefined symbols for architecture x86_64:
> >> "___ubsan_handle_shift_out_of_bounds", referenced from:
> >
> > I found that currently (i.e. as of last Monday) "make install" doesn't seem to copy
> > the ubsan runtime libraries into clang's runtime library directory as it does for
> > asan. Maybe that's the problem.
> >
> >
> > HTH,
> > Jonathan
> >
> >
> > _______________________________________________
> > cfe-dev mailing list
> > cfe-dev at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
> 
> -- Jean-Daniel
> 
> 
> 
> 
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
> 
> 
> 
> 
> -- 
> Alexey Samsonov, MSK
> 

-- Jean-Daniel




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121116/bace9c71/attachment.html>


More information about the cfe-dev mailing list