[LLVMbugs] [Bug 15728] New: clang crashes with SIGSEV in clang::CodeGen::CodeGenFunction::EmitScalarExpr
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Apr 11 15:31:32 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=15728
Bug ID: 15728
Summary: clang crashes with SIGSEV in
clang::CodeGen::CodeGenFunction::EmitScalarExpr
Product: clang
Version: 3.2
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: spam at abma.de
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 10341
--> http://llvm.org/bugs/attachment.cgi?id=10341&action=edit
source code which lets clang crash
0 libLLVM-3.2.so.1 0x00007f23a3af4c0f
1 libLLVM-3.2.so.1 0x00007f23a3af5079
2 libpthread.so.0 0x00007f23a2ba8bd0
3 clang 0x0000000000540c38
4 clang 0x00000000007d610f
5 clang 0x00000000007d85fd
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 61
6 clang 0x000000000079bebf
clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot, bool) + 303
7 clang 0x00000000007ac826
clang::CodeGen::CodeGenFunction::EmitIgnoredExpr(clang::Expr const*) + 70
8 clang 0x000000000082c24f
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 303
9 clang 0x000000000082c41f
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, clang::CodeGen::AggValueSlot) + 239
10 clang 0x000000000082ea42
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 210
11 clang 0x000000000082c143
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 35
12 clang 0x000000000082e7f3
clang::CodeGen::CodeGenFunction::EmitIfStmt(clang::IfStmt const&) + 483
13 clang 0x000000000082c29b
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 379
14 clang 0x000000000082c41f
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, clang::CodeGen::AggValueSlot) + 239
15 clang 0x000000000082ea42
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 210
16 clang 0x000000000082c143
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 35
17 clang 0x0000000000771231
clang::CodeGen::CodeGenFunction::EmitDestructorBody(clang::CodeGen::FunctionArgList&)
+ 385
18 clang 0x000000000083eb20
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 1600
19 clang 0x000000000075b942
clang::CodeGen::CodeGenModule::EmitCXXDestructor(clang::CXXDestructorDecl
const*, clang::CXXDtorType) + 194
20 clang 0x0000000000736221
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 465
21 clang 0x0000000000737968
clang::CodeGen::CodeGenModule::EmitDeferred() + 216
22 clang 0x0000000000737979 clang::CodeGen::CodeGenModule::Release()
+ 9
23 clang 0x000000000072332b
24 clang 0x0000000000859bd2 clang::ParseAST(clang::Sema&, bool,
bool) + 498
25 clang 0x00000000005f50b1 clang::FrontendAction::Execute() + 97
26 clang 0x00000000005dc57a
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 282
27 clang 0x00000000005c5e92
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1378
28 clang 0x00000000005c0e88 cc1_main(char const**, char const**,
char const*, void*) + 1160
29 clang 0x00000000005bfd84 main + 7316
30 libc.so.6 0x00007f23a22d9ea5 __libc_start_main + 245
31 clang 0x00000000005c0889
Stack dump:
0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu
-emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name
MiniMap.cpp -mrelocation-model static -mdisable-fp-elim -relaxed-aliasing
-fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables
-fuse-init-array -target-cpu x86-64 -target-linker-version 2.23.1
-momit-leaf-frame-pointer -g -D BOOST_NO_FENV_H -D
SPRING_DATADIR="/home/abma/local/spring/develop/share/games/spring" -D
STREFLOP_SSE -D SYNCCHECK -D USE_GML -D USE_GML_SIM -D USE_VALGRIND -D DEBUG -D
_DEBUG -D NO_CATCH_EXCEPTIONS -O0 -Wall -Wno-sign-compare -fdeprecated-macro
-ferror-limit 19 -fmessage-length 0 -fvisibility hidden
-fvisibility-inlines-hidden -pthread -mstackrealign -fobjc-runtime=gcc
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -x c++
MiniMap-UMYYr8.cpp
1. <eof> parser at end of file
2. Per-file LLVM IR generation
3. rts/lib/gml/gmlcls.h:235:10: Generating code for declaration
'gmlBaseMutexLock<boost::unique_lock<boost::recursive_mutex>,
boost::recursive_mutex>::~gmlBaseMutexLock'
4. rts/lib/gml/gmlcls.h:235:30: LLVM IR generation of compound statement
('{}')
5. rts/lib/gml/gmlcls.h:236:23: LLVM IR generation of compound statement
('{}')
Segmentation fault (core dumped)
--
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/20130411/83393259/attachment.html>
More information about the llvm-bugs
mailing list