About | ACP | Buy | Forum | Industry Watch | Learning Curve | Search | Twitter | Xnews
Home » Learning Curve » Developers Workshop

Fireworks in Apple's /usr/bin/clang

Most festive.


Buy It

Try It

CUPERTINO (Rixstep) — A lot depends on who you are and what you want. But a compiler going tits up with a segmentation fault? Show of hands - how many have seen this before? Anywhere? No one?

Process:         clang [19399]
Path:            /usr/bin/clang
Identifier:      clang
Version:         3.1 (318.0.61)
Code Type:       X86-64 (Native)
Parent Process:  clang [19398]

Date/Time:       2012-07-03 15:00:34.498 +0200
OS Version:      Mac OS X 10.7.4 (11E53)
Report Version:  9

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000

VM Regions Near 0:
-->
    __TEXT                 00000001070ea000-00000001082a3000 [ 17.7M] r-x/rwx SM=COW  /usr/bin/clang

Application Specific Information:
Stack dump:
0.  Program arguments: /usr/bin/clang -cc1 -triple x86_64-apple-macosx10.7.0 -emit-obj -disable-free -disable-llvm-verifier -main-file-name common_modified.cc -pic-level 1 -mdisable-fp-elim -relaxed-aliasing -masm-verbose -munwind-tables -target-cpu penryn -target-linker-version 128.2 -coverage-file common_modified.o -resource-dir /usr/bin/../lib/clang/3.1 -isystem /usr/local/include -D HAVE_CONFIG_H -D NPING_NAME="Nping" -D NPING_URL="http://nmap.org/nping" -D NPING_PLATFORM="x86_64-apple-darwin11.4.0" -D _FORTIFY_SOURCE=2 -I ../libdnet-stripped/include -I ../nbase -I ../nsock/include -fmodule-cache-path /var/folders/sg/v2w9xs292dd8f9k6fl3_gcrm0000gn/T/clang-module-cache -Os -Wall -w -fdeprecated-macro -fdebug-compilation-dir /private/tmp/homebrew-nmap-6.01-TJM9/nmap-6.01/nping -ferror-limit 19 -fmessage-length 0 -stack-protector 1 -fblocks -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-dispatch-method=mixed -fcxx-exceptions -fexceptions -fdiagnostics-show-option -o common_modified.o -x c++ common_modified.cc

1.  <eof> parser at end of file
2.  Code generation
3.  Running pass 'Function Pass Manager' on module 'common_modified.cc'.
4.  Running pass 'Loop Pass Manager' on function '@_ZN11TargetGroup13get_next_hostEP16sockaddr_storagePm'
5.  Running pass 'Induction Variable Users' on basic block '%64'

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   clang  0x00000001072575e5 llvm::ValueHandleBase::AddToUseList() + 709
1   clang  0x00000001075af01a llvm::ScalarEvolution::getSCEV(llvm::Value*) + 106
2   clang  0x00000001075f6d0c llvm::IVUsers::AddUsersIfInteresting(llvm::Instruction*) + 156
3   clang  0x00000001075f6eb0 llvm::IVUsers::AddUsersIfInteresting(llvm::Instruction*) + 576
4   clang  0x00000001075f6c5b llvm::IVUsers::runOnLoop(llvm::Loop*, llvm::LPPassManager&) + 347
5   clang  0x000000010737b819 llvm::LPPassManager::runOnFunction(llvm::Function&) + 937
6   clang  0x00000001072a7fb2 llvm::FPPassManager::runOnFunction(llvm::Function&) + 322
7   clang  0x00000001072ad4bb llvm::FPPassManager::runOnModule(llvm::Module&) + 155
8   clang  0x00000001072a88c1 llvm::MPPassManager::runOnModule(llvm::Module&) + 289
9   clang  0x00000001072a82c5 llvm::PassManagerImpl::run(llvm::Module&) + 277
10  clang  0x00000001072a81ad llvm::PassManager::run(llvm::Module&) + 13
11  clang  0x0000000107286e3c clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) + 4508
12  clang  0x0000000107284641 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 513
13  clang  0x00000001071500f6 clang::ParseAST(clang::Sema&, bool) + 406
14  clang  0x000000010714ebd7 clang::CodeGenAction::ExecuteAction() + 855
15  clang  0x000000010712113f clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 879
16  clang  0x000000010711fdcb clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2683
17  clang  0x00000001071125ce cc1_main(char const**, char const**, char const*, void*) + 5086
18  clang  0x00000001070ecdd8 main + 648
19  clang  0x00000001070ecb44 start + 52

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x00007f994b4e1c00  rbx: 0x00007f994b4e1c08  rcx: 0x00007f994b4e2c00  rdx: 0x00007f994b4e2c00
  rdi: 0x0000000000000009  rsi: 0x0000000000000000  rbp: 0x00007fff66ce6170  rsp: 0x00007fff66ce6130
   r8: 0x00000000000000ff   r9: 0x0000000108838b78  r10: 0x00007f994b4e1c00  r11: 0x0000000000000000
  r12: 0x00007f994b005200  r13: 0x00007fff66ce6218  r14: 0x00007f994b005918  r15: 0x00007f994b4d9e00
  rip: 0x00000001072575e5  rfl: 0x0000000000010287  cr2: 0x0000000000000000
Logical CPU: 1

See Also
Developers Workshop: Apple Rooting Their Own Systems?

About | ACP | Buy | Forum | Industry Watch | Learning Curve | Search | Twitter | Xnews
Copyright © Rixstep. All rights reserved.