mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
In `/proc/self/maps`, the stack isn't necessarily a single range, even immediately after process start-up. Apparently sometimes it's possible for the kernel to allocate extra ranges below the first one, and these show up separately in `/proc/self/maps`. The upshot was that we were finding that `environ` didn't point into the stack range we found, and then returning no arguments as a result. The fix is to merge contiguous ranges after the first stack range we find in `/proc/self/maps`. rdar://117963394
17 KiB
17 KiB