[LLVMbugs] [Bug 8695] clang crashes for objc method using a bitwise-struct with enum

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Nov 28 21:48:45 PST 2010


http://llvm.org/bugs/show_bug.cgi?id=8695

Alan Tam <Tam at SiuLung.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #3 from Alan Tam <Tam at SiuLung.com> 2010-11-28 23:48:45 CST ---
While not exactly knowing what "ToT" means to you, I tried again with a fresh
svn checkout from trunk.

sltam at maple:~/llvm/build$ Release+Asserts/bin/clang --version
clang version 2.9 (trunk 120281)
Target: x86_64-unknown-linux-gnu
Thread model: posix


sltam at maple:~/llvm/build$ Release+Asserts/bin/clang -v -c a.m
clang version 2.9 (trunk 120281)
Target: x86_64-unknown-linux-gnu
Thread model: posix
 "/home/sltam/llvm/build/Release+Asserts/bin/clang" -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
a.m -mrelocation-model static -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.20.51 -v -resource-dir
/home/sltam/llvm/build/Release+Asserts/bin/../lib/clang/2.9 -ferror-limit 19
-fmessage-length 246 -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o a.o -x objective-c a.m
clang -cc1 version 2.9 based upon llvm 2.9svn hosted on
x86_64-unknown-linux-gnu
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /home/sltam/llvm/build/Release+Asserts/bin/../lib/clang/2.9/include
 /usr/include
End of search list.
0  clang           0x0000000001696bcf
1  clang           0x0000000001698e42
2  libpthread.so.0 0x00007f6de348fb40
3  clang           0x0000000000c088d9
4  clang           0x0000000000c0ade6
5  clang           0x0000000000c0b1ce
clang::ASTContext::getObjCEncodingForTypeImpl(clang::QualType, std::string&,
bool, bool, clang::FieldDecl const*, bool, bool) + 286
6  clang           0x0000000000c0b969
clang::ASTContext::getObjCEncodingForTypeImpl(clang::QualType, std::string&,
bool, bool, clang::FieldDecl const*, bool, bool) + 2233
7  clang           0x0000000000c0b4c5
clang::ASTContext::getObjCEncodingForTypeImpl(clang::QualType, std::string&,
bool, bool, clang::FieldDecl const*, bool, bool) + 1045
8  clang           0x0000000000c0c016
clang::ASTContext::getObjCEncodingForType(clang::QualType, std::string&,
clang::FieldDecl const*) + 38
9  clang           0x00000000007fdbfe
10 clang           0x000000000075587f
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 655
11 clang           0x0000000000748641
12 clang           0x00000000007469a1
13 clang           0x00000000008752f6 clang::ParseAST(clang::Sema&, bool) + 166
14 clang           0x00000000007479f4 clang::CodeGenAction::ExecuteAction() +
68
15 clang           0x0000000000641b35
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 357
16 clang           0x00000000006218ac
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1260
17 clang           0x0000000000619635 cc1_main(char const**, char const**, char
const*, void*) + 693
18 clang           0x0000000000620825 main + 4181
19 libc.so.6       0x00007f6de2778d8e __libc_start_main + 254
20 clang           0x0000000000617d49
Stack dump:
0.    Program arguments: /home/sltam/llvm/build/Release+Asserts/bin/clang -cc1
-triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free
-main-file-name a.m -mrelocation-model static -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.20.51 -v -resource-dir
/home/sltam/llvm/build/Release+Asserts/bin/../lib/clang/2.9 -ferror-limit 19
-fmessage-length 246 -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o a.o -x objective-c a.m 
1.    <eof> parser at end of file
2.    a.m:4:1: LLVM IR generation of declaration 'Obj'
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal 1 (use -v to see
invocation)

-- 
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