[llvm-bugs] [Bug 44898] New: [llvm.org/master @ cfa60ff2] Assertion failed: (isUnknown()), function markConstant, SCCP.cpp, line 131
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Feb 13 11:48:44 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=44898
Bug ID: 44898
Summary: [llvm.org/master @ cfa60ff2] Assertion failed:
(isUnknown()), function markConstant, SCCP.cpp, line
131
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: vsk at apple.com
CC: llvm-bugs at lists.llvm.org
Top-of-tree llvm.org/master clang is asserting when building llvm-nm with ASan
enabled. I can't attach a repro right now, will try again in a minute.
First failing window:
http://lab.llvm.org:8080/green/view/LLDB/job/lldb-cmake-sanitized/922/
Results:
Assertion failed: (isUnknown()), function markConstant, file
/Users/vsk/src/llvm-project-master/llvm/lib/Transforms/Scalar/SCCP.cpp, line
131.
Stack dump:
0. Program arguments:
/Users/vsk/src/builds/llvm-project-master-RA/bin/clang++ -DGTEST_HAS_RTTI=0
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-Itools/llvm-nm -I/Users/vsk/src/llvm-project-master/llvm/tools/llvm-nm
-I/Library/Developer/Comman
dLineTools/SDKs/MacOSX.sdk/usr/include/libxml2 -Iinclude
-I/Users/vsk/src/llvm-project-master/llvm/include -fPIC
-fvisibility-inlines-hidden -Werror=date-time
-Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter
-Wwrite-strings -Wcast-qual -Wmissing-fiel
d-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough
-Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor
-Wdelete-non-virtual-dtor -Wstring-conversion -fno-omit-frame-pointer
-fsanitize=address,undefined -fno-sanitize=vptr,function -fno-sanitize-recov
er=all -fsanitize-address-use-after-scope
-fsanitize-blacklist=/Users/vsk/src/llvm-project-master/llvm/utils/sanitizers/ubsan_blacklist.txt
-fdiagnostics-color -O2 -g -DNDEBUG -isysroot
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -fno-exceptions -fno-rtti
-std=c++
14 -MD -MT tools/llvm-nm/CMakeFiles/llvm-nm.dir/llvm-nm.cpp.o -MF
tools/llvm-nm/CMakeFiles/llvm-nm.dir/llvm-nm.cpp.o.d -o
tools/llvm-nm/CMakeFiles/llvm-nm.dir/llvm-nm.cpp.o -c
/Users/vsk/src/llvm-project-master/llvm/tools/llvm-nm/llvm-nm.cpp
1. <eof> parser at end of file
2. Per-module optimization passes
3. Running pass 'Interprocedural Sparse Conditional Constant Propagation'
on module '/Users/vsk/src/llvm-project-master/llvm/tools/llvm-nm/llvm-nm.cpp'.
0 clang++ 0x00000001032db948
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1 clang++ 0x00000001032da995 llvm::sys::RunSignalHandlers() +
85
2 clang++ 0x00000001032db092
llvm::sys::CleanupOnSignal(unsigned long) + 210
3 clang++ 0x00000001032323da (anonymous
namespace)::CrashRecoveryContextImpl::HandleCrash(int, unsigned long) + 106
4 clang++ 0x0000000103232577 CrashRecoverySignalHandler(int)
+ 135
5 libsystem_platform.dylib 0x00007fff724a5b5d _sigtramp + 29
6 libsystem_platform.dylib 0x0000000110915938 _sigtramp + 18446603343171616248
7 libsystem_c.dylib 0x00007fff7235f6a6 abort + 127
8 libsystem_c.dylib 0x00007fff7232820d basename_r + 0
9 clang++ 0x0000000103168866 (anonymous
namespace)::LatticeVal::markConstant(llvm::Constant*) + 102
10 clang++ 0x000000010316ac55 (anonymous
namespace)::SCCPSolver::markConstant((anonymous namespace)::LatticeVal&,
llvm::Value*, llvm::Constant*) + 37
11 clang++ 0x000000010316eaf4 (anonymous
namespace)::SCCPSolver::visitCastInst(llvm::CastInst&) + 148
12 clang++ 0x00000001031694fe (anonymous
namespace)::SCCPSolver::markUsersAsChanged(llvm::Value*) + 110
13 clang++ 0x000000010316505b (anonymous
namespace)::SCCPSolver::Solve() + 379
14 clang++ 0x000000010316344a llvm::runIPSCCP(llvm::Module&,
llvm::DataLayout const&, std::__1::function<llvm::TargetLibraryInfo const&
(llvm::Function&)>, llvm::function_ref<llvm::AnalysisResultsForFn
(llvm::Function&)>) + 2810
15 clang++ 0x0000000102d1b85a (anonymous
namespace)::IPSCCPLegacyPass::runOnModule(llvm::Module&) + 106
16 clang++ 0x0000000102b956ae
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 1022
17 clang++ 0x0000000103516214
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions
const&, clang::CodeGenOptions const&, clang::TargetOptions const&,
clang::LangOptions const&, llvm::DataLayout const&, llvm::Module*, clang::Backe
ndAction, std::__1::unique_ptr<llvm::raw_pwrite_stream,
std::__1::default_delete<llvm::raw_pwrite_stream> >) + 14884
18 clang++ 0x00000001037e209c
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 1084
19 clang++ 0x000000010419b5d3 clang::ParseAST(clang::Sema&,
bool, bool) + 643
20 clang++ 0x0000000103aa0cd4 clang::FrontendAction::Execute()
+ 84
21 clang++ 0x0000000103a49eb3
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1651
22 clang++ 0x0000000103b13fe2
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1410
23 clang++ 0x000000010152f5f1 cc1_main(llvm::ArrayRef<char
const*>, char const*, void*) + 2401
24 clang++ 0x000000010152d289
ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) + 345
25 clang++ 0x00000001039024c7 void llvm::function_ref<void
()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>
>, std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >*, bool*)
const::$_1>(long) + 23
26 clang++ 0x00000001032322f4
llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) + 228
27 clang++ 0x0000000103901ba9
clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>
>, std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >*, bool*) const + 377
28 clang++ 0x00000001038d7cfd
clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&,
clang::driver::Command const*&) const + 221
29 clang++ 0x00000001038d814d
clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&,
llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*> >&)
const + 125
30 clang++ 0x00000001038ec3fc
clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&,
llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*> >&) +
204
31 clang++ 0x000000010152c8b9 main + 10089
--
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/20200213/4cdd5f8f/attachment.html>
More information about the llvm-bugs
mailing list