<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 --- - Segmentation fault in clang::CodeGen::CodeGenFunction::EmitScalarExpr (Clang 3.4 trunk)"
href="http://llvm.org/bugs/show_bug.cgi?id=18059">18059</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Segmentation fault in clang::CodeGen::CodeGenFunction::EmitScalarExpr (Clang 3.4 trunk)
</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>LLVM Codegen
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>aszarsha@gmail.com
</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>Created <span class=""><a href="attachment.cgi?id=11609" name="attach_11609" title="Archive with Solver-9dbcd0.{sh|cpp}">attachment 11609</a> <a href="attachment.cgi?id=11609&action=edit" title="Archive with Solver-9dbcd0.{sh|cpp}">[details]</a></span>
Archive with Solver-9dbcd0.{sh|cpp}
The bug is present in 3.3, and in 3.4 trunk. Might be a duplicate of <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Clang 3.2 segmentation fault"
href="show_bug.cgi?id=15909">Bug 15909</a>,
which is for 3.2.
Error message:
0 clang-3.4 0x00000000013c5432 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1 clang-3.4 0x00000000013c4fe4
2 libpthread.so.0 0x00007fe3d1f7e870
3 clang-3.4 0x00000000014e8c97
4 clang-3.4 0x00000000006722c5
5 clang-3.4 0x00000000014e9d5a
6 clang-3.4 0x00000000014eb12d
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 61
7 clang-3.4 0x00000000014a74b7
clang::CodeGen::CodeGenFunction::EmitScalarInit(clang::Expr const*,
clang::ValueDecl const*, clang::CodeGen::LValue, bool) + 967
8 clang-3.4 0x0000000001499934
clang::CodeGen::CodeGenFunction::EmitInitializerForField(clang::FieldDecl*,
clang::CodeGen::LValue, clang::Expr*, llvm::ArrayRef<clang::VarDecl*>) + 388
9 clang-3.4 0x000000000149a1b2
10 clang-3.4 0x000000000149ac51
clang::CodeGen::CodeGenFunction::EmitCtorPrologue(clang::CXXConstructorDecl
const*, clang::CXXCtorType, clang::CodeGen::FunctionArgList&) + 929
11 clang-3.4 0x000000000149aff7
clang::CodeGen::CodeGenFunction::EmitConstructorBody(clang::CodeGen::FunctionArgList&)
+ 151
12 clang-3.4 0x000000000142ac8b
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 1707
13 clang-3.4 0x000000000149d7aa
clang::CodeGen::CodeGenModule::EmitCXXConstructor(clang::CXXConstructorDecl
const*, clang::CXXCtorType) + 186
14 clang-3.4 0x000000000143e0d1
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 385
15 clang-3.4 0x000000000143e1bd
clang::CodeGen::CodeGenModule::EmitDeferred() + 125
16 clang-3.4 0x000000000143e1f9 clang::CodeGen::CodeGenModule::Release()
+ 9
17 clang-3.4 0x00000000013e8020
18 clang-3.4 0x00000000016823db clang::ParseAST(clang::Sema&, bool, bool)
+ 507
19 clang-3.4 0x00000000015c9df1 clang::FrontendAction::Execute() + 177
20 clang-3.4 0x00000000015ab220
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 304
21 clang-3.4 0x00000000013c8f4f
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1727
22 clang-3.4 0x000000000074b2d8 cc1_main(char const**, char const**, char
const*, void*) + 1192
23 clang-3.4 0x000000000072e4eb main + 7611
24 libc.so.6 0x00007fe3d13c8bc5 __libc_start_main + 245
25 clang-3.4 0x00000000007497e5
Stack dump:
0. Program arguments: /usr/bin/clang-3.4 -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free
-disable-llvm-verifier -main-file-name Solver.cpp -mrelocation-model static
-mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-tables -fuse-init-array -target-cpu x86-64 -g -coverage-file
/home/thume/Work/nina/src/xHeinz/CMakeFiles/mwcscommon.dir/Solver.cpp.o
-resource-dir /usr/bin/../lib/clang/3.4 -D IL_STD -D DEBUG -D VERBOSE -I
/opt/ibm/ILOG/CPLEX_Studio1251/cplex/include -I
/opt/ibm/ILOG/CPLEX_Studio1251/concert/include -I
/home/thume/Work/nina/src/xHeinz/../externlib/lemon-1.3/include -I
/home/thume/Work/nina/src/xHeinz/../externlib/tinyxml2 -I
/home/thume/Work/nina/src/xHeinz/.. -I /home/thume/Work/nina/src/xHeinz/.
-internal-isystem /usr/include/c++/v1 -internal-isystem /usr/local/include
-internal-isystem /usr/bin/../lib/clang/3.4/include -internal-externc-isystem
/include -internal-externc-isystem /usr/include -Wall -std=c++1y
-fdeprecated-macro -fdebug-compilation-dir /home/thume/Work/nina/src/xHeinz
-ferror-limit 19 -fmessage-length 123 -mstackrealign -fobjc-runtime=gcc
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
-vectorize-slp -o CMakeFiles/mwcscommon.dir/Solver.cpp.o -x c++
/home/thume/Work/nina/src/xHeinz/Solver.cpp
1. <eof> parser at end of file
2. Per-file LLVM IR generation
3. /home/thume/Work/nina/src/xHeinz/./Graph.hpp:34:6: Generating code for
declaration
'xHeinz::Graph::DataStruct<lemon::SmartGraphBase::Node>::DataStruct'
clang-3.4: error: unable to execute command: Segmentation fault (core dumped)
clang-3.4: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.4 (trunk)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang-3.4: note: diagnostic msg: PLEASE submit a bug report to and include the
crash backtrace, preprocessed source, and associated run script.
clang-3.4: 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.4: note: diagnostic msg: /tmp/Solver-9dbcd0.cpp
clang-3.4: note: diagnostic msg: /tmp/Solver-9dbcd0.sh
clang-3.4: 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>