ARM64 assembler segmentation fault

Originator:zwaldowski
Number:rdar://15783280 Date Originated:01/09/2014
Status:Closed Resolved:true
Product:Developer Tools Product Version:5B71o
Classification:1 - High Reproducible:true
 
Summary:
When building the SysV assembly from libffi (with some minor modifications to build on iOS), the Clang/LLVM AArch64 assembler segfaults.

Steps to Reproduce:
1. Install Xcode
2. Check out libffi/libffi-iOS (https://github.com/zwaldowski/libffi-iOS and hopefully soon https://github.com/atgreen/libffi)
3. Open libffi/libffi.xcodeproject
4. Select 'iOS Device' target.
5. Cmd+B
6. Bourbon

Expected Results:
The assembly compiles successfully, and my use of metaprogramming in my application makes it wildly successful on the App Store.

Actual Results:
The assembler crashes.

Also, I remain a contractor. (You don't have to fix that part.)

Version:
Xcode 5.1/5B71o and OS X 10.9.1/13B42

Notes:
Clang diagnostics attached. 

Upstream file reference: https://github.com/zwaldowski/libffi-iOS/blob/master/src/aarch64/sysv.S


Configuration:
Fault does not occur in Xcode 5.0.2/5A3005 (Clang 500.2.79/LLVM 3.3pre). Fault also did not occur in Xcode51-DP1. Fault appeared in Xcode51-DP2, continues to occur in Xcode51-Beta3 (Clang 502.0.20/LLVM 3.4pre).

Comments

Resolved in Xcode 5.1β5/5B103i (Clang-503.0.19/LLVM 3.4svn).

By zwaldowski at Feb. 7, 2014, 8:01 p.m. (reply...)

Continues to occur on Xcode 5.1 Beta 4/5B90f.

By zwaldowski at Jan. 23, 2014, 2:11 p.m. (reply...)

Attached file: https://www.dropbox.com/s/rsos8sy8ssdi2es/sysv_arm64.zip

By zwaldowski at Jan. 23, 2014, 2:11 p.m. (reply...)

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!