[llvm-bugs] [Bug 37321] New: Regression in SVN r331337, "new fragment outside of original fragment"
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed May 2 23:59:11 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37321
Bug ID: 37321
Summary: Regression in SVN r331337, "new fragment outside of
original fragment"
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Common Code Generator Code
Assignee: unassignedbugs at nondot.org
Reporter: martin at martin.st
CC: llvm-bugs at lists.llvm.org
Created attachment 20257
--> https://bugs.llvm.org/attachment.cgi?id=20257&action=edit
Source reproducing the issue
Building the attached source file, with "clang -target i686-w64-mingw32 -c
test.c -O2 -g", triggers assertion failures like these:
clang-7.0: ../lib/IR/DebugInfoMetadata.cpp:836: static
llvm::Optional<llvm::DIExpression*> llvm::DIExpression::createFragmen
tExpression(const llvm::DIExpression*, unsigned int, unsigned int): Assertion
`(OffsetInBits + SizeInBits <= Op.getArg(0) +
Op.getArg(1)) && "new fragment outside of original fragment"' failed.
Stack dump:
0. Program arguments: /home/martin/clang-bisect/bin/clang-7.0 -cc1 -triple
i686-w64-windows-gnu -emit-obj -disable-free
-main-file-name test.c -mrelocation-model static -mthread-model posix
-fmath-errno -masm-verbose -mconstructor-aliases -tar
get-cpu pentium4 -dwarf-column-info -debug-info-kind=limited -dwarf-version=4
-debugger-tuning=gdb -momit-leaf-frame-pointer
-coverage-notes-file
/home/martin/code/mingw-w64/mingw-w64-crt/build-i686/test.gcno -resource-dir
/home/martin/clang-bisect
/lib/clang/7.0.0 -internal-isystem
/home/martin/clang-bisect/lib/clang/7.0.0/include -internal-isystem
/home/martin/clang-bi
sect/i686-w64-mingw32/sys-root/mingw/include -internal-isystem
/home/martin/clang-bisect/i686-w64-mingw32/include -internal-
isystem /home/martin/clang-bisect/include -O2 -fdebug-compilation-dir
/home/martin/code/mingw-w64/mingw-w64-crt/build-i686 -
ferror-limit 19 -fmessage-length 0 -fno-use-cxa-atexit -fobjc-runtime=gcc
-fdwarf-exceptions -fdiagnostics-show-option -vect
orize-loops -vectorize-slp -o test.o -x c test.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'test.c'.
4. Running pass 'X86 DAG->DAG Instruction Selection' on function
'@nextafterl'
#0 0x000000000190364a llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/martin/clang-bisect/bin/clang-7.0+0x190364a)
#1 0x00000000019013ee llvm::sys::RunSignalHandlers()
(/home/martin/clang-bisect/bin/clang-7.0+0x19013ee)
#2 0x0000000001901562 SignalHandler(int)
(/home/martin/clang-bisect/bin/clang-7.0+0x1901562)
#3 0x00007f7a5762f390 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x11390)
#4 0x00007f7a563a1428 gsignal
/build/glibc-Cl5G7W/glibc-2.23/signal/../sysdeps/unix/sysv/linux/raise.c:54:0
#5 0x00007f7a563a302a abort /build/glibc-Cl5G7W/glibc-2.23/stdlib/abort.c:91:0
#6 0x00007f7a56399bd7 __assert_fail_base
/build/glibc-Cl5G7W/glibc-2.23/assert/assert.c:92:0
#7 0x00007f7a56399c82 (/lib/x86_64-linux-gnu/libc.so.6+0x2dc82)
#8 0x00000000013faca1 (/home/martin/clang-bisect/bin/clang-7.0+0x13faca1)
#9 0x000000000212eab1
llvm::SelectionDAGBuilder::visitIntrinsicCall(llvm::CallInst const&, unsigned
int) (/home/martin/clang-bisect/bin/clang-7.0+0x212eab1)
#10 0x00000000021300d1 llvm::SelectionDAGBuilder::visitCall(llvm::CallInst
const&) (/home/martin/clang-bisect/bin/clang-7.0+0x21300d1)
#11 0x00000000021375e3 llvm::SelectionDAGBuilder::visit(llvm::Instruction
const&) (/home/martin/clang-bisect/bin/clang-7.0+0x21375e3)
#12 0x0000000002183fa9
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction,
true, false, void>, false, true>,
llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction, true,
false, void>, false, true>, bool&)
(/home/martin/clang-bisect/bin/clang-7.0+0x2183fa9)
#13 0x000000000218890a
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(/home/martin/clang-bisect/bin/clang-7.0+0x218890a)
#14 0x000000000218ab2c
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(.part.875.constprop.898) (/home/martin/clang-bisect/bin/clang-7.0+0x218ab2c)
#15 0x0000000000c9adb4 (anonymous
namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/home/martin/clang-bisect/bin/clang-7.0+0xc9adb4)
#16 0x00000000010d2415
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/home/martin/clang-bisect/bin/clang-7.0+0x10d2415)
#17 0x000000000146b633 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/martin/clang-bisect/bin/clang-7.0+0x146b633)
#18 0x000000000146b6fc llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/martin/clang-bisect/bin/clang-7.0+0x146b6fc)
#19 0x000000000146b19d llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/martin/clang-bisect/bin/clang-7.0+0x146b19d)
#20 0x0000000001ad4aed (anonymous
namespace)::EmitAssemblyHelper::EmitAssembly(clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/home/martin/clang-bisect/bin/clang-7.0+0x1ad4aed)
#21 0x0000000001ad6417 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/clang-bisect/bin/clang-7.0+0x1ad6417)
#22 0x000000000224dd37
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/home/martin/clang-bisect/bin/clang-7.0+0x224dd37)
#23 0x0000000002581e90 clang::ParseAST(clang::Sema&, bool, bool)
(/home/martin/clang-bisect/bin/clang-7.0+0x2581e90)
#24 0x000000000224d05f clang::CodeGenAction::ExecuteAction()
(/home/martin/clang-bisect/bin/clang-7.0+0x224d05f)
#25 0x0000000001ef4c6e clang::FrontendAction::Execute()
(/home/martin/clang-bisect/bin/clang-7.0+0x1ef4c6e)
#26 0x0000000001ebf816
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/home/martin/clang-bisect/bin/clang-7.0+0x1ebf816)
#27 0x0000000001f8b38c
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/home/martin/clang-bisect/bin/clang-7.0+0x1f8b38c)
#28 0x00000000008c2538 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/home/martin/clang-bisect/bin/clang-7.0+0x8c2538)
#29 0x0000000000864cb4 main (/home/martin/clang-bisect/bin/clang-7.0+0x864cb4)
#30 0x00007f7a5638c830 __libc_start_main
/build/glibc-Cl5G7W/glibc-2.23/csu/../csu/libc-start.c:325:0
#31 0x00000000008be6f9 _start
(/home/martin/clang-bisect/bin/clang-7.0+0x8be6f9)
--
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/20180503/9aa1e525/attachment.html>
More information about the llvm-bugs
mailing list