<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Cross-dso CFI crash: Assertion `SanOpts.has(Checked[0].second)' failed."
   href="https://bugs.llvm.org/show_bug.cgi?id=37898">37898</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Cross-dso CFI crash: Assertion `SanOpts.has(Checked[0].second)' failed.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LLVM Codegen
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>eugeni.stepanov@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ touch 1.c
$ echo 'src:*' >1.txt
$ bin/clang -c 1.c -fsanitize-blacklist=1.txt -fsanitize=cfi-vcall -flto
-fsanitize-cfi-cross-dso -fvisibility=default -fno-sanitize-trap=all

clang-7.0: /code/llvm-project/clang/lib/CodeGen/CGExpr.cpp:2914: void
clang::CodeGen::CodeGenFunction::EmitCheck(ArrayRef<std::pair<llvm::Value *,
SanitizerMask> >, clang::CodeGen::SanitizerHandler, ArrayRef<llvm::Constant *>,
ArrayRef<llvm::Value *>): Assertion `SanOpts.has(Checked[0].second)' failed.
Stack dump:
0.      Program arguments: /code/build-llvm/bin/clang-7.0 -cc1 -triple
x86_64-unknown-linux-gnu -emit-llvm-bc -flto -flto-unit -disable-free
-main-file-name 1.c -mrelocation-model pic -pic-level 2 -pic-is-pie
-mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-dwarf-column-info -debugger-tuning=gdb -coverage-notes-file
/code/build-llvm/1.gcno -resource-dir /code/build-llvm/lib/clang/7.0.0
-internal-isystem /usr/local/include -internal-isystem
/code/build-llvm/lib/clang/7.0.0/include -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -fdebug-compilation-dir /code/build-llvm
-ferror-limit 19 -fmessage-length 128 -fvisibility default -fsanitize=cfi-vcall
-fsanitize-blacklist=/code/build-llvm/lib/clang/7.0.0/share/cfi_blacklist.txt
-fsanitize-blacklist=1.txt -fdepfile-entry=1.txt -fsanitize-cfi-cross-dso
-fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -o 1.o -x c
1.c 
1.      <eof> parser at end of file
2.      Per-file LLVM IR generation
#0 0x00000000021906b9 PrintStackTraceSignalHandler(void*)
(/code/build-llvm/bin/clang-7.0+0x21906b9)
#1 0x000000000218e655 llvm::sys::RunSignalHandlers()
(/code/build-llvm/bin/clang-7.0+0x218e655)
#2 0x0000000002190864 SignalHandler(int)
(/code/build-llvm/bin/clang-7.0+0x2190864)
#3 0x00007fa87f5cd0c0 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x110c0)
#4 0x00007fa87e15efcf gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x32fcf)
#5 0x00007fa87e1603fa abort (/lib/x86_64-linux-gnu/libc.so.6+0x343fa)
#6 0x00007fa87e157e37 (/lib/x86_64-linux-gnu/libc.so.6+0x2be37)
#7 0x00007fa87e157ee2 (/lib/x86_64-linux-gnu/libc.so.6+0x2bee2)
#8 0x00000000025be810
clang::CodeGen::CodeGenFunction::LoadPassedObjectSize(clang::Expr const*,
clang::QualType) (/code/build-llvm/bin/clang-7.0+0x25be810)
#9 0x00000000025d196e clang::CodeGen::CodeGenFunction::EmitCfiCheckFail()
(/code/build-llvm/bin/clang-7.0+0x25d196e)
#10 0x0000000002410a30 clang::CodeGen::CodeGenModule::Release()
(/code/build-llvm/bin/clang-7.0+0x2410a30)
#11 0x0000000002c4d0f8 (anonymous
namespace)::CodeGeneratorImpl::HandleTranslationUnit(clang::ASTContext&)
(/code/build-llvm/bin/clang-7.0+0x2c4d0f8)
#12 0x0000000002c4a4f7
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/code/build-llvm/bin/clang-7.0+0x2c4a4f7)
#13 0x00000000034ac6b4 clang::ParseAST(clang::Sema&, bool, bool)
(/code/build-llvm/bin/clang-7.0+0x34ac6b4)
#14 0x000000000286d93b clang::FrontendAction::Execute()
(/code/build-llvm/bin/clang-7.0+0x286d93b)
#15 0x000000000282a331
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/code/build-llvm/bin/clang-7.0+0x282a331)
#16 0x00000000029596a1
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/code/build-llvm/bin/clang-7.0+0x29596a1)
#17 0x0000000000916442 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/code/build-llvm/bin/clang-7.0+0x916442)
#18 0x0000000000914a91 main (/code/build-llvm/bin/clang-7.0+0x914a91)
#19 0x00007fa87e14c2b1 __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x202b1)
#20 0x0000000000911b8a _start (/code/build-llvm/bin/clang-7.0+0x911b8a)</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>