[LLVMbugs] [Bug 14228] New: Clang fails with segmentation fault on exceptions
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Oct 31 06:42:19 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=14228
Bug #: 14228
Summary: Clang fails with segmentation fault on exceptions
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: a.bataev at gmx.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 9472
--> http://llvm.org/bugs/attachment.cgi?id=9472
source, preprocessed source, and associated run script
clang crashes when trying to compile the following code
clang++ -c test.cpp
Referring to a basic block in another function!
br label %LabelInsideCatch
Broken module found, compilation aborted!
0 clang 0x0000000105e5ae82 _ZL15PrintStackTracePv + 34
1 clang 0x0000000105e5b489 _ZL13SignalHandleri + 793
2 libsystem_c.dylib 0x00007fff8ee66cfa _sigtramp + 26
3 libsystem_c.dylib 0x0000000000000004 _sigtramp + 18446603338118697764
4 clang 0x0000000105e5b0c6 abort + 22
5 clang 0x0000000105e12c1a (anonymous
namespace)::Verifier::abortIfBroken() + 266
6 clang 0x0000000105e11b69 (anonymous
namespace)::Verifier::runOnFunction(llvm::Function&) + 1817
7 clang 0x0000000105df9a2d
llvm::FPPassManager::runOnFunction(llvm::Function&) + 317
8 clang 0x0000000105df927b
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 235
9 clang 0x0000000105df9165
llvm::FunctionPassManager::run(llvm::Function&) + 117
10 clang 0x0000000104c058cb
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 5179
11 clang 0x0000000104ce2b4c
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 620
12 clang 0x0000000104d1c894 clang::ParseAST(clang::Sema&, bool,
bool) + 516
13 clang 0x0000000104ce1c16 clang::CodeGenAction::ExecuteAction() +
1286
14 clang 0x0000000104adee5b clang::FrontendAction::Execute() + 107
15 clang 0x0000000104abef4a
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 986
16 clang 0x0000000104a8737c
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3388
17 clang 0x0000000104a7d8fd cc1_main(char const**, char const**,
char const*, void*) + 3005
18 clang 0x0000000104a832b1 main + 689
19 clang 0x0000000104a7cd34 start + 52
Stack dump:
0. Program arguments: /llvm_trunk/build/Release+Asserts/bin/clang -cc1
-triple x86_64-apple-macosx10.7.0 -emit-obj -mrelax-all -disable-free
-main-file-name test.cpp -pic-level 2 -mdisable-fp-elim -masm-verbose
-munwind-tables -target-cpu core2 -target-linker-version 127.2 -coverage-file
/test.o -resource-dir /llvm_trunk/build/Release+Asserts/bin/../lib/clang/3.2
-fmodule-cache-path
/var/folders/zz/zyxvpxvq6csfxvn_n01bj6140_w9h9/T/clang-module-cache
-fdeprecated-macro -fdebug-compilation-dir / -ferror-limit 19 -fmessage-length
197 -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.7.0
-fobjc-dispatch-method=mixed -fobjc-default-synthesize-properties
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
test.o -x c++ test.cpp
1. <eof> parser at end of file
2. Per-function optimization
3. Running pass 'Module Verifier' on function '@_Z3FOOv'
clang: error: unable to execute command: Illegal instruction: 4
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.2 (trunk 166569)
Target: x86_64-apple-darwin11.2.0
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:
/var/folders/zz/zyxvpxvq6csfxvn_n01bj6140_w9h9/T/test-4gRhwA.cpp
clang: note: diagnostic msg:
/var/folders/zz/zyxvpxvq6csfxvn_n01bj6140_w9h9/T/test-4gRhwA.sh
clang: note: diagnostic msg:
********************
Alexey Bataev
Software Engineer
Intel Compiler Team
Intel Corp.
--
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