Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

llvm-dsymutils fails on FSF gcc binaries #31077

Open Quuxplusone opened 7 years ago

Quuxplusone commented 7 years ago
Bugzilla Link PR32104
Status NEW
Importance P normal
Reported by Jack Howarth (howarth.mailing.lists@gmail.com)
Reported on 2017-03-01 09:18:28 -0800
Last modified on 2017-03-01 09:30:25 -0800
Version 4.0
Hardware Macintosh MacOS X
CC llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also
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".
Quuxplusone commented 7 years ago

The sw.tar.bz2 containing the binaries files generated on macOS 10.12 with Xcode 8.2.1 to reproduce this bug is available via dropbox with the url

https://www.dropbox.com/s/p0h9q14jj9nqcea/sw.tar.bz2?dl=0