mirror of
https://github.com/apple/swift.git
synced 2026-10-22 19:15:50 +02:00
On Linux, if one thread generates a backtrace while another is busy unmapping a file, the memory map can change after the backtracer's code has read it, which then means that the backtracer can crash attempting to access memory while it is trying to enumerate loaded images. Fix by changing the way we read memory on Linux so that by default, we do so in a failable manner. Fixes #92089 rdar://186982100