[SERVER-13956] Add unique build-ids to built binaries on GNU toolchains too old to support gnu build-id. Created: 15/May/14  Updated: 19/Jul/16  Resolved: 12/Jul/16

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 3.3.10

Type: Improvement Priority: Major - P3
Reporter: Andy Schwerin Assignee: Jonathan Reams
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-13944 Provide richer unwind information in ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Platforms 17 (07/15/16)
Participants:

 Description   

RHEL5 and other older Linux distributions have toolchains too old to add unique build ids to every built binary. This ticket is to amend the build system so that on such systems a post-build step for programs adds a unique id of the same format as GNU build-id tags. This will allow the stack tracer from SERVER-13944 to present enough information to a symbolizer to identify the exact build of a MongoDB program that produced a stack trace.



 Comments   
Comment by Githook User [ 12/Jul/16 ]

Author:

{u'username': u'jbreams', u'name': u'Jonathan Reams', u'email': u'jbreams@mongodb.com'}

Message: SERVER-13956 Enable build-id on all clang/gcc versions that support it
Branch: master
https://github.com/mongodb/mongo/commit/51c85731b8ff1bfd356eadda6998523798fa7f6f

Comment by Jonathan Reams [ 07/Jul/16 ]

In SERVER-17859, I pulled down all the 3.3.9 binaries and verified that everything except the ubuntu clang builder has linker build id's enabled. I don't know why the clang builder doesn't have build id's enabled, but I'm not sure its worth fixing it.

Comment by Andrew Morrow (Inactive) [ 02/Jul/16 ]

It seems like it would be pretty easy to write a script to pull down all the builds from 3.3.9 and check them. Lets do that.

Comment by Jonathan Reams [ 27/Jun/16 ]

I believe that with the toolchain v2 all platforms should support gnu build id's since we use the latest version of the linker everywhere.

Generated at Thu Feb 08 03:33:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.