[llvm-bugs] [Bug 38507] New: undefined symbol: __ubsan_handle_cfi_check_fail when linking a large rust project

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Aug 9 14:33:02 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38507

            Bug ID: 38507
           Summary: undefined symbol: __ubsan_handle_cfi_check_fail when
                    linking a large rust project
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: compiler-rt
          Assignee: unassignedbugs at nondot.org
          Reporter: tom at ritter.vg
                CC: llvm-bugs at lists.llvm.org, vlad at tsyrklevich.net

Created attachment 20667
  --> https://bugs.llvm.org/attachment.cgi?id=20667&action=edit
compilation command.txt

I'm compiling firefox and working on Control Flow Integrity. I hit this error
when linking something after a rust compilation.  I reproduced it with a day
old clang.

clang version 8.0.0 (trunk) (llvm/trunk 339310)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/tom/Documents/moz/mozilla-unified-cfi-icall/clang/bin


ld.lld: error: undefined symbol: __ubsan_handle_cfi_check_fail
>>> referenced by bzlib.c:508 (bzip2-1.0.6/bzlib.c:508)
>>>               lto.tmp:(BZ2_bzDecompressInit)


And 7 similar errors



The reproduction command is quite large, and the reproduction file even larger.
I've attached the command; and the reproduction tarfile (from --reproduce) is
at https://ritter.vg/misc/transient/rustlink.tar.gz

Mozilla bug is https://bugzilla.mozilla.org/show_bug.cgi?id=1482140

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180809/8773cf03/attachment.html>


More information about the llvm-bugs mailing list