You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Sanitizer] Don't depend on symbolication in asan_recover.swift. (swiftlang#28290)
Relying on symbolication via `atos` unfortunately does not seem to be
a good idea because there are several testing scenarios where this
doesn't work and we fallback to `dladdr()` for Darwin platforms.
To workaround this, the `asan_recover.swift` test has been changed
to just test for the function name which covers the fully-symbolicated
and partially symbolicated case (`dladdr()` fallback). To make sure that
the two errors come from different locations (the original intention of
examining source locations) the second error has been moved into a
different function called `foo`. Unfortunately in some testing scenarios
`foo` isn't always demangled correctly so we have to make the FileCheck
pattern quite liberal.
rdar://problem/57198494
0 commit comments