<html>
<head>
<base href="http://llvm.org/bugs/" />
</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 --- - stage1 compiler crashes while compiling AsmMatcherEmitter.cpp"
href="http://llvm.org/bugs/show_bug.cgi?id=22296">22296</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>stage1 compiler crashes while compiling AsmMatcherEmitter.cpp
</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>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ismail@donmez.ws
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>This is on Linux x86-64:
FAILED: /home/abuild/rpmbuild/BUILD/llvm/stage1/bin/clang++ -D_DEBUG
-D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS -stdlib=libc++ -fPIC -fvisibility-inlines-hidden -Wall -W
-Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers
-pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor
-Werror=date-time -std=c++11 -fcolor-diagnostics -ffunction-sections
-fdata-sections -O2 -g -Iutils/TableGen -I../utils/TableGen -Iinclude
-I../include -UNDEBUG -fno-exceptions -MMD -MT
utils/TableGen/CMakeFiles/llvm-tblgen.dir/AsmMatcherEmitter.cpp.o -MF
utils/TableGen/CMakeFiles/llvm-tblgen.dir/AsmMatcherEmitter.cpp.o.d -o
utils/TableGen/CMakeFiles/llvm-tblgen.dir/AsmMatcherEmitter.cpp.o -c
../utils/TableGen/AsmMatcherEmitter.cpp
0 clang-3.7 0x0000000000d4f2d8 llvm::sys::PrintStackTrace(_IO_FILE*) +
40
1 clang-3.7 0x0000000000d5070b
2 libpthread.so.0 0x00007f0e5a4c6050
3 clang-3.7 0x0000000000f6ab10
llvm::DwarfExpression::AddMachineRegPiece(unsigned int, unsigned int, unsigned
int) + 256
4 clang-3.7 0x0000000000f6b8d5
llvm::DwarfExpression::AddMachineRegExpression(llvm::DIExpression, unsigned
int, unsigned int) + 933
5 clang-3.7 0x0000000000f901f0
llvm::DwarfCompileUnit::addComplexAddress(llvm::DbgVariable const&, llvm::DIE&,
llvm::dwarf::Attribute, llvm::MachineLocation const&) + 496
6 clang-3.7 0x0000000000f8e917
llvm::DwarfCompileUnit::constructVariableDIEImpl(llvm::DbgVariable const&,
bool) + 471
7 clang-3.7 0x0000000000f8d6dd
llvm::DwarfCompileUnit::createScopeChildrenDIE(llvm::LexicalScope*,
llvm::SmallVectorImpl<std::__1::unique_ptr<llvm::DIE,
std::__1::default_delete<llvm::DIE> > >&, unsigned int*) + 157
8 clang-3.7 0x0000000000f8ce94
llvm::DwarfCompileUnit::constructScopeDIE(llvm::LexicalScope*,
llvm::SmallVectorImpl<std::__1::unique_ptr<llvm::DIE,
std::__1::default_delete<llvm::DIE> > >&) + 196
9 clang-3.7 0x0000000000f8d78f
llvm::DwarfCompileUnit::createScopeChildrenDIE(llvm::LexicalScope*,
llvm::SmallVectorImpl<std::__1::unique_ptr<llvm::DIE,
std::__1::default_delete<llvm::DIE> > >&, unsigned int*) + 335
10 clang-3.7 0x0000000000f8cec5
llvm::DwarfCompileUnit::constructScopeDIE(llvm::LexicalScope*,
llvm::SmallVectorImpl<std::__1::unique_ptr<llvm::DIE,
std::__1::default_delete<llvm::DIE> > >&) + 245
11 clang-3.7 0x0000000000f8d78f
llvm::DwarfCompileUnit::createScopeChildrenDIE(llvm::LexicalScope*,
llvm::SmallVectorImpl<std::__1::unique_ptr<llvm::DIE,
std::__1::default_delete<llvm::DIE> > >&, unsigned int*) + 335
12 clang-3.7 0x0000000000f8cec5
llvm::DwarfCompileUnit::constructScopeDIE(llvm::LexicalScope*,
llvm::SmallVectorImpl<std::__1::unique_ptr<llvm::DIE,
std::__1::default_delete<llvm::DIE> > >&) + 245
13 clang-3.7 0x0000000000f8d78f
llvm::DwarfCompileUnit::createScopeChildrenDIE(llvm::LexicalScope*,
llvm::SmallVectorImpl<std::__1::unique_ptr<llvm::DIE,
std::__1::default_delete<llvm::DIE> > >&, unsigned int*) + 335
14 clang-3.7 0x0000000000f8cec5
llvm::DwarfCompileUnit::constructScopeDIE(llvm::LexicalScope*,
llvm::SmallVectorImpl<std::__1::unique_ptr<llvm::DIE,
std::__1::default_delete<llvm::DIE> > >&) + 245
15 clang-3.7 0x0000000000f8d78f
llvm::DwarfCompileUnit::createScopeChildrenDIE(llvm::LexicalScope*,
llvm::SmallVectorImpl<std::__1::unique_ptr<llvm::DIE,
std::__1::default_delete<llvm::DIE> > >&, unsigned int*) + 335
16 clang-3.7 0x0000000000f8cec5
llvm::DwarfCompileUnit::constructScopeDIE(llvm::LexicalScope*,
llvm::SmallVectorImpl<std::__1::unique_ptr<llvm::DIE,
std::__1::default_delete<llvm::DIE> > >&) + 245
17 clang-3.7 0x0000000000f8d78f
llvm::DwarfCompileUnit::createScopeChildrenDIE(llvm::LexicalScope*,
llvm::SmallVectorImpl<std::__1::unique_ptr<llvm::DIE,
std::__1::default_delete<llvm::DIE> > >&, unsigned int*) + 335
18 clang-3.7 0x0000000000f8cec5
llvm::DwarfCompileUnit::constructScopeDIE(llvm::LexicalScope*,
llvm::SmallVectorImpl<std::__1::unique_ptr<llvm::DIE,
std::__1::default_delete<llvm::DIE> > >&) + 245
19 clang-3.7 0x0000000000f8d78f
llvm::DwarfCompileUnit::createScopeChildrenDIE(llvm::LexicalScope*,
llvm::SmallVectorImpl<std::__1::unique_ptr<llvm::DIE,
std::__1::default_delete<llvm::DIE> > >&, unsigned int*) + 335
20 clang-3.7 0x0000000000f8cec5
llvm::DwarfCompileUnit::constructScopeDIE(llvm::LexicalScope*,
llvm::SmallVectorImpl<std::__1::unique_ptr<llvm::DIE,
std::__1::default_delete<llvm::DIE> > >&) + 245
21 clang-3.7 0x0000000000f8d78f
llvm::DwarfCompileUnit::createScopeChildrenDIE(llvm::LexicalScope*,
llvm::SmallVectorImpl<std::__1::unique_ptr<llvm::DIE,
std::__1::default_delete<llvm::DIE> > >&, unsigned int*) + 335
22 clang-3.7 0x0000000000f8ce94
llvm::DwarfCompileUnit::constructScopeDIE(llvm::LexicalScope*,
llvm::SmallVectorImpl<std::__1::unique_ptr<llvm::DIE,
std::__1::default_delete<llvm::DIE> > >&) + 196
23 clang-3.7 0x0000000000f8d78f
llvm::DwarfCompileUnit::createScopeChildrenDIE(llvm::LexicalScope*,
llvm::SmallVectorImpl<std::__1::unique_ptr<llvm::DIE,
std::__1::default_delete<llvm::DIE> > >&, unsigned int*) + 335
24 clang-3.7 0x0000000000f8f166
llvm::DwarfCompileUnit::createAndAddScopeChildren(llvm::LexicalScope*,
llvm::DIE&) + 54
25 clang-3.7 0x0000000000f8efb6
llvm::DwarfCompileUnit::constructSubprogramScopeDIE(llvm::LexicalScope*) + 166
26 clang-3.7 0x0000000000f5bd47
llvm::DwarfDebug::endFunction(llvm::MachineFunction const*) + 1271
27 clang-3.7 0x0000000000f48b9d llvm::AsmPrinter::EmitFunctionBody() +
4557
28 clang-3.7 0x000000000066b735
29 clang-3.7 0x00000000008cad13
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 99
30 clang-3.7 0x0000000000ac3cb9
llvm::FPPassManager::runOnFunction(llvm::Function&) + 473
31 clang-3.7 0x0000000000ac3e9b
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
32 clang-3.7 0x0000000000ac433e
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 942
33 clang-3.7 0x000000000111927d
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) +
7373
34 clang-3.7 0x000000000110db9d
35 clang-3.7 0x00000000013cbbc3 clang::ParseAST(clang::Sema&, bool,
bool) + 483
36 clang-3.7 0x0000000000ed3a09 clang::FrontendAction::Execute() + 57
37 clang-3.7 0x0000000000ea9853
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 803
38 clang-3.7 0x0000000000f4547a
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3242
39 clang-3.7 0x0000000000667751 cc1_main(llvm::ArrayRef<char const*>,
char const*, void*) + 561
40 clang-3.7 0x00000000006641e1 main + 1633
41 libc.so.6 0x00007f0e59719b45 __libc_start_main + 245
42 clang-3.7 0x0000000000663a60
Stack dump:
0. Program arguments: /home/abuild/rpmbuild/BUILD/llvm/stage1/bin/clang-3.7
-cc1 -triple x86_64-suse-linux -emit-obj -disable-free -disable-llvm-verifier
-main-file-name AsmMatcherEmitter.cpp -mrelocation-model pic -pic-level 2
-mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-tables -fuse-init-array -target-cpu x86-64 -momit-leaf-frame-pointer
-g -dwarf-column-info -ffunction-sections -fdata-sections -coverage-file
/home/abuild/rpmbuild/BUILD/llvm/stage2/utils/TableGen/CMakeFiles/llvm-tblgen.dir/AsmMatcherEmitter.cpp.o
-resource-dir /home/abuild/rpmbuild/BUILD/llvm/stage1/bin/../lib64/clang/3.7.0
-dependency-file
utils/TableGen/CMakeFiles/llvm-tblgen.dir/AsmMatcherEmitter.cpp.o.d -MT
utils/TableGen/CMakeFiles/llvm-tblgen.dir/AsmMatcherEmitter.cpp.o -D _DEBUG -D
_GNU_SOURCE -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D
__STDC_LIMIT_MACROS -U NDEBUG -I utils/TableGen -I ../utils/TableGen -I include
-I ../include -internal-isystem
/home/abuild/rpmbuild/BUILD/llvm/stage1/bin/../include/c++/v1 -internal-isystem
/usr/local/include -internal-isystem
/home/abuild/rpmbuild/BUILD/llvm/stage1/bin/../lib64/clang/3.7.0/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O2
-Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wmissing-field-initializers -Wno-long-long -Wcovered-switch-default
-Wnon-virtual-dtor -Werror=date-time -pedantic -std=c++11 -fdeprecated-macro
-fdebug-compilation-dir /home/abuild/rpmbuild/BUILD/llvm/stage2 -ferror-limit
19 -fmessage-length 0 -fvisibility-inlines-hidden -mstackrealign
-fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics
-vectorize-loops -vectorize-slp -o
utils/TableGen/CMakeFiles/llvm-tblgen.dir/AsmMatcherEmitter.cpp.o -x c++
../utils/TableGen/AsmMatcherEmitter.cpp
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module
'../utils/TableGen/AsmMatcherEmitter.cpp'.
4. Running pass 'X86 Assembly / Object Emitter' on function
'@_ZN12_GLOBAL__N_114AsmMatcherInfo9buildInfoEv'
clang-3.7: error: unable to execute command: Segmentation fault
clang-3.7: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.7.0 (trunk 226802)
Target: x86_64-suse-linux
Thread model: posix
clang-3.7: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang-3.7: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.7: note: diagnostic msg: /tmp/AsmMatcherEmitter-378f17.cpp
clang-3.7: note: diagnostic msg: /tmp/AsmMatcherEmitter-378f17.sh
clang-3.7: note: diagnostic msg:
********************</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>