Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Clang 3.2 segmentation fault #15909

Open Quuxplusone opened 11 years ago

Quuxplusone commented 11 years ago
Bugzilla Link PR15909
Status NEW
Importance P normal
Reported by Jesse_V (jvictors@jessevictors.com)
Reported on 2013-05-04 00:00:01 -0700
Last modified on 2013-10-28 12:49:26 -0700
Version 3.2
Hardware PC Linux
CC llvm-bugs@lists.llvm.org, newincpp@gmail.com, rafael@espindo.la
Fixed by commit(s)
Attachments Application-F2pW49.sh (772 bytes, application/x-shellscript)
Blocks
Blocked by
See also
Linux Mint 14. I was trying to compile https://github.com/Jesse-
V/iVoxely/tree/60995d66c147dbea9799338694288b906a6661b0/Source using the
following flags:
-g -O1 --std=c++0x -Weverything -Wno-documentation -Wno-c++98-compat-pedantic -
Wno-shadow -Wno-cast-align -Wno-padded -fsanitize=undefined

In file included from
/home/jesse/Documents/git_projects/iVoxely/Source/Application.cpp:5:
/home/jesse/Documents/git_projects/iVoxely/Source/./CustomObjects/SierpinskiMountain/SierpMountain.hpp:9:7:
warning: 'SierpMountain' has virtual functions but
      non-virtual destructor [-Wnon-virtual-dtor]
class SierpMountain: public CustomObject
      ^
0  libLLVM-3.2.so.1 0x00002b84d90562ff
1  libLLVM-3.2.so.1 0x00002b84d9056769
2  libpthread.so.0  0x00002b84d9a4dcb0
3  libLLVM-3.2.so.1 0x00002b84d8a3f459
llvm::Constant::getAllOnesValue(llvm::Type*) + 9
4  libLLVM-3.2.so.1 0x00002b84d8ab38a4
llvm::BinaryOperator::CreateNot(llvm::Value*, llvm::Twine const&,
llvm::Instruction*) + 52
5  clang            0x00000000007d051a
6  clang            0x00000000007d4787
7  clang            0x00000000007d6673
8  clang            0x000000000054398f
9  clang            0x00000000007d5f7b
10 clang            0x00000000007d8b74
11 clang            0x00000000007d4d76
12 clang            0x00000000007d852d
clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 61
13 clang            0x000000000079e93b
clang::CodeGen::CodeGenFunction::EvaluateExprAsBool(clang::Expr const*) + 187
14 clang            0x000000000083a40d
clang::CodeGen::CodeGenFunction::EmitBranchOnBoolExpr(clang::Expr const*,
llvm::BasicBlock*, llvm::BasicBlock*) + 109
15 clang            0x000000000082e888
clang::CodeGen::CodeGenFunction::EmitIfStmt(clang::IfStmt const&) + 424
16 clang            0x000000000082c36b
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 379
17 clang            0x000000000082c4ef
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, clang::CodeGen::AggValueSlot) + 239
18 clang            0x000000000082eaf2
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 210
19 clang            0x000000000082c213
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 35
20 clang            0x000000000083e7b7
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 519
21 clang            0x000000000073550a
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl)
+ 394
22 clang            0x0000000000735e5d
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 189
23 clang            0x000000000073654d
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 1437
24 clang            0x0000000000736eeb
25 clang            0x000000000072366c
26 clang            0x0000000000722e86
27 clang            0x0000000000859c5a clang::ParseAST(clang::Sema&, bool,
bool) + 298
28 clang            0x00000000005f51b1 clang::FrontendAction::Execute() + 97
29 clang            0x00000000005dc7ca
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 282
30 clang            0x00000000005c6222
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1378
31 clang            0x00000000005c1228 cc1_main(char const**, char const**,
char const*, void*) + 1160
32 clang            0x00000000005c0104 main + 7316
33 libc.so.6        0x00002b84da19676d __libc_start_main + 237
34 clang            0x00000000005c0c09
Stack dump:
0.  Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu -emit-obj
-disable-free -disable-llvm-verifier -main-file-name Application.cpp -
mrelocation-model static -fmath-errno -masm-verbose -mconstructor-aliases -
munwind-tables -fuse-init-array -target-cpu x86-64 -target-linker-version
2.22.90.20120924 -momit-leaf-frame-pointer -g -coverage-file
/home/jesse/Documents/git_projects/iVoxely/Source/CMakeFiles/OpenGL_program.dir/Application.cpp.o
-resource-dir /usr/bin/../lib/clang/3.2 -I
/home/jesse/Documents/git_projects/iVoxely/Source/. -I
/home/jesse/Documents/git_projects/iVoxely/Source/parsers -I
/home/jesse/Documents/git_projects/iVoxely/Source/glm -fmodule-cache-path
/var/tmp/clang-module-cache -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-
gnu/4.7/../../../../include/c++/4.7 -internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/x86_64-
linux-gnu -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-
gnu/4.7/../../../../include/c++/4.7/backward -internal-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++ -internal-
isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/x86_64-
linux-gnu -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-
gnu/4.7/../../../../include/c++/backward -internal-isystem /usr/local/include -
internal-isystem /usr/bin/../lib/clang/3.2/include -internal-isystem
/usr/include/clang/3.2/include/ -internal-externc-isystem /usr/include/x86_64-
linux-gnu -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-
externc-isystem /usr/include -O1 -Weverything -Wno-documentation -Wno-c++98-
compat-pedantic -Wno-shadow -Wno-cast-align -Wno-padded --std=c++0x -
fdeprecated-macro -fdebug-compilation-dir
/home/jesse/Documents/git_projects/iVoxely/Source -ferror-limit 19 -fmessage-
length 168 -fsanitize=signed-integer-overflow,divide-by-
zero,shift,unreachable,return,vla-bound,alignment,null,vptr,object-size,float-
cast-overflow -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -
fdiagnostics-show-option -fcolor-diagnostics -o
CMakeFiles/OpenGL_program.dir/Application.cpp.o -x c++
/home/jesse/Documents/git_projects/iVoxely/Source/Application.cpp
1.  /home/jesse/Documents/git_projects/iVoxely/Source/Application.cpp:224:1:
current parser token 'void'
2.  /home/jesse/Documents/git_projects/iVoxely/Source/Application.cpp:208:19:
LLVM IR generation of declaration 'Application::moveLight'
3.  /home/jesse/Documents/git_projects/iVoxely/Source/Application.cpp:208:19:
Generating code for declaration 'Application::moveLight'
4.  /home/jesse/Documents/git_projects/iVoxely/Source/Application.cpp:209:1:
LLVM IR generation of compound statement ('{}')
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
Ubuntu clang version 3.2-1~exp5ubuntu1~quantal1 (tags/RELEASE_32/final) (based
on LLVM 3.2)
Target: x86_64-pc-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/Application-F2pW49.cpp
clang: note: diagnostic msg: /tmp/Application-F2pW49.sh
clang: note: diagnostic msg:

********************
make[2]: *** [CMakeFiles/OpenGL_program.dir/Application.cpp.o] Error 254
make[1]: *** [CMakeFiles/OpenGL_program.dir/all] Error 2
make: *** [all] Error 2
Quuxplusone commented 11 years ago

Attached Application-F2pW49.sh (772 bytes, application/x-shellscript): Diagnostic msg