Post

Replies

Boosts

Views

Activity

Reply to macos 27 - unexpected/new errno from BSD socket connect() when pending connections exceed backlog
The discrepancy between the man page and the runtime behaviour is most is most definitely a bug — one or the other needs to change here — and I recommend that you file it as such. Thank you Quinn. I've filed FB25031051 for this one. A short update on this one. Apple engineers replied on that issue and asked us to run tests against 27.3 Beta version where it is expected to be fixed. Tests do show that the reported issue is addressed. However, when testing that fix, it has shown an additional unexpected change in that fix. I've updated the ticket with those additional details. Thank you for the quick response on this issue. I'll continue to follow up on that ticket.
1w
Reply to Instructions for debugging recent macos kernel versions?
The forums platform regularly has problems generating notification correctly, and we’ve actively looking at ways to improve that (r. 179971013). I went back and looked at the emails I've received for this specific thread. The ones that I've received are from Kevin and you (both "DTS Engineer"s). The only other email notification I received was for Andres' reply where I was explicitly @ mentioned https://developer.apple.com/forums/thread/801605?answerId=908338022#908338022. I don't know if it helps much though.
Topic: App & System Services SubTopic: Core OS Tags:
1w
Reply to Instructions for debugging recent macos kernel versions?
[quote='910751022, elowe, /thread/801605?answerId=910751022#910751022, /profile/elowe'] Hi, nice to meet you jaikiran! I'm the maintainer within the kernel team of the opensource XNU release, and I have tried to put as much of the instructions needed into the README.md in the more recent releases as possible. I realized about six months ago that the README.md itself would be a reasonable place for instructions on how to build it, but for some reason it was only being used as an internal file within XNU at that point (and even then I'm not sure people read it, haha). Probably nobody noticed, so if you have any feedback for improvement feel free to send it my way and I'll gladly update it. [/quote] @elowe and others in this thread, I apologize for this delayed reply. I hadn't noticed any updates to this thread. For some reason I haven't been receiving email notifications on this thread. I only received a couple of notifications for Kevin's replies (the last one being on October 20th). I happened to notice the activity on this thread only when I logged in to the forums to check something else. @elowe, I'm happy to hear about the README and I'll read through it. Is it the one in the "main" branch of XNU repo here https://github.com/apple-oss-distributions/xnu/blob/main/README.md? I have been waiting for a few months now to locate newer XNU releases in that repo but haven't seen any for macos 26.6 or later. So just checking to make sure if all the changes you note about the README have made it to this public repo.
Topic: App & System Services SubTopic: Core OS Tags:
1w
Reply to Instructions for debugging recent macos kernel versions?
Hello Andres, When I tried it on a new mac mini M6 (27.0.1 build 26A434, T8152), macOS can't boot and at some point it just panics into recovery mode. In addition to what Kevin noted in the reply, what is the output of uname -v on that host and what is the KDK build that you downloaded for it? Also, what is the name of the kernel binary file (the one from the downloaded KDK, which contains the model name) you used to generate the kext collection?
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’26
Reply to Unexplained behavioural changes in BSD sockets on macos 26.6.x and 27
Hello Quinn, Yes, these are the current ones that impact 27.x. I am reviewing some others and will report back if they turn out to be something that needs attention. One other issue which is certainly a change in macos, is in the ptrace area where after successfully attaching (PT_ATTACHEXC) to a process and then successfully detaching from that process (PT_DETACH), the target process continues to be in stopped state (if I am not wrong, then SSTOP state) and thus becomes unresponsive to any work that is expected of it. This has been observed in 26.6.x and 27.x of macos (including 27.2 beta release). So something has changed here, but not clear what or whether it's a bug in macos. There's a bit more technical details involved here and it's not easy (yet) to try and make it simpler to reproduce. However, for people familiar with this area of ptrace, Mach tasks and signals, then maybe the current discussion in OpenJDK PR which tries to fix the issue might provide the necessary context https://github.com/openjdk/jdk/pull/33158. I was hoping the kernel sources for 26.6.x and 27.x, when they are available, might provide some guidance on what the right fix is for this (even if in application code). The documentation in this area is hard to find except for this (nicely written) decade old blog https://www.spaceflint.com/?p=150
Oct ’26
Reply to macos 27 - EDOM error from setsockopt() for SO_LINGER socket option for values greater than 32767
Yep, definitely a deliberate change (r. 174844817). Thank you for confirming, Quinn. Should the documentation … mention the acceptable value range for them? Should questions are a hard for me to answer (-: so my response is gonna be: If you think that should be the case, I encourage you to file a bug against that man page. I think it will be useful. I filed it as a suggestion, id is FB25031577
Oct ’26
Reply to macos 27 - unexpected/new errno from BSD socket connect() when pending connections exceed backlog
The discrepancy between the man page and the runtime behaviour is most is most definitely a bug — one or the other needs to change here — and I recommend that you file it as such. Thank you Quinn. I've filed FB25031051 for this one. Your second issue also seems like a bug to me, especially given that it’s a change from earlier system. It’d be best for you to file a separate bug report about that. Filed a separate FB25031272 for this.
Oct ’26
Reply to Unexplained behavioural changes in BSD sockets on macos 26.6.x and 27
Hello Quinn, Regarding bug priority, the network engineer team sets its own priorities based on a lot of competing demands on its time from a lot of different folks. Just to clarify my previous post, the priority and how long it takes to fix the issue isn't the demotivating part. I understand that it might take long to fix those reported issues. The demotivating part is that several of these issues that are reported in the feedback assistant don't receive any response at all. There's complete silence on them even for trivial questions like reproducibility of the issue. Given the frequency with which these behavioural changes are happening in these APIs, we have been putting in much more efforts to test beta versions of macos releases so that these issues can be reported early (we aren't fully there yet, but such testing has increased). But reporting such issues and not seeing any response or an acknowledgement to them feels like it's defeating the purpose of this extended testing. The OpenJDK testsuite is vast and we often catch such issues with newer releases of macos. My hope is that there will be a bit more involvement when such issues are reported through feedback assistant. Regarding Darwin source drops, historically Apple has released Darwin source shortly after the corresponding macOS release, but there’s no concrete timeline for this. Right, and that adds to the challenge of understanding what's changed or how to properly address those changes within the application code (because the release notes too don't have any details). So when some issue shows up in a new release, we end up spending large amounts of time (sometimes months) mostly guessing what might have changed without anything concrete to go on. there are limits to what I can do about the big picture. I understand. I am thankful for all the help I receive from you and others in these forums. In fact, that's one of the reasons why I still have the motivation left to dig deeper in these issues and report them.
Oct ’26
Reply to codesign tool generates "timestamps differ by XXX seconds" error
I've filed FB22826737 requesting an improvement to this message. An update about this issue. Apple has addressed this in a Beta version of the upcoming macos 27 release. I was notified on the feedback assistance issue asking me to verify the fix. I verified it on a macos 27 Beta3 and it has indeed been addressed. Specifically, on a pre-existing signed binary which has a timestamp mismatch in the signature, when using "codesign" to replace the signature with an "adhoc" one, "codesign" no longer prints the timestamp mismatch warning and no longer exits with a non-zero exit code. The signature is successfully replaced on the binary. Thank you for addressing this so quickly and also for being responsive on the feedback ticket.
Topic: Code Signing SubTopic: General Tags:
Jul ’26
Reply to macos 27 - unexpected/new errno from BSD socket connect() when pending connections exceed backlog
The discrepancy between the man page and the runtime behaviour is most is most definitely a bug — one or the other needs to change here — and I recommend that you file it as such. Thank you Quinn. I've filed FB25031051 for this one. A short update on this one. Apple engineers replied on that issue and asked us to run tests against 27.3 Beta version where it is expected to be fixed. Tests do show that the reported issue is addressed. However, when testing that fix, it has shown an additional unexpected change in that fix. I've updated the ticket with those additional details. Thank you for the quick response on this issue. I'll continue to follow up on that ticket.
Replies
Boosts
Views
Activity
1w
Reply to Instructions for debugging recent macos kernel versions?
The forums platform regularly has problems generating notification correctly, and we’ve actively looking at ways to improve that (r. 179971013). I went back and looked at the emails I've received for this specific thread. The ones that I've received are from Kevin and you (both "DTS Engineer"s). The only other email notification I received was for Andres' reply where I was explicitly @ mentioned https://developer.apple.com/forums/thread/801605?answerId=908338022#908338022. I don't know if it helps much though.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
1w
Reply to Instructions for debugging recent macos kernel versions?
[quote='910751022, elowe, /thread/801605?answerId=910751022#910751022, /profile/elowe'] Hi, nice to meet you jaikiran! I'm the maintainer within the kernel team of the opensource XNU release, and I have tried to put as much of the instructions needed into the README.md in the more recent releases as possible. I realized about six months ago that the README.md itself would be a reasonable place for instructions on how to build it, but for some reason it was only being used as an internal file within XNU at that point (and even then I'm not sure people read it, haha). Probably nobody noticed, so if you have any feedback for improvement feel free to send it my way and I'll gladly update it. [/quote] @elowe and others in this thread, I apologize for this delayed reply. I hadn't noticed any updates to this thread. For some reason I haven't been receiving email notifications on this thread. I only received a couple of notifications for Kevin's replies (the last one being on October 20th). I happened to notice the activity on this thread only when I logged in to the forums to check something else. @elowe, I'm happy to hear about the README and I'll read through it. Is it the one in the "main" branch of XNU repo here https://github.com/apple-oss-distributions/xnu/blob/main/README.md? I have been waiting for a few months now to locate newer XNU releases in that repo but haven't seen any for macos 26.6 or later. So just checking to make sure if all the changes you note about the README have made it to this public repo.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
1w
Reply to Instructions for debugging recent macos kernel versions?
Hello Andres, When I tried it on a new mac mini M6 (27.0.1 build 26A434, T8152), macOS can't boot and at some point it just panics into recovery mode. In addition to what Kevin noted in the reply, what is the output of uname -v on that host and what is the KDK build that you downloaded for it? Also, what is the name of the kernel binary file (the one from the downloaded KDK, which contains the model name) you used to generate the kext collection?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’26
Reply to Unexplained behavioural changes in BSD sockets on macos 26.6.x and 27
Hello Quinn, Yes, these are the current ones that impact 27.x. I am reviewing some others and will report back if they turn out to be something that needs attention. One other issue which is certainly a change in macos, is in the ptrace area where after successfully attaching (PT_ATTACHEXC) to a process and then successfully detaching from that process (PT_DETACH), the target process continues to be in stopped state (if I am not wrong, then SSTOP state) and thus becomes unresponsive to any work that is expected of it. This has been observed in 26.6.x and 27.x of macos (including 27.2 beta release). So something has changed here, but not clear what or whether it's a bug in macos. There's a bit more technical details involved here and it's not easy (yet) to try and make it simpler to reproduce. However, for people familiar with this area of ptrace, Mach tasks and signals, then maybe the current discussion in OpenJDK PR which tries to fix the issue might provide the necessary context https://github.com/openjdk/jdk/pull/33158. I was hoping the kernel sources for 26.6.x and 27.x, when they are available, might provide some guidance on what the right fix is for this (even if in application code). The documentation in this area is hard to find except for this (nicely written) decade old blog https://www.spaceflint.com/?p=150
Replies
Boosts
Views
Activity
Oct ’26
Reply to macos 27 - EDOM error from setsockopt() for SO_LINGER socket option for values greater than 32767
Yep, definitely a deliberate change (r. 174844817). Thank you for confirming, Quinn. Should the documentation … mention the acceptable value range for them? Should questions are a hard for me to answer (-: so my response is gonna be: If you think that should be the case, I encourage you to file a bug against that man page. I think it will be useful. I filed it as a suggestion, id is FB25031577
Replies
Boosts
Views
Activity
Oct ’26
Reply to macos 27 - unexpected/new errno from BSD socket connect() when pending connections exceed backlog
The discrepancy between the man page and the runtime behaviour is most is most definitely a bug — one or the other needs to change here — and I recommend that you file it as such. Thank you Quinn. I've filed FB25031051 for this one. Your second issue also seems like a bug to me, especially given that it’s a change from earlier system. It’d be best for you to file a separate bug report about that. Filed a separate FB25031272 for this.
Replies
Boosts
Views
Activity
Oct ’26
Reply to Out-of-band data returned by recv() and read() on socket bound to non-loopback address even when SO_OOBINLINE is disabled
This issue has started to happen much more consistently on macos 27. The previous feedback assistance issue FB13799990 was closed a while back since it wasn't reproducible in Apple's environment. I've now filed a new issue FB25019064 with additional reproducers and logs from macos 27 instance.
Replies
Boosts
Views
Activity
Oct ’26
Reply to Unexplained behavioural changes in BSD sockets on macos 26.6.x and 27
Hello Quinn, Regarding bug priority, the network engineer team sets its own priorities based on a lot of competing demands on its time from a lot of different folks. Just to clarify my previous post, the priority and how long it takes to fix the issue isn't the demotivating part. I understand that it might take long to fix those reported issues. The demotivating part is that several of these issues that are reported in the feedback assistant don't receive any response at all. There's complete silence on them even for trivial questions like reproducibility of the issue. Given the frequency with which these behavioural changes are happening in these APIs, we have been putting in much more efforts to test beta versions of macos releases so that these issues can be reported early (we aren't fully there yet, but such testing has increased). But reporting such issues and not seeing any response or an acknowledgement to them feels like it's defeating the purpose of this extended testing. The OpenJDK testsuite is vast and we often catch such issues with newer releases of macos. My hope is that there will be a bit more involvement when such issues are reported through feedback assistant. Regarding Darwin source drops, historically Apple has released Darwin source shortly after the corresponding macOS release, but there’s no concrete timeline for this. Right, and that adds to the challenge of understanding what's changed or how to properly address those changes within the application code (because the release notes too don't have any details). So when some issue shows up in a new release, we end up spending large amounts of time (sometimes months) mostly guessing what might have changed without anything concrete to go on. there are limits to what I can do about the big picture. I understand. I am thankful for all the help I receive from you and others in these forums. In fact, that's one of the reasons why I still have the motivation left to dig deeper in these issues and report them.
Replies
Boosts
Views
Activity
Oct ’26
Reply to codesign tool generates "timestamps differ by XXX seconds" error
I've filed FB22826737 requesting an improvement to this message. An update about this issue. Apple has addressed this in a Beta version of the upcoming macos 27 release. I was notified on the feedback assistance issue asking me to verify the fix. I verified it on a macos 27 Beta3 and it has indeed been addressed. Specifically, on a pre-existing signed binary which has a timestamp mismatch in the signature, when using "codesign" to replace the signature with an "adhoc" one, "codesign" no longer prints the timestamp mismatch warning and no longer exits with a non-zero exit code. The signature is successfully replaced on the binary. Thank you for addressing this so quickly and also for being responsive on the feedback ticket.
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’26