[SERVER-42361] libunwind must not interpose on C++ runtime ABI functions Created: 23/Jul/19  Updated: 29/Oct/23  Resolved: 24/Jul/19

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

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

Attachments: Text File unwind-nm.txt    
Issue Links:
Depends
Problem/Incident
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Dev Tools 2019-07-29
Participants:
Linked BF Score: 48

 Description   

It appears that along with the unw_* family of functions, our build of libunwind as currently configured also includes definitions of the _Unwind_* family of functions, leading to disaster when those versions are selected instead of the toolchains C++ runtime version. We should configure libunwind so that it only offers the unw_* functions.



 Comments   
Comment by Githook User [ 24/Jul/19 ]

Author:

{'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}

Message: SERVER-42361 libunwind: --disable-cxx-exceptions
Branch: master
https://github.com/mongodb/mongo/commit/59790d4626c193613db34c34338c424a636b8cad

Comment by Billy Donahue [ 24/Jul/19 ]

https://mongodbcr.appspot.com/476330005/

After which libunwind contains:
https://jira.mongodb.org/secure/attachment/225136/unwind-nm.txt

Comment by Andrew Morrow (Inactive) [ 23/Jul/19 ]

billy.donahue - I think all that needs to happen is to re-run the host_config.sh script with --disable-cxx-exceptions.

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