[llvm-bugs] [Bug 41081] New: Regression since "[ARM] Run ARMParallelDSP in the IRPasses phase", Assertion "Scope imbalance!" failed

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Mar 15 03:21:32 PDT 2019


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

            Bug ID: 41081
           Summary: Regression since "[ARM] Run ARMParallelDSP in the
                    IRPasses phase", Assertion "Scope imbalance!" failed
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: ARM
          Assignee: unassignedbugs at nondot.org
          Reporter: martin at martin.st
                CC: llvm-bugs at lists.llvm.org, peter.smith at linaro.org,
                    sam.parker at arm.com, Ties.Stuij at arm.com

Created attachment 21599
  --> https://bugs.llvm.org/attachment.cgi?id=21599&action=edit
Reproduction sample

SVN r356130, "[ARM] Run ARMParallelDSP in the IRPasses phase", broke
compilation of libc++ for armv7 mingw. The failed assertion can be reproduced
for armv7-linux-gnueabihf targets as well.

To reproduce, compile the attached source file like this:

$ clang++ -target armv7-linux-gnueabihf -O3 -c locale-reduce.cpp
clang-9: ../include/llvm/ADT/ScopedHashTable.h:245:
llvm::ScopedHashTableScope<K, V, KInfo, AllocatorTy>::~ScopedHashTableScope()
[with K = {anonymous}::SimpleValue; V = llvm::Value*; KInfo =
llvm::DenseMapInfo<{anonymous}::SimpleValue>; AllocatorTy =
llvm::RecyclingAllocator<llvm::BumpPtrAllocatorImpl<>,
llvm::ScopedHashTableVal<{anonymous}::SimpleValue, llvm::Value*> >]: Assertion
`HT.TopLevelMap[ThisEntry->getKey()] == ThisEntry && "Scope imbalance!"'
failed.
Stack dump:
0.      Program arguments: /home/martin/code/llvm-bisect/build/bin/clang-9 -cc1
-triple armv7-unknown-linux-gnueabihf -emit-obj -disable-free -main-file-name
locale-reduce.cpp -mrelocation-model static -mthread-model posix
-mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases
-fuse-init-array -target-cpu generic -target-abi aapcs-linux -mfloat-abi hard
-fallow-half-arguments-and-returns -dwarf-column-info -debugger-tuning=gdb
-coverage-notes-file /home/martin/code/llvm-bisect/build/locale-reduce.gcno
-resource-dir /home/martin/code/llvm-bisect/build/lib/clang/9.0.0
-internal-isystem
/usr/lib/gcc-cross/arm-linux-gnueabihf/5.4.0/../../../../include/c++/5.4.0
-internal-isystem
/usr/lib/gcc-cross/arm-linux-gnueabihf/5.4.0/../../../../include/arm-linux-gnueabihf/c++/5.4.0
-internal-isystem
/usr/lib/gcc-cross/arm-linux-gnueabihf/5.4.0/../../../../include/armv7-unknown-linux-gnueabihf/c++/5.4.0
-internal-isystem
/usr/lib/gcc-cross/arm-linux-gnueabihf/5.4.0/../../../../include/c++/5.4.0/backward
-internal-isystem /usr/local/include -internal-isystem
/home/martin/code/llvm-bisect/build/lib/clang/9.0.0/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O3
-fdeprecated-macro -fdebug-compilation-dir /home/martin/code/llvm-bisect/build
-ferror-limit 19 -fmessage-length 187 -fno-signed-char -fobjc-runtime=gcc
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
-vectorize-loops -vectorize-slp -o locale-reduce.o -x c++ locale-reduce.cpp
-faddrsig 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'locale-reduce.cpp'.
4.      Running pass 'Early CSE' on function
'@_Z16__pad_and_outputIw1BIwEE1FIT_T0_ES5_PKS3_S7_S7_R1AS3_'
 #0 0x0000000001b6d0da llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x1b6d0da)
 #1 0x0000000001b6ae7c llvm::sys::RunSignalHandlers()
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x1b6ae7c)
 #2 0x0000000001b6afe7 SignalHandler(int)
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x1b6afe7)
 #3 0x00007f063e945390 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x11390)
 #4 0x00007f063d6b7428 gsignal
/build/glibc-LK5gWL/glibc-2.23/signal/../sysdeps/unix/sysv/linux/raise.c:54:0
 #5 0x00007f063d6b902a abort /build/glibc-LK5gWL/glibc-2.23/stdlib/abort.c:91:0
 #6 0x00007f063d6afbd7 __assert_fail_base
/build/glibc-LK5gWL/glibc-2.23/assert/assert.c:92:0
 #7 0x00007f063d6afc82 (/lib/x86_64-linux-gnu/libc.so.6+0x2dc82)
 #8 0x00000000019414e0 (anonymous namespace)::EarlyCSE::run() (.constprop.519)
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x19414e0)
 #9 0x0000000001943aa8 (anonymous
namespace)::EarlyCSELegacyCommonPass<false>::runOnFunction(llvm::Function&)
(.part.506.constprop.509)
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x1943aa8)
#10 0x0000000001661f7c llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x1661f7c)
#11 0x000000000166215c llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x166215c)
#12 0x0000000001663279 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x1663279)
#13 0x0000000001d4ff1d (anonymous
namespace)::EmitAssemblyHelper::EmitAssembly(clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x1d4ff1d)
#14 0x0000000001d518d5 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout
const&, llvm::Module*, clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x1d518d5)
#15 0x00000000026ae5fc
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x26ae5fc)
#16 0x0000000002f83499 clang::ParseAST(clang::Sema&, bool, bool)
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x2f83499)
#17 0x00000000026adacf clang::CodeGenAction::ExecuteAction()
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x26adacf)
#18 0x00000000021d498e clang::FrontendAction::Execute()
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x21d498e)
#19 0x000000000219ca16
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x219ca16)
#20 0x0000000002273bed
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/home/martin/code/llvm-bisect/build/bin/clang-9+0x2273bed)
#21 0x00000000009c8af8 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/home/martin/code/llvm-bisect/build/bin/clang-9+0x9c8af8)

-- 
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/20190315/00f64b6a/attachment.html>


More information about the llvm-bugs mailing list