[PATCH] D107049: [clang-repl] Re-implement clang-interpreter as a test case.

Mikael Holmén via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 1 03:41:20 PDT 2021


uabelho added a comment.

If we run without z3 it still fails, but in another way:

  [ RUN      ] InterpreterTest.CatchException
  JIT session error: Symbols not found: [ __gxx_personality_v0, _ZSt9terminatev, _ZTVN10__cxxabiv117__class_type_infoE, __cxa_allocate_exception, __cxa_begin_catch, __cxa_end_catch, __cxa_free_exception ]
  Failure value returned from cantFail wrapped call
  Failed to materialize symbols: { (main, { __clang_call_terminate, _ZN16custom_exceptionC2EPKc, throw_exception, _ZTS16custom_exception, _ZTI16custom_exception }) }
  UNREACHABLE executed at /repo/uabelho/master-github/llvm/include/llvm/Support/Error.h:788!
   #0 0x000000000051c0fb backtrace /repo/uabelho/flacc_6.144/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:4205:13
   #1 0x000000000186f144 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /repo/uabelho/master-github/llvm/build-all-bbisdk-asan/../lib/Support/Unix/Signals.inc:565:13
   #2 0x0000000001867cf8 llvm::sys::RunSignalHandlers() /repo/uabelho/master-github/llvm/build-all-bbisdk-asan/../lib/Support/Signals.cpp:0:5
   #3 0x000000000186ff78 SignalHandler(int) /repo/uabelho/master-github/llvm/build-all-bbisdk-asan/../lib/Support/Unix/Signals.inc:0:3
   #4 0x00007fdcac5bd630 __restore_rt sigaction.c:0:0
   #5 0x00007fdcab8e0387 raise (/lib64/libc.so.6+0x36387)
   #6 0x00007fdcab8e1a78 abort (/lib64/libc.so.6+0x37a78)
   #7 0x0000000001708875 operator<< /repo/uabelho/master-github/llvm/build-all-bbisdk-asan/../include/llvm/Support/raw_ostream.h:221:7
   #8 0x0000000001708875 operator<< /repo/uabelho/master-github/llvm/build-all-bbisdk-asan/../include/llvm/Support/raw_ostream.h:231:18
   #9 0x0000000001708875 llvm::llvm_unreachable_internal(char const*, char const*, unsigned int) /repo/uabelho/master-github/llvm/build-all-bbisdk-asan/../lib/Support/ErrorHandling.cpp:204:19
  #10 0x0000000000590b65 unsigned long llvm::cantFail<unsigned long>(llvm::Expected<unsigned long>, char const*) /repo/uabelho/master-github/llvm/include/llvm/Support/Error.h:777:12
  #11 0x000000000058e5b8 (anonymous namespace)::InterpreterTest_CatchException_Test::TestBody() /repo/uabelho/master-github/clang/unittests/Interpreter/ExceptionTests/InterpreterExceptionTest.cpp:0:0
  #12 0x00000000018abce8 os_stack_trace_getter /repo/uabelho/master-github/llvm/build-all-bbisdk-asan/../utils/unittest/googletest/src/gtest.cc:5635:7
  #13 0x00000000018abce8 testing::Test::Run() /repo/uabelho/master-github/llvm/build-all-bbisdk-asan/../utils/unittest/googletest/src/gtest.cc:2515:9
  #14 0x00000000018aeb03 testing::TestInfo::Run() /repo/uabelho/master-github/llvm/build-all-bbisdk-asan/../utils/unittest/googletest/src/gtest.cc:0:11
  #15 0x00000000018aff71 testing::TestSuite::Run() /repo/uabelho/master-github/llvm/build-all-bbisdk-asan/../utils/unittest/googletest/src/gtest.cc:0:28
  #16 0x00000000018dfaa9 testing::internal::UnitTestImpl::RunAllTests() /repo/uabelho/master-github/llvm/build-all-bbisdk-asan/../utils/unittest/googletest/src/gtest.cc:0:44
  #17 0x00000000018ddc8e testing::UnitTest::Run() /repo/uabelho/master-github/llvm/build-all-bbisdk-asan/../utils/unittest/googletest/src/gtest.cc:4925:10
  #18 0x000000000188fbce main /repo/uabelho/master-github/llvm/build-all-bbisdk-asan/../utils/unittest/UnitTestMain/TestMain.cpp:50:3
  #19 0x00007fdcab8cc555 __libc_start_main (/lib64/libc.so.6+0x22555)
  #20 0x00000000004e59c7 _start (/repo/uabelho/master-github/llvm/build-all-bbisdk-asan/tools/clang/unittests/Interpreter/ExceptionTests/./ClangReplInterpreterExceptionTests+0x4e59c7)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107049/new/

https://reviews.llvm.org/D107049



More information about the cfe-commits mailing list