llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
26.71k stars 10.94k forks source link

unable to execute command: Segmentation fault (core dumped) #14574

Open llvmbot opened 11 years ago

llvmbot commented 11 years ago
Bugzilla Link 14202
Version trunk
OS Linux
Attachments [https://user-images.githubusercontent.com/60944935/143746262-f2953125-dc41-4d45-ba33-81f7456b089d.gz), [https://user-images.githubusercontent.com/60944935/143746263-fa48b794-6dc2-4902-a702-5c6ac1f9c9ce.gz)
Reporter LLVM Bugzilla Contributor
CC @efriedma-quic

Extended Description

clang version 3.2 (trunk 166663) Target: i386-pc-linux-gnu Thread model: posix

0 clang-3.2 0x08f456a8 1 clang-3.2 0x08f45a84 2 0x40022400 kernel_sigreturn + 0 3 clang-3.2 0x0952c8bf 4 clang-3.2 0x09531871 5 clang-3.2 0x0953668e clang::InitializationSequence::InitializationSequence(clang::Sema&, clang::InitializedEntity const&, clang::InitializationKind const&, clang::Expr*, unsigned int) + 2734 6 clang-3.2 0x09501c6b clang::Sema::BuildCXXTypeConstructExpr(clang::TypeSourceInfo, clang::SourceLocation, llvm::MutableArrayRef<clang::Expr>, clang::SourceLocation) + 1467 7 clang-3.2 0x096215ab 8 clang-3.2 0x0963a3a0 9 clang-3.2 0x0963c861 10 clang-3.2 0x0963aa85 11 clang-3.2 0x0963d34a clang::Sema::SubstStmt(clang::Stmt, clang::MultiLevelTemplateArgumentList const&) + 106 12 clang-3.2 0x0964e6fa clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl, bool, bool) + 1658 13 clang-3.2 0x0964d830 clang::Sema::PerformPendingInstantiations(bool) + 480 14 clang-3.2 0x093a3873 clang::Sema::ActOnEndOfTranslationUnit() + 2419 15 clang-3.2 0x09202ea1 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr&) + 401 16 clang-3.2 0x091f9fc4 clang::ParseAST(clang::Sema&, bool, bool) + 324 17 clang-3.2 0x0914e7e8 clang::ASTFrontendAction::ExecuteAction() + 120 18 clang-3.2 0x08f67a21 clang::CodeGenAction::ExecuteAction() + 33 19 clang-3.2 0x0914ecd8 clang::FrontendAction::Execute() + 104 20 clang-3.2 0x0912f107 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 263 21 clang-3.2 0x08f48a4e clang::ExecuteCompilerInvocation(clang::CompilerInstance) + 1358 22 clang-3.2 0x082f30a7 cc1_main(char const, char const, char const, void) + 7943 23 clang-3.2 0x082dcf98 main + 8024 24 libc.so.6 0x401a94d3 libc_start_main + 243 25 clang-3.2 0x082ef211 Stack dump:

  1. Program arguments: /home/zhuohongtao/wpsv6/clang/buildllvm/bin/clang-3.2 -cc1 -triple i386-pc-linux-gnu -emit-obj -disable-free -disable-llvm-verifier -main-file-name stdafx.cpp -pic-level 2 -fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu i686 -momit-leaf-frame-pointer -coverage-file /home/zhuohongtao/wpsv6/func_native_linux_110822_branch/build-clang/office/wpp/textbean/CMakeFiles/textbean.dir/stdafx.cpp.o -resource-dir /home/zhuohongtao/wpsv6/clang/buildllvm/bin/../lib/clang/3.2 -include-pch /home/zhuohongtao/wpsv6/func_native_linux_110822_branch/build-clang/office/wpp/textbean/stdafx.h.pch -D textbean_EXPORTS -D NO_KFC_STRING -D STDLIB_IS_LIBCXX -D QT_GUI_LIB -D QT_CORE_LIB -D _USRDLL -D TEXTBEAN_EXPORTS -D QT_NO_DEBUG -D NDEBUG -I /usr/include/freetype2 -I /home/zhuohongtao/wpsv6/wpsenv/3rdparty/qt/include -I /home/zhuohongtao/wpsv6/wpsenv/3rdparty/qt/include/QtGui -I /home/zhuohongtao/wpsv6/wpsenv/3rdparty/qt/include/QtCore -I /home/zhuohongtao/wpsv6/func_native_linux_110822_branch/Coding/office/wpp/textbean/../../../include -I /home/zhuohongtao/wpsv6/func_native_linux_110822_branch/Coding/office/wpp/textbean/./include -I /home/zhuohongtao/wpsv6/func_native_linux_110822_branch/Coding/office/wpp/textbean/../../include -I /home/zhuohongtao/wpsv6/func_native_linux_110822_branch/Coding/office/wpp/textbean/../include -I /home/zhuohongtao/wpsv6/func_native_linux_110822_branch/Coding/office/wpp/textbean/. -fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem /usr/include/c++/v1 -internal-isystem /usr/local/include -internal-isystem /home/zhuohongtao/wpsv6/clang/buildllvm/bin/../lib/clang/3.2/include -internal-externc-isystem /usr/include/i386-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Winvalid-pch -Wcomment -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /home/zhuohongtao/wpsv6/func_native_linux_110822_branch/build-clang/office/wpp/textbean -ferror-limit 19 -fmessage-length 186 -fvisibility-inlines-hidden -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o CMakeFiles/textbean.dir/stdafx.cpp.o -x c++ /home/zhuohongtao/wpsv6/func_native_linux_110822_branch/Coding/office/wpp/textbean/stdafx.cpp
  2. parser at end of file
  3. /usr/include/c++/v1/utility:444:1: instantiating function definition 'make_pair' clang-3: error: unable to execute command: Segmentation fault (core dumped) clang-3: error: clang frontend command failed due to signal (use -v to see invocation) clang version 3.2 (trunk 166663) Target: i386-pc-linux-gnu Thread model: posix clang-3: note: diagnostic msg: PLEASE submit a bug report to and include the crash backtrace, preprocessed source, and associated run script. clang-3: 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: note: diagnostic msg: /tmp/stdafx-mOwnRv.cpp clang-3: note: diagnostic msg: /tmp/stdafx-mOwnRv.sh clang-3: note: diagnostic msg:


llvmbot commented 11 years ago

the pch file. stdafx.h.pch.7z.009 clang version 3.2 (trunk 166987) Target: i386-pc-linux-gnu Thread model: posix

libcxx, libcxxabi's version is also trunk 166987.

use the command line, will core dump.

clang -cc1 -triple i386-pc-linux-gnu -emit-obj -disable-free -disable-llvm-verifier -pic-level 2 -fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu i686 -momit-leaf-frame-pointer -resource-dir /home/zhuohongtao/wpsv6/clang/buildllvm/bin/../lib/clang/3.2 -include-pch stdafx.h.pch -D textbean_EXPORTS -D NO_KFC_STRING -D STDLIB_IS_LIBCXX -D QT_GUI_LIB -D QT_CORE_LIB -D _USRDLL -D TEXTBEAN_EXPORTS -D QT_NO_DEBUG -D NDEBUG -fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem /usr/include/c++/v1 -internal-isystem /usr/local/include -internal-isystem /home/zhuohongtao/wpsv6/clang/buildllvm/bin/../lib/clang/3.2/include -internal-externc-isystem /usr/include/i386-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O3 -Winvalid-pch -Wcomment -std=c++11 -fdeprecated-macro -ferror-limit 19 -fmessage-length 80 -fvisibility-inlines-hidden -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o stdafx.cpp.s -x c++ -S stdafx.cpp.i

llvmbot commented 11 years ago

the pch file. stdafx.h.pch.7z.008

llvmbot commented 11 years ago

the pch file. stdafx.h.pch.7z.007

llvmbot commented 11 years ago

the pch file. stdafx.h.pch.7z.006

llvmbot commented 11 years ago

the pch file. stdafx.h.pch.7z.005

llvmbot commented 11 years ago

the pch file. stdafx.h.pch.7z.004

llvmbot commented 11 years ago

the pch file. stdafx.h.pch.7z.003

llvmbot commented 11 years ago

the pch file. stdafx.h.pch.7z.002

llvmbot commented 11 years ago

the pch file. stdafx.h.pch.7z.001

llvmbot commented 11 years ago

the preprocessed stdafx.cpp file.

efriedma-quic commented 11 years ago

(It looks like the automatically generated file is getting confused by the use of PCH.)

llvmbot commented 11 years ago

I cannot reproduce it, even with the exact same clang revision:

$ ./build/bin/clang -cc1 -triple i386-pc-linux-gnu -emit-obj -disable-free -disable-llvm-verifier -main-file-name stdafx.cpp -pic-level 2 -fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu i686 -momit-leaf-frame-pointer -D "textbean_EXPORTS" -D "NO_KFC_STRING" -D "STDLIB_IS_LIBCXX" -D "QT_GUI_LIB" -D "QT_CORE_LIB" -D "_USRDLL" -D "TEXTBEAN_EXPORTS" -D "QT_NO_DEBUG" -D "NDEBUG" -O3 -Winvalid-pch -Wcomment -std=c++11 -fdeprecated-macro -ferror-limit 19 -fmessage-length 186 -fvisibility-inlines-hidden -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -x c++ stdafx-mOwnRv.cpp

In file included from stdafx-mOwnRv.cpp:1: In file included from /home/zhuohongtao/wpsv6/func_native_linux_110822_branch/Coding/office/wpp/textbean/stdafx.cpp:11: /home/zhuohongtao/wpsv6/func_native_linux_110822_branch/Coding/office/wpp/textbean/./stdafx.h:30:9: error: unknown type name 'CComModule' extern CComModule _Module; ^ /home/zhuohongtao/wpsv6/func_native_linux_110822_branch/Coding/office/wpp/textbean/./stdafx.h:60:17: error: expected namespace name using namespace kso; ^ In file included from stdafx-mOwnRv.cpp:1: In file included from /home/zhuohongtao/wpsv6/func_native_linux_110822_branch/Coding/office/wpp/textbean/stdafx.cpp:29: /home/zhuohongtao/wpsv6/func_native_linux_110822_branch/Coding/office/wpp/textbean/../../include/kde/kde_intf.c:47:18: error: unknown type name 'GUID' extern "C" const GUID GUID_MSOTYPELIB = {0x2df8d04c, 0x5bfa, 0x101b, 0xbd, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0xde, 0x52}; ^ 3 errors generated