[llvm-bugs] [Bug 50657] New: `llvm-strip -x` crashes on binary linked by lld/mac, works fine on binary linked by ld64

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jun 10 06:36:20 PDT 2021


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

            Bug ID: 50657
           Summary: `llvm-strip -x` crashes on binary linked by lld/mac,
                    works fine on binary linked by ld64
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: MachO
          Assignee: unassignedbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: gkm at fb.com, jezreel at gmail.com,
                    llvm-bugs at lists.llvm.org, smeenai at fb.com

Repro file:
https://drive.google.com/file/d/1CIQmMM4l58h8oCkia3tFN1WKhlFr6zWR/view?usp=sharing
(< 10MB, ~30MB unzipped)

Link with ld64.lld, then:

% ~/src/llvm-project/out/gn/bin/llvm-strip -x  protoc
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
Stack dump:
0.      Program arguments: /Users/thakis/src/llvm-project/out/gn/bin/llvm-strip
-x protoc
zsh: segmentation fault  ~/src/llvm-project/out/gn/bin/llvm-strip -x protoc


Works fine when linking with ld64.


Even though it's llvm-strip that's crashing, I think this is an lld bug. It
works when linking with ld64, and cctools's strip is confused by lld's output
too (bug 50393).

-- 
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/20210610/ba921e87/attachment-0001.html>


More information about the llvm-bugs mailing list