[SERVER-61032] Convert all references to /opt/mongodbtoolchain/gdb to a versioned equivalent Created: 27/Oct/21  Updated: 29/Oct/23  Resolved: 11/Mar/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.8, 5.3.0-rc4, 4.2.24, 4.4.19

Type: Improvement Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Ryan Egesdahl (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to WT-8903 Convert all GDB references to explici... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0, v4.4, v4.2
Sprint: Dev Platform 2022-03-07, Dev Platform 2022-03-21
Participants:
Linked BF Score: 8

 Description   

The mongodbtoolchain offers an unversioned path to GDB under /opt/mongodbtoolchain/gdb which refers specifically to the v3 GDB.

Unfortunately, this breaks the encapsulation of the toolchain versioning mechanism. When we want to upgrade master from using v3 to v4, we can't repoint /opt/mongodbtoolchain/gdb to v4 because this would also upgrade GDB for older branches, which we don't really want to do.

We should remove all references to /opt/mongodbtoolchain/gdb in the server codebase and replace them with /opt/mongodbtoolchain/v3/gdb, backport this change through all stable branches, and then update the toolchain builder to no longer produce /opt/mongodbtoolchain/gdb.



 Comments   
Comment by Githook User [ 29/Dec/22 ]

Author:

{'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}

Message: SERVER-61032 Remove `PATH` variables when executing GDB

(cherry picked from commit 736a3ebe7241a0fbec8734d66b75e74697ce42a5)
(cherry picked from commit beb51a7c2e7dc26f31f870e59bd5b9e839392fa1)
(cherry picked from commit 4651d9d0b407f15cb5e03934168f9e2efb82c85b)
Branch: v4.2
https://github.com/mongodb/mongo/commit/1690fbc37427539f1929db30932898e8431b9a34

Comment by Githook User [ 29/Dec/22 ]

Author:

{'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}

Message: SERVER-61032 Fix hang_hanalyzer $PATH

(cherry picked from commit 682f784e93b1602f0dcd74115e2105e1433857f5)
(cherry picked from commit 6da1c8ecb87cbf421054a1b426c14d36481df27f)
(cherry picked from commit c04db1e0b2c619ff74eec7219e392e6253ba05fa)
Branch: v4.2
https://github.com/mongodb/mongo/commit/12e823ea48b3dd3efee67ffcddd926071df01aa4

Comment by Githook User [ 29/Dec/22 ]

Author:

{'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}

Message: SERVER-61032 Ensure all current references to GDB are for v3 toolchain

(cherry picked from commit 65cf760916f7fe0e3d06f5e06a53e0a96b24d947)
(cherry picked from commit f7cb4b6b001045eb51465bfdd232d1c6852df8ab)
(cherry picked from commit 0ad1c7a979d8e412ad96c7af42b1ededc8dee810)
Branch: v4.2
https://github.com/mongodb/mongo/commit/05b8fa9a923779f29845933d27b1bed1f5514215

Comment by Githook User [ 28/Dec/22 ]

Author:

{'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}

Message: SERVER-61032 Remove `PATH` variables when executing GDB

(cherry picked from commit 736a3ebe7241a0fbec8734d66b75e74697ce42a5)
(cherry picked from commit beb51a7c2e7dc26f31f870e59bd5b9e839392fa1)
Branch: v4.4
https://github.com/mongodb/mongo/commit/4651d9d0b407f15cb5e03934168f9e2efb82c85b

Comment by Githook User [ 28/Dec/22 ]

Author:

{'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}

Message: SERVER-61032 Fix hang_hanalyzer $PATH

(cherry picked from commit 682f784e93b1602f0dcd74115e2105e1433857f5)
(cherry picked from commit 6da1c8ecb87cbf421054a1b426c14d36481df27f)
Branch: v4.4
https://github.com/mongodb/mongo/commit/c04db1e0b2c619ff74eec7219e392e6253ba05fa

Comment by Githook User [ 28/Dec/22 ]

Author:

{'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}

Message: SERVER-61032 Ensure all current references to GDB are for v3 toolchain

(cherry picked from commit 65cf760916f7fe0e3d06f5e06a53e0a96b24d947)
(cherry picked from commit f7cb4b6b001045eb51465bfdd232d1c6852df8ab)
Branch: v4.4
https://github.com/mongodb/mongo/commit/0ad1c7a979d8e412ad96c7af42b1ededc8dee810

Comment by Githook User [ 28/Mar/22 ]

Author:

{'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}

Message: SERVER-61032 Remove `PATH` variables when executing GDB

(cherry picked from commit 736a3ebe7241a0fbec8734d66b75e74697ce42a5)
Branch: v5.0
https://github.com/mongodb/mongo/commit/beb51a7c2e7dc26f31f870e59bd5b9e839392fa1

Comment by Githook User [ 28/Mar/22 ]

Author:

{'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}

Message: SERVER-61032 Fix hang_hanalyzer $PATH

(cherry picked from commit 682f784e93b1602f0dcd74115e2105e1433857f5)
Branch: v5.0
https://github.com/mongodb/mongo/commit/6da1c8ecb87cbf421054a1b426c14d36481df27f

Comment by Githook User [ 28/Mar/22 ]

Author:

{'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}

Message: SERVER-61032 Ensure all current references to GDB are for v3 toolchain

(cherry picked from commit 65cf760916f7fe0e3d06f5e06a53e0a96b24d947)
Branch: v5.0
https://github.com/mongodb/mongo/commit/f7cb4b6b001045eb51465bfdd232d1c6852df8ab

Comment by Githook User [ 11/Mar/22 ]

Author:

{'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}

Message: SERVER-61032 Remove `PATH` variables when executing GDB
Branch: master
https://github.com/mongodb/mongo/commit/736a3ebe7241a0fbec8734d66b75e74697ce42a5

Comment by Githook User [ 08/Mar/22 ]

Author:

{'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}

Message: SERVER-61032 Fix hang_hanalyzer $PATH
Branch: master
https://github.com/mongodb/mongo/commit/682f784e93b1602f0dcd74115e2105e1433857f5

Comment by Githook User [ 03/Mar/22 ]

Author:

{'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}

Message: SERVER-61032 Ensure all current references to GDB are for v3 toolchain
Branch: master
https://github.com/mongodb/mongo/commit/65cf760916f7fe0e3d06f5e06a53e0a96b24d947

Generated at Thu Feb 08 05:51:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.