[llvm-bugs] [Bug 48019] New: lld: unexpected segmentation fault linking MachO

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 30 04:49:23 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=48019

            Bug ID: 48019
           Summary: lld: unexpected segmentation fault linking MachO
           Product: lld
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: MachO
          Assignee: unassignedbugs at nondot.org
          Reporter: kubkon at jakubkonka.com
                CC: llvm-bugs at lists.llvm.org

I've encountered this bug in the latest LLVM release 11.0.0. The link to
upstream issue: https://github.com/ziglang/zig/issues/6812. I haven't had the
time to create the minimal reduction yet, but will do my best to come up with
something ASAP. I'll also test it against the LLVM upstream, and see if the
issue has already been fixed. Having said that, if anyone knows of any fix, I'd
really appreciate any links to some diffs. Finally, I'll be happy to work on a
fix for this if it's not fixed yet.

Stack dump:
0.      Program arguments: /usr/local/opt/llvm/bin/ld64.lld -error-limit 0
-demangle -dynamic -arch x86_64 -macosx_version_min 10.15.7 -sdk_version
10.15.7 -pie -o
/Users/kubkon/dev/zig-upaya/zig-cache/o/07bf65c94971f0f1cc20b8d266576fe7/tilemap
/Users/kubkon/dev/zig-upaya/zig-cache/o/deacba273d1175327b5f594b7bd69197/compile_sokol.o
/Users/kubkon/dev/zig-upaya/zig-cache/o/6a165678cebdac1b7a7c8256eec6f594/stb_impl.o
/Users/kubkon/dev/zig-upaya/zig-cache/o/9ea479ff48bb3e3a3e5357065c60a829/imgui.o
/Users/kubkon/dev/zig-upaya/zig-cache/o/a56785dce35f94882513fac0f8c70df0/imgui_demo.o
/Users/kubkon/dev/zig-upaya/zig-cache/o/f83b504afe46e0e855f3e06ff20e80b4/imgui_draw.o
/Users/kubkon/dev/zig-upaya/zig-cache/o/103aa42f786819f86280c8bf1109a22a/imgui_widgets.o
/Users/kubkon/dev/zig-upaya/zig-cache/o/a9b9caa6993701160a1391f88a76717b/cimgui.o
/Users/kubkon/dev/zig-upaya/zig-cache/o/b2d5f0792d3cf747952365ce53d8b355/temporary_hacks.o
/Users/kubkon/dev/zig-upaya/zig-cache/o/93f57e0f29fba267cae0ad1d4de7ff7d/tinyfiledialogs.o
/Users/kubkon/dev/zig-upaya/zig-cache/o/07bf65c94971f0f1cc20b8d266576fe7/tilemap.o
/Users/kubkon/.cache/zig/o/a3bc26d320a45a7acb35de34821443e0/libcompiler_rt.a
/Users/kubkon/.cache/zig/o/a5d09af89feb0aefd87afe02a373659a/libc++abi.a
/Users/kubkon/.cache/zig/o/ef84161c4c2bc05766fd8b1c5f99603c/libc++.a -lSystem
-F
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks
-F
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks
-framework Foundation -framework QuartzCore -framework Metal -framework
MetalKit -framework OpenGL -framework Cocoa -framework Quartz -framework
Audiotoolbox -framework CoreAudio
0  libLLVM.dylib            0x00000001104a6535
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1  libLLVM.dylib            0x00000001104a69dc SignalHandler(int) + 200
2  libsystem_platform.dylib 0x00007fff6780a5fd _sigtramp + 29
3  libsystem_platform.dylib 0x00007ffedfdbd9ce _sigtramp + 18446744071433827310
4  ld64.lld                 0x00000001100a015d
lld::mach_o::MachODylibFile::exports(llvm::StringRef, llvm::StringRef) const +
53
5  ld64.lld                 0x00000001100a01db
lld::mach_o::MachODylibFile::exports(llvm::StringRef, llvm::StringRef) const +
179
6  ld64.lld                 0x00000001100a01db
lld::mach_o::MachODylibFile::exports(llvm::StringRef, llvm::StringRef) const +
179
7  ld64.lld                 0x00000001100bcccc
lld::mach_o::MachODylibFile::exports(llvm::StringRef) const + 28
8  ld64.lld                 0x00000001100d9e02
std::__1::__function::__func<lld::Resolver::handleSharedLibrary(lld::File&)::$_1,
std::__1::allocator<lld::Resolver::handleSharedLibrary(lld::File&)::$_1>,
llvm::Expected<bool> (llvm::StringRef)>::operator()(llvm::StringRef&&) + 52
9  ld64.lld                 0x00000001100d824d
lld::Resolver::forEachUndefines(lld::File&,
std::__1::function<llvm::Expected<bool> (llvm::StringRef)>) + 309
10 ld64.lld                 0x00000001100d8444
lld::Resolver::handleSharedLibrary(lld::File&) + 154
11 ld64.lld                 0x00000001100d8b78
lld::Resolver::resolveUndefines() + 882
12 ld64.lld                 0x00000001100d9ae8 lld::Resolver::resolve() + 14
13 ld64.lld                 0x000000010fec7bfd
lld::mach_o::link(llvm::ArrayRef<char const*>, bool, llvm::raw_ostream&,
llvm::raw_ostream&) + 389
14 ld64.lld                 0x000000010fe42ba6 main + 875
15 libdyld.dylib            0x00007fff67611cc9 start + 1
16 libdyld.dylib            0x0000000000000032 start + 18446603338781746026
[1]    14588 segmentation fault  /usr/local/opt/llvm/bin/ld64.lld -error-limit
0 -demangle -dynamic -arch

-- 
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/20201030/24e71004/attachment.html>


More information about the llvm-bugs mailing list