https://llvm.org/bugs/show_bug.cgi?id=24752
Bug ID: 24752 Summary: clang crashed during compilation Product: clang Version: unspecified Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangb...@nondot.org Reporter: alexi...@tzi.de CC: llvm-bugs@lists.llvm.org Classification: Unclassified Created attachment 14856 --> https://llvm.org/bugs/attachment.cgi?id=14856&action=edit Requested attachments Got the following error while compiling some code. The same thing happened on Windows with clang 3.5.2 0 libLLVM-3.4.so.1 0x00002b3c574a65d2 llvm::sys::PrintStackTrace(_IO_FILE*) + 34 1 libLLVM-3.4.so.1 0x00002b3c574a63c4 2 libpthread.so.0 0x00002b3c57f6a340 3 clang 0x00000000008c10e7 4 clang 0x000000000058034d 5 clang 0x00000000008c1e26 6 clang 0x00000000008c341d clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 61 7 clang 0x000000000088207f clang::CodeGen::CodeGenFunction::EmitScalarInit(clang::Expr const*, clang::ValueDecl const*, clang::CodeGen::LValue, bool) + 959 8 clang 0x0000000000877e64 clang::CodeGen::CodeGenFunction::EmitInitializerForField(clang::FieldDecl*, clang::CodeGen::LValue, clang::Expr*, llvm::ArrayRef<clang::VarDecl*>) + 388 9 clang 0x00000000008786e9 10 clang 0x0000000000879915 clang::CodeGen::CodeGenFunction::EmitCtorPrologue(clang::CXXConstructorDecl const*, clang::CXXCtorType, clang::CodeGen::FunctionArgList&) + 901 11 clang 0x0000000000879cb7 clang::CodeGen::CodeGenFunction::EmitConstructorBody(clang::CodeGen::FunctionArgList&) + 151 12 clang 0x000000000080953b clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 1595 13 clang 0x0000000000862abc clang::CodeGen::CodeGenModule::EmitCXXConstructor(clang::CXXConstructorDecl const*, clang::CXXCtorType) + 188 14 clang 0x0000000000816be1 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 385 15 clang 0x000000000081873d clang::CodeGen::CodeGenModule::EmitDeferred() + 125 16 clang 0x0000000000818779 clang::CodeGen::CodeGenModule::Release() + 9 17 clang 0x00000000007c6e70 18 clang 0x000000000092284b clang::ParseAST(clang::Sema&, bool, bool) + 507 19 clang 0x0000000000671149 clang::FrontendAction::Execute() + 169 20 clang 0x0000000000651a75 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 293 21 clang 0x000000000063c9b6 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1638 22 clang 0x0000000000638788 cc1_main(char const**, char const**, char const*, void*) + 1176 23 clang 0x0000000000636fff main + 7519 24 libc.so.6 0x00002b3c586b3ec5 __libc_start_main + 245 25 clang 0x00000000006377ef 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 ThumbnailProvider.cpp -mrelocation-model pic -pic-level 1 -mdisable-fp-elim -menable-no-infs -menable-no-nans -menable-unsafe-fp-math -ffp-contract=fast -ffast-math -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -target-feature +ssse3 -target-feature +mmx -target-feature +sse -target-feature +sse2 -target-feature +sse3 -target-linker-version 2.24 -g -coverage-file /home/alexis/.ccache/2/7/6fa6b9e971a69d0dfbba851f4403ae-930329.o.tmp.Will.8916 -resource-dir /usr/bin/../lib/clang/3.4 -D __extern_always_inline=inline -D LINUX -D EIGEN_INITIALIZE_MATRICES_BY_NAN -D TARGET_SIM -D QT_SHARED -D QT_OPENGL_LIB -D QT_GUI_LIB -D QT_CORE_LIB -D QT_NO_STL -D QT_NO_DEBUG -I ../../Src -I ../../Util/Eigen -I ../../Util/GameController/include -I ../../Util/fftw-3.3 -I ../../Util/libjpeg/src -I ../../Util/libqxt -I ../../Util/qtpropertybrowser -I ../../Util/SimRobot/Src/SimRobot -I ../../Util/SimRobot/Src/SimRobotCore2 -I ../../Util/SimRobot/Src/SimRobotEditor -I ../../Util/snappy/include -I ../../Build/Linux/SimulatedNao/Develop -I /usr/include/qt4/QtCore -I /usr/include/qt4/QtGui -I /usr/include/qt4/QtOpenGL -I /usr/include/qt4 -I /usr/include/QtCore -I /usr/include/QtGui -I /usr/include/QtOpenGL -I /usr/include/Qt -I ../../Util/SimRobot/Util/ode/Linux/include -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8 -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/x86_64-linux-gnu -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/backward -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8 -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/clang/3.4/include -internal-externc-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -Wall -Wconversion -Wliteral-conversion -Wsign-compare -Wno-deprecated -Wno-shorten-64-to-32 -Wno-sign-conversion -Wno-switch -std=c++11 -fdebug-compilation-dir /home/alexis/Uni/B-Human/Make/Linux -ferror-limit 19 -fmessage-length 0 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -vectorize-slp -o /home/alexis/.ccache/2/7/6fa6b9e971a69d0dfbba851f4403ae-930329.o.tmp.Will.8916 -x c++ ../../Src/Modules/Infrastructure/ThumbnailProvider.cpp 1. <eof> parser at end of file 2. Per-file LLVM IR generation 3. ../../Src/Representations/Infrastructure/Thumbnail.h:30:5: Generating code for declaration 'Thumbnail::TImage<unsigned char>::TImage' clang: error: unable to execute command: Segmentation fault (core dumped) clang: error: clang frontend command failed due to signal (use -v to see invocation) Ubuntu clang version 3.4-1ubuntu3 (tags/RELEASE_34/final) (based on LLVM 3.4) Target: x86_64-pc-linux-gnu Thread model: posix clang: note: diagnostic msg: PLEASE submit a bug report to http://bugs.debian.org/ 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/ThumbnailProvider-19a386.cpp clang: note: diagnostic msg: /tmp/ThumbnailProvider-19a386.sh clang: note: diagnostic msg: ******************** 0 libLLVM-3.4.so.1 0x00002b6ff2d455d2 llvm::sys::PrintStackTrace(_IO_FILE*) + 34 1 libLLVM-3.4.so.1 0x00002b6ff2d453c4 2 libpthread.so.0 0x00002b6ff3809340 3 clang 0x00000000008c10e7 4 clang 0x000000000058034d 5 clang 0x00000000008c1e26 6 clang 0x00000000008c341d clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 61 7 clang 0x000000000088207f clang::CodeGen::CodeGenFunction::EmitScalarInit(clang::Expr const*, clang::ValueDecl const*, clang::CodeGen::LValue, bool) + 959 8 clang 0x0000000000877e64 clang::CodeGen::CodeGenFunction::EmitInitializerForField(clang::FieldDecl*, clang::CodeGen::LValue, clang::Expr*, llvm::ArrayRef<clang::VarDecl*>) + 388 9 clang 0x00000000008786e9 10 clang 0x0000000000879915 clang::CodeGen::CodeGenFunction::EmitCtorPrologue(clang::CXXConstructorDecl const*, clang::CXXCtorType, clang::CodeGen::FunctionArgList&) + 901 11 clang 0x0000000000879cb7 clang::CodeGen::CodeGenFunction::EmitConstructorBody(clang::CodeGen::FunctionArgList&) + 151 12 clang 0x000000000080953b clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 1595 13 clang 0x0000000000862abc clang::CodeGen::CodeGenModule::EmitCXXConstructor(clang::CXXConstructorDecl const*, clang::CXXCtorType) + 188 14 clang 0x0000000000816be1 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 385 15 clang 0x000000000081873d clang::CodeGen::CodeGenModule::EmitDeferred() + 125 16 clang 0x0000000000818779 clang::CodeGen::CodeGenModule::Release() + 9 17 clang 0x00000000007c6e70 18 clang 0x000000000092284b clang::ParseAST(clang::Sema&, bool, bool) + 507 19 clang 0x0000000000671149 clang::FrontendAction::Execute() + 169 20 clang 0x0000000000651a75 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 293 21 clang 0x000000000063c9b6 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1638 22 clang 0x0000000000638788 cc1_main(char const**, char const**, char const*, void*) + 1176 23 clang 0x0000000000636fff main + 7519 24 libc.so.6 0x00002b6ff3f52ec5 __libc_start_main + 245 25 clang 0x00000000006377ef 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 CognitionLogDataProvider.cpp -mrelocation-model pic -pic-level 1 -mdisable-fp-elim -menable-no-infs -menable-no-nans -menable-unsafe-fp-math -ffp-contract=fast -ffast-math -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -target-feature +ssse3 -target-feature +mmx -target-feature +sse -target-feature +sse2 -target-feature +sse3 -target-linker-version 2.24 -g -coverage-file /home/alexis/.ccache/d/2/f7419ab91a5e3a0bfbda0425e4b81b-3473343.o.tmp.Will.8917 -resource-dir /usr/bin/../lib/clang/3.4 -D __extern_always_inline=inline -D LINUX -D EIGEN_INITIALIZE_MATRICES_BY_NAN -D TARGET_SIM -D QT_SHARED -D QT_OPENGL_LIB -D QT_GUI_LIB -D QT_CORE_LIB -D QT_NO_STL -D QT_NO_DEBUG -I ../../Src -I ../../Util/Eigen -I ../../Util/GameController/include -I ../../Util/fftw-3.3 -I ../../Util/libjpeg/src -I ../../Util/libqxt -I ../../Util/qtpropertybrowser -I ../../Util/SimRobot/Src/SimRobot -I ../../Util/SimRobot/Src/SimRobotCore2 -I ../../Util/SimRobot/Src/SimRobotEditor -I ../../Util/snappy/include -I ../../Build/Linux/SimulatedNao/Develop -I /usr/include/qt4/QtCore -I /usr/include/qt4/QtGui -I /usr/include/qt4/QtOpenGL -I /usr/include/qt4 -I /usr/include/QtCore -I /usr/include/QtGui -I /usr/include/QtOpenGL -I /usr/include/Qt -I ../../Util/SimRobot/Util/ode/Linux/include -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8 -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/x86_64-linux-gnu -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/backward -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8 -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/clang/3.4/include -internal-externc-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -Wall -Wconversion -Wliteral-conversion -Wsign-compare -Wno-deprecated -Wno-shorten-64-to-32 -Wno-sign-conversion -Wno-switch -std=c++11 -fdebug-compilation-dir /home/alexis/Uni/B-Human/Make/Linux -ferror-limit 19 -fmessage-length 0 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -vectorize-slp -o /home/alexis/.ccache/d/2/f7419ab91a5e3a0bfbda0425e4b81b-3473343.o.tmp.Will.8917 -x c++ ../../Src/Modules/Infrastructure/CognitionLogDataProvider.cpp 1. <eof> parser at end of file 2. Per-file LLVM IR generation 3. ../../Src/Representations/Infrastructure/Thumbnail.h:30:5: Generating code for declaration 'Thumbnail::TImage<unsigned char>::TImage' clang: error: unable to execute command: Segmentation fault (core dumped) clang: error: clang frontend command failed due to signal (use -v to see invocation) Ubuntu clang version 3.4-1ubuntu3 (tags/RELEASE_34/final) (based on LLVM 3.4) Target: x86_64-pc-linux-gnu Thread model: posix clang: note: diagnostic msg: PLEASE submit a bug report to http://bugs.debian.org/ and include the crash backtrace, preprocessed source, and associated run script. clang: error: unable to execute command: Segmentation fault (core dumped) clang: note: diagnostic msg: Error generating preprocessed source(s). 0 libLLVM-3.4.so.1 0x00002b7bff6a05d2 llvm::sys::PrintStackTrace(_IO_FILE*) + 34 1 libLLVM-3.4.so.1 0x00002b7bff6a03c4 2 libpthread.so.0 0x00002b7c00164340 3 clang 0x00000000008c10e7 4 clang 0x000000000058034d 5 clang 0x00000000008c1e26 6 clang 0x00000000008c341d clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) + 61 7 clang 0x000000000088207f clang::CodeGen::CodeGenFunction::EmitScalarInit(clang::Expr const*, clang::ValueDecl const*, clang::CodeGen::LValue, bool) + 959 8 clang 0x0000000000877e64 clang::CodeGen::CodeGenFunction::EmitInitializerForField(clang::FieldDecl*, clang::CodeGen::LValue, clang::Expr*, llvm::ArrayRef<clang::VarDecl*>) + 388 9 clang 0x00000000008786e9 10 clang 0x0000000000879915 clang::CodeGen::CodeGenFunction::EmitCtorPrologue(clang::CXXConstructorDecl const*, clang::CXXCtorType, clang::CodeGen::FunctionArgList&) + 901 11 clang 0x0000000000879cb7 clang::CodeGen::CodeGenFunction::EmitConstructorBody(clang::CodeGen::FunctionArgList&) + 151 12 clang 0x000000000080953b clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 1595 13 clang 0x0000000000862abc clang::CodeGen::CodeGenModule::EmitCXXConstructor(clang::CXXConstructorDecl const*, clang::CXXCtorType) + 188 14 clang 0x0000000000816be1 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 385 15 clang 0x000000000081873d clang::CodeGen::CodeGenModule::EmitDeferred() + 125 16 clang 0x0000000000818779 clang::CodeGen::CodeGenModule::Release() + 9 17 clang 0x00000000007c6e70 18 clang 0x000000000092284b clang::ParseAST(clang::Sema&, bool, bool) + 507 19 clang 0x0000000000671149 clang::FrontendAction::Execute() + 169 20 clang 0x0000000000651a75 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 293 21 clang 0x000000000063c9b6 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1638 22 clang 0x0000000000638788 cc1_main(char const**, char const**, char const*, void*) + 1176 23 clang 0x0000000000636fff main + 7519 24 libc.so.6 0x00002b7c008adec5 __libc_start_main + 245 25 clang 0x00000000006377ef 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 RobotConsole.cpp -mrelocation-model pic -pic-level 2 -menable-no-infs -menable-no-nans -menable-unsafe-fp-math -ffp-contract=fast -ffast-math -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -target-feature +ssse3 -target-linker-version 2.24 -momit-leaf-frame-pointer -coverage-file /home/alexis/.ccache/5/f/0c3d416d8a05d03969ebd72b707703-4667406.o.tmp.Will.8921 -resource-dir /usr/bin/../lib/clang/3.4 -D __extern_always_inline=inline -D LINUX -D NDEBUG -D EIGEN_INITIALIZE_MATRICES_BY_NAN -D QT_SHARED -D QT_OPENGL_LIB -D QT_GUI_LIB -D QT_CORE_LIB -D TARGET_SIM -D QT_NO_STL -D QXT_STATIC -D QT_NO_DEBUG -I ../../Src -I ../../Util/Eigen -I ../../Util/SimRobot/Src/SimRobot -I ../../Util/SimRobot/Src/SimRobotCore2 -I ../../Util/SimRobot/Src/SimRobotEditor -I ../../Util/GameController/include -I ../../Util/libjpeg/src -I ../../Util/libqxt -I ../../Util/qtpropertybrowser -I ../../Util/snappy/include -I /usr/include/qt4/QtCore -I /usr/include/qt4/QtGui -I /usr/include/qt4/QtOpenGL -I /usr/include/qt4/QtSvg -I /usr/include/qt4 -I /usr/include/QtCore -I /usr/include/QtGui -I /usr/include/QtOpenGL -I /usr/include/QtSvg -I /usr/include/Qt -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8 -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/x86_64-linux-gnu -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/backward -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8 -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/clang/3.4/include -internal-externc-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Wall -Wconversion -Wliteral-conversion -Wsign-compare -Wno-deprecated -Wno-shorten-64-to-32 -Wno-sign-conversion -std=c++11 -fdebug-compilation-dir /home/alexis/Uni/B-Human/Make/Linux -ferror-limit 19 -fmessage-length 0 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o /home/alexis/.ccache/5/f/0c3d416d8a05d03969ebd72b707703-4667406.o.tmp.Will.8921 -x c++ ../../Src/Controller/RobotConsole.cpp 1. <eof> parser at end of file 2. Per-file LLVM IR generation 3. ../../Src/Representations/Infrastructure/Thumbnail.h:30:5: Generating code for declaration 'Thumbnail::TImage<unsigned char>::TImage' clang: error: unable to execute command: Segmentation fault (core dumped) clang: error: clang frontend command failed due to signal (use -v to see invocation) Ubuntu clang version 3.4-1ubuntu3 (tags/RELEASE_34/final) (based on LLVM 3.4) Target: x86_64-pc-linux-gnu Thread model: posix clang: note: diagnostic msg: PLEASE submit a bug report to http://bugs.debian.org/ and include the crash backtrace, preprocessed source, and associated run script. clang: error: unable to execute command: Segmentation fault (core dumped) clang: note: diagnostic msg: Error generating preprocessed source(s). make: *** [SimulatedNao] Fehler 1 -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs