ld64 crashes when response files (@foo) are used

Originator:thakis
Number:rdar://8922535 Date Originated:2020/11/30
Status:new Resolved:
Product: Product Version:
Classification: Reproducible:
 
ld64 learned about response files (`ld @cmd.txt`) in Xcode 12. That's great! But it crashes on many response files, so we can't use this new feature.

Please list the steps you took to reproduce the issue:
1. Download shell_dialogs_unittests.rsp from https://bugs.chromium.org/p/chromium/issues/detail?id=1147968#c18 ; also attached
2. Run `ld @shell_dialogs_unittests.rsp`
What did you expect to happen?
Shouldn't crash.
What actually happened?
segmentation fault

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!