This is an archive of the discontinued LLVM Phabricator instance.

[llvm-debuginfo-analyzer] LLVM 16.0.0-rc1 Failing test on osx-64.
ClosedPublic

Authored by CarlosAlbertoEnciso on Feb 10 2023, 2:10 AM.

Details

Summary

[llvm-debuginfo-analyzer] LLVM 16.0.0-rc1 Failing test on osx-64.

As describe in: https://github.com/llvm/llvm-project/issues/60363

the following DebugInfo LogicalView Tests unit tests failed:

  • ELFReader
  • SelectElements

The tests fail only on the OSX-64 platform with the CMake options:

-DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_LINK_LLVM_DYLIB=ON

Using the same options on a Linux platform all the tests pass:
https://lab.llvm.org/buildbot/#/builders/196 (llvm-x86_64-debian-dylib)

Basically it is a dynamic library initialization affecting a static instance for the string pool (LVStringPool).

That string pool instance is accessed by all the logical elements to store/retrieve any associated string during the creation of the logical view.

For a logical view comparison, both logical readers (Reference and Target) use retrieved indexes when comparing their strings.

Moved the static instance to LVSupport module (unnamed namespace).

Diff Detail

Event Timeline

CarlosAlbertoEnciso requested review of this revision.Feb 10 2023, 2:10 AM
jmorse accepted this revision.Feb 10 2023, 3:31 AM
jmorse added a subscriber: jmorse.

If I understand correctly, this is moving the tool-global string pool from a header-function into something with one-definition -- definitely the right direction to take. I think Orlando might have said that a context-object-with-string-pool is probably the best overall solution, but this is a good improvement for now.

llvm/include/llvm/DebugInfo/LogicalView/Core/LVStringPool.h
39–40

Best not to include unrelated NFC changes as it can be a review burden,

This revision is now accepted and ready to land.Feb 10 2023, 3:31 AM
llvm/include/llvm/DebugInfo/LogicalView/Core/LVStringPool.h
39–40

Good point. I will remove it from the patch.

Tested this patch in https://github.com/conda-forge/llvmdev-feedstock/pull/198, can confirm it works. Thanks a lot!

This revision was landed with ongoing or failed builds.Feb 12 2023, 9:48 PM
This revision was automatically updated to reflect the committed changes.

Tested this patch in https://github.com/conda-forge/llvmdev-feedstock/pull/198, can confirm it works. Thanks a lot!

@h-vetinari Thanks for testing the patch.