This is an archive of the discontinued LLVM Phabricator instance.

[lldb][MainLoopTest] Fix assertion failure on arm Linux
AbandonedPublic

Authored by splhack on Jun 15 2023, 10:21 PM.

Details

Summary

D152712 replaced llvm::sys::RetryAfterSignal(-1, ::open) with
FileSystem::Instance().Open() for bionic and FileSystem::Instance() is
failing with the re-initialization assertion on arm Linux test job.
This is because MainLoopTest does not tear down the FileSystem instance.

https://lab.llvm.org/buildbot/#/builders/96/builds/40781

Add FileSystem to SubsystemRAII<> to ensure destroying the FileSystem instance.

Diff Detail