Skip to content

SignalsTest.PrintsSymbolizerMarkup relies on --build-id at link time #168891

@jrtc27

Description

@jrtc27

In order to get the module: and mmap: lines from DSOMarkupPrinter::printDSOMarkup, there must be an NT_GNU_BUILD_ID note in the binary. However, this is not something that is guaranteed, as different platforms have different defaults, and even within that you can configure it (e.g. ENABLE_LINKER_BUILD_ID in the case of Clang). This test is therefore very fragile (e.g. it breaks on FreeBSD when built with Clang+LLD, as (a) ENABLE_LINKER_BUILD_ID defaults to OFF (b) there is no code in FreeBSD.cpp to pass --build-id if ENABLE_LINKER_BUILD_ID is set (c) LLD defaults to no build ID if no option is passed) and I believe should be disabled or marked flaky somehow until it's able to accurately capture the requirements from its environments.

Cc @mysterymath as the author of the test (in 8d3ff60).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions