[SERVER-67133] Create debug mode build variant Created: 08/Jun/22  Updated: 29/Oct/23  Resolved: 30/Jun/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.1.0-rc0, 6.2.0-rc0

Type: New Feature Priority: Major - P3
Reporter: Alex Neben Assignee: Alex Neben
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-57510 Re-investigate applicability of __GLI... Closed
Related
Backwards Compatibility: Fully Compatible
Sprint: Dev Platform 2022-06-27, Dev Platform 2022-07-11
Participants:
Linked BF Score: 130

 Description   

https://gcc.gnu.org/onlinedocs/libstdc++/manual/debug_mode.html

By compiling with this flag the stl adds asserts to containers and iterators to detect for misuse.

For example, comparing iterators from two different objects would fall under this case and be caught by an assert.

For compiles we need to compile with `--use-glibcxx-debug --dbg=on --allocator=system`

The goal of this ticket is to
1. See if we can compile mongodb with debug mode
2. If we can compile, then enable some visibility to start evaluating the usefulness of debug mode (can be done though a nightly job)



 Comments   
Comment by Githook User [ 26/Aug/22 ]

Author:

{'name': 'Alexander Neben', 'email': 'alexander.neben@mongodb.com', 'username': 'IamXander'}

Message: SERVER-67133 Reenable debug mode and run it once a week
Branch: master
https://github.com/mongodb/mongo/commit/98e00d504172d4c6babfed2f22260d84d97e8d89

Comment by Githook User [ 21/Jul/22 ]

Author:

{'name': 'Alexander Neben', 'email': 'alexander.neben@mongodb.com', 'username': 'IamXander'}

Message: SERVER-67133 Debug mode fixes
Branch: master
https://github.com/mongodb/mongo/commit/a9670e15843c06b3bacdc661bd3666d402df09df

Comment by Githook User [ 29/Jun/22 ]

Author:

{'name': 'Alexander Neben', 'email': 'alexander.neben@mongodb.com', 'username': 'IamXander'}

Message: SERVER-67133 Add a debug mode build to the waterfall
Branch: master
https://github.com/mongodb/mongo/commit/f684488a8509f0a3764fa48221499b9cd508c0e1

Comment by Githook User [ 29/Jun/22 ]

Author:

{'name': 'Alexander Neben', 'email': 'alexander.neben@mongodb.com', 'username': 'IamXander'}

Message: SERVER-67133 Add a debug mode build to the waterfall (enterprise)
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/93abc21def079f3fdf433cfa7dc9e61c1eb109a0

Comment by Alex Neben [ 29/Jun/22 ]

https://github.com/mongodb/mongo/commit/effae311008134662042b9aafc0aa5a16c36e7ae <- I merged this with the wrong ticket number. Wanted to at least keep a reference on the correct ticket.

Generated at Thu Feb 08 06:07:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.