[llvm-bugs] [Bug 32104] New: llvm-dsymutils fails on FSF gcc binaries

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Mar 1 09:18:28 PST 2017


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

            Bug ID: 32104
           Summary: llvm-dsymutils fails on FSF gcc binaries
           Product: new-bugs
           Version: 4.0
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: howarth.mailing.lists at gmail.com
                CC: llvm-bugs at lists.llvm.org

The llvm-dsymutils from the llvm 3.7.1, llvm-3.8.1. llvm-3.9.1 and llvm-4.0svn
releases all fail to process the lto1. cc1, f951, cc1obj, cc1plus and
cc1objplus binaries from a FSF gcc 7.0svn build. The failures are slightly
different and using the attached FSF gcc 7.0svn build binaries with the
llvm-dsymutils from the Macports llvm-3.7, llvm-3.8, llvm-3.9 and llvm-4.0
packages appears as....

[Mac-Pro:gcc7-7.0.1-1/darwin_objdir/gcc] root#
/opt/local/libexec/llvm-3.7/bin/llvm-dsymutil lto1
0  libLLVM-3.7.dylib        0x000000010eb46529
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 57
1  libLLVM-3.7.dylib        0x000000010eb46ae6 SignalHandler(int) + 216
2  libsystem_platform.dylib 0x00007fff8f61cb3a _sigtramp + 26
3  libsystem_platform.dylib 0x0000000000000002 _sigtramp + 1889416418
4  llvm-dsymutil            0x000000010df5e03a llvm::dsymutil::(anonymous
namespace)::DwarfLinker::cloneDIE(llvm::DWARFDebugInfoEntryMinimal const&,
llvm::dsymutil::(anonymous namespace)::CompileUnit&, long long, unsigned int) +
5852
5  llvm-dsymutil            0x000000010df5e27f llvm::dsymutil::(anonymous
namespace)::DwarfLinker::cloneDIE(llvm::DWARFDebugInfoEntryMinimal const&,
llvm::dsymutil::(anonymous namespace)::CompileUnit&, long long, unsigned int) +
6433
6  llvm-dsymutil            0x000000010df58f97 llvm::dsymutil::(anonymous
namespace)::DwarfLinker::link(llvm::dsymutil::DebugMap const&) + 10025
7  llvm-dsymutil            0x000000010df56374
llvm::dsymutil::linkDwarf(llvm::StringRef, llvm::dsymutil::DebugMap const&,
llvm::dsymutil::LinkOptions const&) + 724
8  llvm-dsymutil            0x000000010df66c82 main + 1082
9  libdyld.dylib            0x00007fff8f40d235 start + 1
10 libdyld.dylib            0x0000000000000002 start + 1891577294
Stack dump:
0.      Program arguments: /opt/local/libexec/llvm-3.7/bin/llvm-dsymutil lto1 
Segmentation fault

[Mac-Pro:gcc7-7.0.1-1/darwin_objdir/gcc] root#
/opt/local/libexec/llvm-3.8/bin/llvm-dsymutil lto1
0  libLLVM.dylib            0x0000000107457670
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 43
1  libLLVM.dylib            0x0000000107456ebe llvm::sys::RunSignalHandlers() +
44
2  libLLVM.dylib            0x0000000107457a3e SignalHandler(int) + 153
3  libsystem_platform.dylib 0x00007fff8f61cb3a _sigtramp + 26
4  libLLVM.dylib            0x0000000107416992
llvm::FoldingSetNodeID::AddInteger(unsigned int) + 20
5  llvm-dsymutil            0x00000001073c6325 llvm::dsymutil::(anonymous
namespace)::DwarfLinker::DIECloner::cloneDIE(llvm::DWARFDebugInfoEntryMinimal
const&, llvm::dsymutil::(anonymous namespace)::CompileUnit&, long long,
unsigned int, unsigned int) + 6477
6  llvm-dsymutil            0x00000001073c65e5 llvm::dsymutil::(anonymous
namespace)::DwarfLinker::DIECloner::cloneDIE(llvm::DWARFDebugInfoEntryMinimal
const&, llvm::dsymutil::(anonymous namespace)::CompileUnit&, long long,
unsigned int, unsigned int) + 7181
7  llvm-dsymutil            0x00000001073bd682 llvm::dsymutil::(anonymous
namespace)::DwarfLinker::DIECloner::cloneAllCompileUnits(llvm::DWARFContextInMemory&)
+ 2080
8  llvm-dsymutil            0x00000001073b96dc
llvm::dsymutil::linkDwarf(llvm::StringRef, llvm::dsymutil::DebugMap const&,
llvm::dsymutil::LinkOptions const&) + 7848
9  llvm-dsymutil            0x00000001073aeb18 main + 1810
10 libdyld.dylib            0x00007fff8f40d235 start + 1
11 libdyld.dylib            0x0000000000000002 start + 1891577294
Stack dump:
0.      Program arguments: /opt/local/libexec/llvm-3.8/bin/llvm-dsymutil lto1 
Segmentation fault

[Mac-Pro:gcc7-7.0.1-1/darwin_objdir/gcc] root#
/opt/local/libexec/llvm-3.9/bin/llvm-dsymutil lto1
Stack dump:
0.      Program arguments: /opt/local/libexec/llvm-3.9/bin/llvm-dsymutil lto1 
Segmentation fault

[Mac-Pro:gcc7-7.0.1-1/darwin_objdir/gcc] root#
/opt/local/libexec/llvm-4.0/bin/llvm-dsymutil lto1
0  libLLVM.dylib            0x000000010f28ee83
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1  libLLVM.dylib            0x000000010f28e4e3 llvm::sys::RunSignalHandlers() +
83
2  libLLVM.dylib            0x000000010f28f28b SignalHandler(int) + 183
3  libsystem_platform.dylib 0x00007fff8f61cb3a _sigtramp + 26
4  libsystem_platform.dylib 0x000000010e36f440 _sigtramp + 2127898912
5  libLLVM.dylib            0x000000010f2200b5 void
llvm::SmallVectorImpl<char>::append<char const*>(char const*, char const*) + 85
6  llvm-dsymutil            0x000000010e071d6d llvm::dsymutil::(anonymous
namespace)::DwarfStreamer::emitPubSectionForUnit(llvm::MCSection*,
llvm::StringRef, llvm::dsymutil::(anonymous namespace)::CompileUnit const&,
std::__1::vector<llvm::dsymutil::(anonymous namespace)::CompileUnit::AccelInfo,
std::__1::allocator<llvm::dsymutil::(anonymous
namespace)::CompileUnit::AccelInfo> > const&) + 899
7  llvm-dsymutil            0x000000010e068769 llvm::dsymutil::(anonymous
namespace)::DwarfLinker::DIECloner::cloneAllCompileUnits(llvm::DWARFContextInMemory&)
+ 6979
8  llvm-dsymutil            0x000000010e063367
llvm::dsymutil::linkDwarf(llvm::StringRef, llvm::dsymutil::DebugMap const&,
llvm::dsymutil::LinkOptions const&) + 8622
9  llvm-dsymutil            0x000000010e057341 main + 1910
10 libdyld.dylib            0x00007fff8f40d235 start + 1
11 libdyld.dylib            0x0000000000000002 start + 1891577294
Stack dump:
0.      Program arguments: /opt/local/libexec/llvm-4.0/bin/llvm-dsymutil lto1 
Segmentation fault

Note that the llvm-dsymutils from Xcode 8.2.1 works fine but that that from the
Xcode 8.3 beta releases fails in yet a different manner on the FSF gcc
binaries...

cd /
sudo tar -jxvf sw.tar.bz2
cd /sw/src/fink.build/gcc7-7.0.1-1/darwin_objdir/gcc
sudo dsymutil lto1

with an 'Illegal instruction' error. The Xcode 8.3 regression is filed on radar
as 30613458 titled "dsymutil regression in Xcode 8.3 betas".

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170301/9cda329d/attachment.html>


More information about the llvm-bugs mailing list