[LLVMbugs] [Bug 11430] New: MSVC-built clang crashes on "clang -g -c"
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Nov 24 04:40:56 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=11430
Bug #: 11430
Summary: MSVC-built clang crashes on "clang -g -c"
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: vanboxem.ruben at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
When running a configure script with MSVC built clang, Clang crashes with this
stacktrace:
clang -c -g conftest.c
msvcr100.dll!__crt_debugger_hook()
msvcr100.dll!_call_reportfault() + 0x124 bytes
msvcr100.dll!abort() + 0x35 bytes
> clang.exe!llvm::MCStreamer::EmitRawText(const llvm::Twine & T) Line 614 C++
clang.exe!llvm::AsmPrinter::EmitSectionOffset(const llvm::MCSymbol *
Label, const llvm::MCSymbol * SectionLabel) Line 150 C++
clang.exe!llvm::DwarfDebug::emitDebugInfo() Line 1691 C++
clang.exe!llvm::DwarfDebug::endModule() Line 810 C++
clang.exe!llvm::AsmPrinter::doFinalization(llvm::Module & M) Line 872
C++
clang.exe!llvm::FPPassManager::doFinalization(llvm::Module & M) Line 1552
+ 0x16 bytes C++
clang.exe!llvm::FPPassManager::runOnModule(llvm::Module & M) Line 1536 +
0xb bytes C++
clang.exe!llvm::MPPassManager::runOnModule(llvm::Module & M) Line 1588 +
0xc bytes C++
clang.exe!llvm::PassManagerImpl::run(llvm::Module & M) Line 1672 + 0x1c
bytes C++
clang.exe!`anonymous
namespace'::EmitAssemblyHelper::EmitAssembly(clang::BackendAction Action,
llvm::raw_ostream * OS) Line 408 C++
clang.exe!clang::EmitBackendOutput(clang::DiagnosticsEngine & Diags, const
clang::CodeGenOptions & CGOpts, const clang::TargetOptions & TOpts, const
clang::LangOptions & LOpts, llvm::Module * M, clang::BackendAction Action,
llvm::raw_ostream * OS) Line 420 C++
clang.exe!clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext
& C) Line 156 C++
clang.exe!clang::ParseAST(clang::Sema & S, bool PrintStats) Line 110 +
0xf bytes C++
clang.exe!clang::CodeGenAction::ExecuteAction() Line 404 + 0x5 bytes
C++
clang.exe!clang::FrontendAction::Execute() Line 332 C++
clang.exe!clang::CompilerInstance::ExecuteAction(clang::FrontendAction &
Act) Line 658 C++
clang.exe!clang::ExecuteCompilerInvocation(clang::CompilerInstance *
Clang) Line 175 C++
clang.exe!cc1_main(const char * * ArgBegin, const char * * ArgEnd, const
char * Argv0, void * MainAddr) Line 160 + 0x8 bytes C++
clang.exe!main(int argc_, const char * * argv_) Line 354 + 0x19 bytes
C++
clang.exe!__tmainCRTStartup() Line 555 + 0x19 bytes C
kernel32.dll!BaseThreadInitThunk() + 0xd bytes
ntdll.dll!RtlUserThreadStart() + 0x21 bytes
The file being compiled is an empty main:
int main(){}
The error message being output is
EmitRawText called on an MCStreamer that doesn't support it, something must
not be fully mc'ized
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list