$ sh common-fc6ece.sh GNU gdb (GDB) 7.12 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64--netbsd". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/local/bin/clang-6.0...(no debugging symbols found)...done. (gdb) y Undefined command: "y". Try "help". (gdb) r Starting program: /usr/local/bin/clang-6.0 -cc1 -triple x86_64-unknown-netbsd8.99.2 -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name common.c -mrelocation-model pic -pic-level 2 -pic-is-pie -mthread-model posix -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -dwarf-column-info -debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -coverage-notes-file /tmp/pkgsrc-tmp/pkgtools/cwrappers/work/cwrappers-20170611/common.gcno -D HAVE_NBCOMPAT_H=1 -Og -Wno-sign-compare -Wno-pointer-sign -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wno-sign-compare -Wsign-compare -Wformat=2 -Wpointer-sign -Wmissing-noreturn -Werror -std=gnu99 -fconst-strings -ferror-limit 19 -fmessage-length 0 -stack-protector 1 -fobjc-runtime=gnustep -fdiagnostics-show-option -x c common-fc6ece.c Program received signal SIGSEGV, Segmentation fault. 0x00000000022b0c30 in llvm::MemorySSA::OptimizeUses::optimizeUses() () (gdb) bt #0 0x00000000022b0c30 in llvm::MemorySSA::OptimizeUses::optimizeUses() () #1 0x00000000022afa97 in llvm::MemorySSA::buildMemorySSA() () #2 0x00000000022b3b3b in llvm::MemorySSAWrapperPass::runOnFunction(llvm::Function&) () #3 0x000000000158abe3 in llvm::FPPassManager::runOnFunction(llvm::Function&) () #4 0x000000000113861c in (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) () #5 0x000000000158b1cb in llvm::legacy::PassManagerImpl::run(llvm::Module&) () #6 0x0000000001ac5021 in clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout const&, llvm::Module*, clang::BackendAction, std::unique_ptr >) () #7 0x000000000212f6fd in clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) () #8 0x0000000002532dc6 in clang::ParseAST(clang::Sema&, bool, bool) () #9 0x0000000001e57a7f in clang::FrontendAction::Execute() () #10 0x0000000001e09318 in clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) () #11 0x0000000001ed638d in clang::ExecuteCompilerInvocation(clang::CompilerInstance*) () #12 0x00000000007ce3be in cc1_main(llvm::ArrayRef, char const*, void*) () #13 0x00000000007ccbbc in main () (gdb)