svadev AT lists.siebelschool.illinois.edu
Subject: Svadev mailing list
List archive
- From: John Criswell <criswell AT illinois.edu>
- To: Sean McBride <sean AT rogue-research.com>
- Cc: svadev AT cs.uiuc.edu
- Subject: Re: [svadev] where is lgdtoa?
- Date: Wed, 21 Dec 2011 16:38:09 -0600
- List-archive: <http://lists.cs.uiuc.edu/pipermail/svadev>
- List-id: <svadev.cs.uiuc.edu>
- Organization: University of Illinois
On 12/21/11 4:22 PM, Sean McBride wrote:
On Wed, 21 Dec 2011 10:07:42 -0600, John Criswell said:
Just to sanity check here: you're using the release_30 branch of LLVMNope. :) Thanks.
and mainline poolalloc and safecode, correct?
Now I've succeeded building it, and things work fine with toy apps.
Next, I've tried building my actual Cocoa app with it. Most files compile,
but clang crashes on 7 files, all Obj-C++, see below.
I haven't tried SAFECode on Objective-C and Objective-C++ programs, so there's a good chance that it won't work. That said, this looks like a bug that could trigger in C/C++ applications.
Can you send to the list a small Objective-C++ program that reproduces the error?
I removed -fmemsafety from C++ then everything compiles, but linking fails,
see below below.
Can you try the compile with an unmodified Clang from LLVM 3.0?
-- John T.
I'll next try with some smaller projects....
Cheers,
Sean
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 clang 0x000000010f66534c
llvm::Value::getValueID() const + 12
1 clang 0x000000010f667be5
llvm::Instruction::getOpcode() const + 21
2 clang 0x000000010ffe1cf5
llvm::ReturnInst::classof(llvm::Instruction const*) + 21
3 clang 0x000000010fe8d905
llvm::isa_impl<llvm::ReturnInst, llvm::Instruction>::doit(llvm::Instruction
const&) + 21
4 clang 0x000000010fe8d8e5
llvm::isa_impl_cl<llvm::ReturnInst,
llvm::Instruction*>::doit(llvm::Instruction const*) + 21
5 clang 0x000000010fe8d8b8
llvm::isa_impl_wrap<llvm::ReturnInst, llvm::Instruction*,
llvm::Instruction*>::doit(llvm::Instruction* const&) + 24
6 clang 0x000000010fe8d855 bool
llvm::isa<llvm::ReturnInst, llvm::Instruction*>(llvm::Instruction* const&) +
21
7 clang 0x000000010f50f596
llvm::RegisterStackObjPass::runOnFunction(llvm::Function&) + 774
8 clang 0x00000001102048c7
llvm::FPPassManager::runOnFunction(llvm::Function&) + 471
9 clang 0x0000000110204c2d
llvm::FPPassManager::runOnModule(llvm::Module&) + 125
10 clang 0x0000000110204e80
llvm::MPPassManager::runOnModule(llvm::Module&) + 496
11 clang 0x000000011020543c
llvm::PassManagerImpl::run(llvm::Module&) + 172
12 clang 0x0000000110205871
llvm::PassManager::run(llvm::Module&) + 33
13 clang 0x000000010e88132d (anonymous
namespace)::EmitAssemblyHelper::EmitAssembly(clang::BackendAction,
llvm::raw_ostream*) + 845
14 clang 0x000000010e880f71
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 97
15 clang 0x000000010e9a12ed
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 477
16 clang 0x000000010e9db04d
clang::ParseAST(clang::Sema&, bool) + 749
17 clang 0x000000010e72e558
clang::ASTFrontendAction::ExecuteAction() + 264
18 clang 0x000000010e99fdbb
clang::CodeGenAction::ExecuteAction() + 1051
19 clang 0x000000010e72e1a3
clang::FrontendAction::Execute() + 307
20 clang 0x000000010e70328c
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 604
21 clang 0x000000010e6da4f1
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 961
22 clang 0x000000010e6c86de cc1_main(char
const**, char const**, char const*, void*) + 926 (cc1_main.cpp:159)
23 clang 0x000000010e6d4819 main + 473
(driver.cpp:353)
24 clang 0x000000010e6c8334 start + 52
ld: in
/brainsight2/trunk/build/Brainsight2.build/Debug/Brainsight.build/Objects-normal/x86_64/_BS17ControlCurve.o,
in section __TEXT,__text reloc 7: sectionForNum(25) section number not for
any section for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
Command /Users/sean/llvm-3/llvm-safecode-install/bin/clang++ failed with exit
code 1
- [svadev] where is lgdtoa?, Sean McBride, 12/20/2011
- Re: [svadev] where is lgdtoa?, John Criswell, 12/20/2011
- Re: [svadev] where is lgdtoa?, Sean McBride, 12/20/2011
- Re: [svadev] where is lgdtoa?, Sean McBride, 12/21/2011
- Re: [svadev] where is lgdtoa?, John Criswell, 12/21/2011
- Re: [svadev] where is lgdtoa?, Sean McBride, 12/21/2011
- Re: [svadev] where is lgdtoa?, John Criswell, 12/21/2011
- Re: [svadev] where is lgdtoa?, Sean McBride, 12/21/2011
- Re: [svadev] where is lgdtoa?, John Criswell, 12/21/2011
- Re: [svadev] where is lgdtoa?, Sean McBride, 12/21/2011
- Re: [svadev] where is lgdtoa?, Sean McBride, 12/21/2011
- Re: [svadev] where is lgdtoa?, Sean McBride, 12/21/2011
- Re: [svadev] where is lgdtoa?, John Criswell, 12/21/2011
- Re: [svadev] where is lgdtoa?, Sean McBride, 12/21/2011
- Re: [svadev] where is lgdtoa?, John Criswell, 12/21/2011
- Re: [svadev] where is lgdtoa?, John Criswell, 12/20/2011
Archive powered by MHonArc 2.6.16.