Commit Graph

14 Commits

Author SHA1 Message Date
Julian Lettner
0ce8bfaaec [Sanitizers] Remove obsolete LIT substitution (#65420)
Co-authored-by: Julian Lettner <julian.lettner@apple.com>
2023-04-27 10:41:10 -07:00
Adrian Prantl
9657c89345 Relax test.
The real fix here is to make sure the . operator actually gets its own source
location. Right now, it depends on what code is being inlined from the stdlib
thus the failure with the debug stdlib only. We can relax the test further in
the short term.

rdar://108132971
2023-04-17 08:48:36 -07:00
Kavon Farvardin
8b143886a5 disable flaky Sanitizers/symbolication.swift
In some CI configurations, namely

oss-swift_tools-RA_stdlib-RD_test-simulator
oss-swift_tools-RA_stdlib-RDA_test-simulator

we're seeing failures.
2023-04-10 17:34:25 -07:00
Adrian Prantl
158772c2ab Rebase SILScope generation on top of ASTScope.
This patch replaces the stateful generation of SILScope information in
SILGenFunction with data derived from the ASTScope hierarchy, which should be
100% in sync with the scopes needed for local variables. The goal is to
eliminate the surprising effects that the stack of cleanup operations can have
on the current state of SILBuilder leading to a fully deterministic (in the
sense of: predictible by a human) association of SILDebugScopes with
SILInstructions. The patch also eliminates the need to many workarounds. There
are still some accomodations for several Sema transformation passes such as
ResultBuilders, which don't correctly update the source locations when moving
around nodes. If these were implemented as macros, this problem would disappear.

This necessary rewrite of the macro scope handling included in this patch also
adds proper support nested macro expansions.

This fixes

rdar://88274783

and either fixes or at least partially addresses the following:

rdar://89252827
rdar://105186946
rdar://105757810
rdar://105997826
rdar://105102288
2023-04-04 15:20:11 -07:00
Julian Lettner
8a886d8d2c Re-enable sanitizer tests broken due to buggy atos (#58408)
There was a regression in atos, but now a new-enough Xcode version that
includes the fixed atos is now available on Swift CI bots.  We can
re-enable the tests.

Radar-Id: rdar://problem/85471075

Co-authored-by: Julian Lettner <julian.lettner@apple.com>
2022-04-29 11:00:43 -07:00
Julian Lettner
16c1eb37b8 Re-enable TSan versions of async_let_fibonacci.swift test (#39319)
The two TSan versions of the
`test/Concurrency/Runtime/async_let_fibonacci.swift` were disabled for
different reasons:
[1] Swift Concurrency work broke the test and it was never re-enabled.
[2] Regression in atos required test to be disabled.  Re-enablement was
    blocked on Swift CI upgrading to an Xcode that contains the fixed
    version of atos.

While the TSan versions of the test was not running they fell out of
sync with the original test and then started failing for different
(trivial) reasons once re-enabled.

Please help us keep these tests running by:
* Not landing work that makes them fail (and deferring the fix to a
  later point), if at all possible.  Breaking sanitizers should be a
  "blocker".
* Keeping them in sync with the original tests.

Radar-Id: rdar://83162880

[1] rdar://76446550 (Re-enable test: Sanitizers/tsan/async_let_fibonacci.swift)
[2] rdar://80274830 ([Swift CI] Sanitizer report symbolication fails due to regression in atos)

Co-authored-by: Julian Lettner <julian.lettner@apple.com>
2021-09-16 17:37:59 +02:00
Nate Cook
feece9da70 Revert "[Swift CI] Re-enable sanitizer symbolication tests (#38489)" (#39320)
This reverts commit 680fb6ac40.
2021-09-15 14:45:18 -05:00
Julian Lettner
680fb6ac40 [Swift CI] Re-enable sanitizer symbolication tests (#38489)
We updated the Swift CI nodes to a version of Xcode that includes the
fix for a regression in atos that broke sanitizer report symbolication.

Regression: rdar://79151503 (If atos is handed a dSYM, it should find the binary rather than erring)
Fix:        rdar://80345994 (Regression: atos -p <pid> exits immediately)

Radar-Id: rdar://80274830

Co-authored-by: Julian Lettner <julian.lettner@apple.com>
2021-09-15 14:50:55 +02:00
Julian Lettner
4af32360ca [CI] Disable tests that depend on symbolication
After upgrading the OS and Xcode on the CI nodes sanitizer report
symbolication fails because we fail to start atos.  This might be a
sandboxing issue.

Radar-Id: rdar://80274830
2021-07-07 13:54:37 -07:00
Julian Lettner
36b6b11edb [Sanitizer] Disable tests that depend on symbolication on watchOS
Some new Sanitizer tests are failing on watchOS because we fail to start
atos to symbolicate the report.  FileCheck then fails when we assert on
the generated report.

Radar-Id: rdar://75766734
2021-03-29 17:41:13 -07:00
Julian Lettner
680f028b96 [CI] Re-enable test (#33900)
Disable for "remote runs".  We don't copy the corresponding `.dSYM`
with the test binary, and hence symbolication (source info) does not
succeed.

Also explicitly mark this test unsupported on for the 32-bit iOS
simulator.  It has an outdated version of `atos` that can't demangle
Swift symbol names.

Enable on other platforms.

rdar://68353068
2020-09-11 09:38:14 -07:00
Holly Borla
e920b70249 [Test] Disable Sanitizers/symbolication.swift for now 2020-09-04 12:34:58 -07:00
Julian Lettner
ac6dffdf41 [Sanitizer] Disable inlining to improve robustness of test (#33753)
This test checks that Sanitizer reports contain properly symbolicated
stacks.  Let's make sure that all of the expected frames appear in the
stack by disabling inlining and preventing tail call optimization.

rdar://68171463

Co-authored-by: Julian Lettner <julian.lettner@apple.com>
2020-09-02 15:03:28 -07:00
Julian Lettner
80a0f3eeb1 [Sanitizer] Add smoke test for report symbolication (#33656)
Add a test that checks symbolication for out-of-process and in-process
symbolication for both Apple platforms and Linux.

Note that there already exist tests in the compiler-rt test suite that
check report symbolication.  The purpose of this test is to have simple
smoke tests for Swift, and specifically Swift demangling.

rdar://62753845

Co-authored-by: Julian Lettner <julian.lettner@apple.com>
2020-08-31 14:59:26 -07:00