You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Tim Armstrong (JIRA)" <ji...@apache.org> on 2018/11/02 19:23:00 UTC

[jira] [Updated] (IMPALA-4313) Make sure that all binaries we produce contain a .note.gnu.build-id section

     [ https://issues.apache.org/jira/browse/IMPALA-4313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Armstrong updated IMPALA-4313:
----------------------------------
    Issue Type: Improvement  (was: Bug)

> Make sure that all binaries we produce contain a .note.gnu.build-id section
> ---------------------------------------------------------------------------
>
>                 Key: IMPALA-4313
>                 URL: https://issues.apache.org/jira/browse/IMPALA-4313
>             Project: IMPALA
>          Issue Type: Improvement
>          Components: Infrastructure
>    Affects Versions: Impala 2.7.0
>            Reporter: Lars Volker
>            Priority: Major
>              Labels: breakpad, infra, ramp-up, supportability
>
> Breakpad uses {{.note.gnu.build-id}} to identify binaries and falls back to hashing the first page of the text section.
> [src/common/linux/file_id.cc#148|https://chromium.googlesource.com/breakpad/breakpad/+/master/src/common/linux/file_id.cc#148]
> {code}
> bool FileID::ElfFileIdentifierFromMappedFile(const void* base,
>                                              wasteful_vector<uint8_t>& identifier) {
>   // Look for a build id note first.
>   if (FindElfBuildIDNote(base, identifier))
>     return true;
>   // Fall back on hashing the first page of the text section.
>   return HashElfTextSection(base, identifier);
> }
> {code}
> The latter can lead to collisions on large binaries like impalad. Therefore we should make sure we have {{.note.gnu.build-id}} in all binaries. More information can be found here: https://fedoraproject.org/wiki/Releases/FeatureBuildId



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org