Operational Defect Database

BugZero found this defect 2510 days ago.

MongoDB | 372691

[SERVER-75033] Capture core dumps from test failures on macOS

Last update date:

12/3/2023

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

7.0.5

Description:

Info

In macos fuzz test failures which fail by crashing the server, coredumps for mongod are unavailable. Example: https://evergreen.mongodb.com/task/mongodb_mongo_master_osx_1010_ssl_jstestfuzz_concurrent_sharded_WT_2e73d280774aa6924c9ef2b8a1ecd8681f7b9477_17_04_07_22_12_08

Top User Comments

acm commented on Tue, 1 Mar 2022 18:49:20 +0000: iryna.zhuravlova - I don't really understand that last comment. This isn't about getting core dumps for any "production" deployments of MongoDB on macOS, but for having core dumps for crashes on macOS in CI. Clearly, having core dumps would make it easier to debug crashes, so I don't see why we wouldn't still want to do this work. CC robert.guo. JIRAUSER1257562 commented on Tue, 8 Feb 2022 16:19:12 +0000: Nobody is running macOS in production. robert.guo will sync with people and revisit if the issue still persists brooke.miller commented on Mon, 7 Feb 2022 15:32:04 +0000: I'm going to bump this back to 'Needs Scheduling' since I saw the discussion around this in #buildbaron. In the future, please 'Flag for Scheduling' to make sure the team properly re-evaluates the request. kyle.suarez commented on Mon, 7 Feb 2022 14:49:01 +0000: Would have been nice to have a core dump for BF-24048. Now that MMAPv1 is gone, is it feasible to enable core dumps for the server, or is there still a technical limitation? robert.guo commented on Wed, 10 Jun 2020 16:55:49 +0000: Thanks for the info Mark! It does look like a dupe but for some reason not all mac hosts have coredumps enabled. E.g. this patch build (There's no "Enabling coredumps" log line) Richard's change in SERVER-47769 only affects unittests so hopefully it won't affect anyone. I'll file a followup ticket to investigate the core pattern issue and use the -perm flag for BSD. mark.benvenuto commented on Tue, 9 Jun 2020 19:44:46 +0000: I added collection on the server-side with SERVER-37462. Is this a duplicate of that work? jonathan.abrahams commented on Thu, 20 Apr 2017 21:48:04 +0000: Stackoverflow post for OS X coredump filter If we want core dumps on OS X, we cannot filter the contents. So if the size is too large (like for mmapv1), we'll have to keep it disabled. jonathan.abrahams commented on Thu, 20 Apr 2017 21:35:54 +0000: The default location for the core files on OS X is /cores/core.<PID> jonathan.abrahams commented on Thu, 20 Apr 2017 20:58:22 +0000: We can control the core pattern on OS X, like Linux: sudo sysctl -w kern.corefile="dump_%N.%P.core" The Linux pattern is specified as: /sbin/sysctl -w kernel.core_pattern="dump_%e.%p.core" max.hirschhorn@10gen.com commented on Thu, 20 Apr 2017 14:52:24 +0000: We should figure out whether we are able to generate core dumps on OS X or whether the issue is that we simply aren't uploading them to S3 as part of etc/evergreen.yml. Once we make that determination we can figure out what the necessary BUILD and/or SERVER ticket work is to capture them.

Additional Resources / Links

Share:

BugZero Risk Score

Coming soon

Status

Open

Have you been affected by this bug?

cost-cta-background

Do you know how much operational outages are costing you?

Understand the cost to your business and how BugZero can help you reduce those costs.

Discussion

Login to read and write comments.

Have you ever...

had your data corrupted from a

VMware

bug?

Search:

...