[SERVER-58648] Coredump when running version 5.0.0 mongo/mongod Created: 17/Jul/21 Updated: 12/Jan/22 Resolved: 09/Aug/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 5.0.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Ali Molaei | Assignee: | Eric Sedor |
| Resolution: | Done | Votes: | 0 |
| Labels: | Bug | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Operating System: | ALL | ||||||||||||
| Steps To Reproduce: | Run commands:
|
||||||||||||
| Participants: | |||||||||||||
| Case: | (copied to CRM) | ||||||||||||
| Description |
|
I'm maintaining mongodb-bin on ArchLinux's AUR, running mongo or mongod command, I'm getting this systemd-coredump:
I don't know how can I provide more information, glad to help if I can.
BTW, These are files I got from mongodb-org official ubuntu repo:
|
| Comments |
| Comment by Eric Sedor [ 28/Jul/21 ] |
|
Thanks for this report ali.molaei@protonmail.com; based on it we've opened |
| Comment by Andrew Morrow (Inactive) [ 28/Jul/21 ] |
|
ali.molaei@protonmail.com - Thanks for the update. Given that, I think it is conclusive that AVX support is necessary, but it is important also to note that AVX alone is not sufficient. The GCC 8 manual states that -march=sandybridge enables codegen assuming the following:
So you need a CPU that offers at least all of those features, and the Celeron doesn't. I don't actually know if we generate any POPCNT, AES, or PCLMUL instructions, but there is nothing stopping the compiler from doing so if it chooses. |
| Comment by Ali Molaei [ 28/Jul/21 ] |
|
Oh my bad, I miss checked the flags, correct table is: Celeron | i5 | i7 -------------------------- NULL | avx | avx NULL | f16c | f16c NULL | rdrand | rdrand NULL | ida | ida NULL | NULL | aes NULL | NULL | smx |
| Comment by Andrew Morrow (Inactive) [ 28/Jul/21 ] |
|
ali.molaei@protonmail.com - Can you please confirm regarding the AVX support in i5? If you concur, then I think we can state conclusively that the issue is that MongoDB 5.0 requires AVX support. Unfortunately, Intel has made the situation sort of confusing, in that the Pentium and Celeron branded processors do not support AVX, whether or not they are newer than Sandy Bridge, up until the ones based on Tiger Lake. We will be working to clarify our documentation to make it clearer that the real requirement is AVX (along with any other instruction extensions available on "true" Sandy Bridge; specifically, those that GCC 8 may emit when building with -march=sandybridge). |
| Comment by Andrew Morrow (Inactive) [ 27/Jul/21 ] |
|
ali.molaei@protonmail.com - The link for your i5 states that it supports AVX (see the entry Instruction Set Extensions), as does the i7. So, I'm not sure why your table shows the i5 as not supporting AVX. Can you please double check that result? |
| Comment by Ali Molaei [ 27/Jul/21 ] |
|
I've got some updates: I tested/got results on more IvyBridge CPUs, Mongo v5.0.1 works on i5 and i7 not on the celeron, even though it's IvyBrdige these CPU flags differences are: Celeron | i5 | i7 -------------------------- NULL | NULL | avx NULL | NULL | f16c NULL | NULL | rdrand NULL | NULL | ida NULL | aes | aes NULL | smx | smx
So I think aes and smx are needed in version 5? |
| Comment by Ali Molaei [ 24/Jul/21 ] |
|
Sorry for commenting back late, I am using an Ivy Bridge (2012) Intel processor, (I think it's newer than Sandy Bridge (2011)), so It must be something else |
| Comment by Spencer Brown [ 18/Jul/21 ] |
|
One possibility is that MongoDB 5.0 requires a minimum x86_64 microarchitecture version. Please check that the CPU meets these requirements from our Production Notes:
|