Skip to content

[lldb/Crashlog] Re-enable tests on x86_64 #8869

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

medismailben
Copy link

@medismailben medismailben commented Jun 6, 2024

This PR re-enables the crashlogs test to run on Intel bots.

The test were disabled previously because they'd hit a non-deterministic deadlock when loading images in parallel.
This PR includes a temporary workaround to the deadlock by loading images sequentially and disables image lookup using dSYMForUUID since the CI bots don't have access to build records to pull the images from, so it doesn't make sense to do it in tests.

rdar://128953725
rdar://128738052
rdar://129401926

…inary (llvm#94517)

In lldb, users can change the `dsymForUUID` binary using the
`LLDB_APPLE_DSYMFORUUID_EXECUTABLE` environment variable.

This patch changes the crashlog to support the same behaviour as lldb
and uses this environment variable to disable `dsymForUUID` lookups in
crashlog test by having it be empty. Since CI bots shoudn't have access
to images on build records, it doesn't make sense to make use of
`dsymForUUID` in tests.

rdar://128953725

Signed-off-by: Med Ismail Bennani <[email protected]>
(cherry picked from commit f8afa76)
…4513)

This patch adds the `--no-parallel-image-loading` to the crashlog
command. By default, image loading will happen in parallel in the
crashlog script however, sometimes, when running tests or debugging the
crashlog script itself, it's better to load the images sequentially.

As its name suggests, this flag will disable the default image loading
behaviour to load all the images sequencially in the main thread.

Signed-off-by: Med Ismail Bennani <[email protected]>
(cherry picked from commit 68a9cb7)
)

This PR removes the `target-aarch64` requirement on the crashlog tests
to exercice them on Intel bots and make image loading single-threaded
temporarily while implementing a fix for a deadlock issue when loading
the images in parallel.

Signed-off-by: Med Ismail Bennani <[email protected]>
(cherry picked from commit d09231a)
@medismailben medismailben requested a review from JDevlieghere June 6, 2024 20:09
@medismailben
Copy link
Author

@swift-ci test

This patch introduces an `OperatingSystem` base implementation in the
`lldb` python module to make it easier for lldb users to write their own
implementation.

The `OperatingSystem` base implementation is derived itself from the
`ScriptedThread` base implementation since they share some common grounds.

To achieve that, this patch makes changes to the `ScriptedThread`
initializer since it gets called by the `OperatingSystem` initializer.

I also took the opportunity to document the `OperatingSystem` base
class and methods.

Differential Revision: https://reviews.llvm.org/D159315

Signed-off-by: Med Ismail Bennani <[email protected]>
(cherry picked from commit ec456ba)
@medismailben
Copy link
Author

@swift-ci test

…Failure` (NFC) (llvm#95015)

This patch tightens the assert check for the ABISP object in
`StopInfoMachException::DeterminePtrauthFailure`.

This causes some failure when debugging on a system that doesn't have
pointer authentification support, like on Intel for instance.

rdar://129401926

Signed-off-by: Med Ismail Bennani <[email protected]>
(cherry picked from commit 93b91dd)
@medismailben
Copy link
Author

@swift-ci test

@JDevlieghere JDevlieghere merged commit 8ccd572 into swiftlang:swift/release/6.0 Jun 10, 2024
3 checks passed
@medismailben
Copy link
Author

This should also fix rdar://129192983

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants