<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - lld: unexpected segmentation fault linking MachO"
   href="https://bugs.llvm.org/show_bug.cgi?id=48019">48019</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>lld: unexpected segmentation fault linking MachO
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lld
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>MachO
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kubkon@jakubkonka.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I've encountered this bug in the latest LLVM release 11.0.0. The link to
upstream issue: <a href="https://github.com/ziglang/zig/issues/6812">https://github.com/ziglang/zig/issues/6812</a>. 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</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>