Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Jan 2016 10:32:00 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-arm@FreeBSD.org
Subject:   [Bug 206066] base/projects/clang380-import's clang crashed targeting armv6 and requested a submittal
Message-ID:  <bug-206066-7@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206066

            Bug ID: 206066
           Summary: base/projects/clang380-import's clang crashed
                    targeting armv6 and requested a submittal
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: arm
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: arm
          Assignee: freebsd-arm@FreeBSD.org
          Reporter: markmi@dsl-only.net

Created attachment 165306
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D165306&action=
=3Dedit
.zip of the /tmp/*.c and *.sh that clang left for the report

I tried -Oz (for smaller code) to see if I could get linking involving cc1_=
main
to work for armv6 during buildworld of -r293430 (amd64 cross build targeting
armv6). clang crashed and requested a submittal. (buildworld gets relocation
truncations while linking and stops with default optimizations in my contex=
t.)

# gdb clang /var/crash/clang.40580.core=20
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
. . .
This GDB was configured as "amd64-marcel-freebsd"...
Core was generated by `clang'.
Program terminated with signal 6, Aborted.
#0  0x00000000026550aa in thr_kill ()
[New Thread 80381b000 (LWP 100729/<unknown>)]
(gdb) bt
#0  0x00000000026550aa in thr_kill ()
#1  0x0000000002655086 in raise ()
#2  0x0000000002655046 in abort ()
#3  0x000000000267497a in __assert ()
#4  0x00000000022aa13c in llvm::CallGraphNode::~CallGraphNode ()
#5  0x00000000022aa1ad in
std::__1::__tree<std::__1::__value_type<llvm::Function const*,
std::__1::unique_ptr<llvm::CallGraphNode,
std::__1::default_delete<llvm::CallGraphNode> > >,
std::__1::__map_value_compare<llvm::Function const*,
std::__1::__value_type<llvm::Function const*,
std::__1::unique_ptr<llvm::CallGraphNode,
std::__1::default_delete<llvm::CallGraphNode> > >,
std::__1::less<llvm::Function const*>, true>,
std::__1::allocator<std::__1::__value_type<llvm::Function const*,
std::__1::unique_ptr<llvm::CallGraphNode,
std::__1::default_delete<llvm::CallGraphNode> > > > >::erase
    ()
#6  0x00000000022a8020 in llvm::CallGraph::removeFunctionFromModule ()
#7  0x00000000014e943b in llvm::Inliner::removeDeadFunctions ()
#8  0x00000000021d3b58 in (anonymous namespace)::CGPassManager::runOnModule=
 ()
#9  0x00000000024149be in llvm::legacy::PassManagerImpl::run ()
#10 0x0000000000672910 in clang::EmitBackendOutput ()
#11 0x0000000000670569 in clang::BackendConsumer::HandleTranslationUnit ()
#12 0x000000000087c462 in clang::ParseAST ()
#13 0x000000000043f709 in clang::FrontendAction::Execute ()
#14 0x0000000000461e21 in clang::CompilerInstance::ExecuteAction ()
#15 0x0000000000409fc6 in clang::ExecuteCompilerInvocation ()
#16 0x00000000004008ae in cc1_main (Argv0=3D0x7fffffffda70 "/usr/bin/clang",
MainAddr=3D0x405650) at
/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/tools/driver=
/cc1_main.cpp:116
#17 0x000000000040831e in main (argc_=3D<value optimized out>, argv_=3D<val=
ue
optimized out>) at
/usr/src/usr.bin/clang/clang/../../../contrib/llvm/tools/clang/tools/driver=
/driver.cpp:301
#18 0x000000000040031f in _start ()

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-206066-7>