[SERVER-55138] Evaluate feasibility and impact of -fexceptions for C code Created: 10/Mar/21  Updated: 27/Oct/23  Resolved: 27/Oct/23

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Assigned Teams:
Server Development Platform
Backwards Compatibility: Fully Compatible
Participants:

 Description   

From the redhat recommended GCC compiler and linker flags article linked above, it is recommended to build C code with this flag to ensure that code using pthread_cleanup_push doesn't leave unprotected function pointers on the stack. I don't think we currently make use of pthread_cleanup_push, but it is possible we could start to do so in the future.



 Comments   
Comment by Githook User [ 23/Mar/21 ]

Author:

{'name': 'Andrew Morrow', 'email': 'acm@mongodb.com', 'username': 'acmorrow'}

Message: SERVER-55138 Add an experiment to apply -fexceptions for C code
Branch: master
https://github.com/mongodb/mongo/commit/b8af42cd1e7980d76b9fef41a6d363d2cd6aa92f

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