Libc exit() source is incomplete and broken

Originator:mark
Number:rdar://29997526 Date Originated:2017-01-12
Status:Open Resolved:
Product:macOS + SDK Product Version:10.12.2 16C68
Classification:Other Bug Reproducible:Always
 
The currently released source code for exit() in Libc from 10.12.1 is at https://opensource.apple.com/source/Libc/Libc-1158.20.4/stdlib/FreeBSD/exit.c.auto.html. Here it is, reproduced:

52  /*
53   * Exit, flushing stdio buffers if necessary.
54   */
55  void
56  exit(int status)
57  {

That’s the end of the file. No implementation is present. The file won’t compile.

You have to go back to Libc-997.90.3 (first shipped with 10.9.2) to find a working version of this file. https://opensource.apple.com/source/Libc/Libc-997.90.3/stdlib/FreeBSD/exit.c.auto.html

Please correct whatever is stripping the implementation of exit() for public source release so that future source releases include this code and the file can be compiled.

Comments

2017-09-27 17:30 UTC from Apple

Engineering has provided the following feedback regarding this issue:

This has been resolved with the release of macOS 13 GM. Please be aware that there may be some delay between the GM release and the time when the external source is updated.

2017-09-19 21:55 UTC to Apple

This bug is NOT fixed.

The iOS 11 GM release has no bearing on this bug, which describes a problem with the macOS source release. The current posted version of Libc is 1158.50.2 from macOS 10.12.4, 10.12.5, and 10.12.6. The exit() source in this version of Libc is still incomplete. See https://opensource.apple.com/source/Libc/Libc-1158.50.2/stdlib/FreeBSD/exit.c.auto.html.

2017-09-19 18:41 UTC from Apple

Please verify this issue with the iOS 11 GM and update your bug report at https://bugreport.apple.com/ with your results.

iOS 11 GM (15A372) https://developer.apple.com/download/ Posted Date: Sep 19th, 2017

If the issue persists, please attach a new sysdiagnose captured in the latest build and attach it to the bug report. Thank you.

iOS sysdiagnose Instructions: https://developer.apple.com/services-account/download?path=/iOS/iOS_Logs/sysdiagnose_Logging_Instructions.pdf


For a complete list of logging instructions visit: https://developer.apple.com/bug-reporting/profiles-and-logs/


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!