-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Critical - P2
-
None
-
Affects Version/s: 5.0.2
-
Component/s: None
-
None
-
ALL
-
-
Dev Platform 2021-08-23, Dev Platform 2021-09-06
I tried to build mongod on master branch, but mongod crashed at starting.
Mongod only prints Illegal instruction.
- gdb result
$ ./mongod --version Illegal instruction $ gdb mongod GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git Copyright (C) 2021 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from mongod... (gdb) b main Breakpoint 1 at 0x1256d20: main. (6 locations) (gdb) r --version Starting program: /home/mzch/mongo/build/install/bin/mongod --version [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Program received signal SIGILL, Illegal instruction. tcmalloc::SizeMap::Init (this=this@entry=0x55555a8087a0 <tcmalloc::Static::sizemap_>) at src/third_party/gperftools/dist/src/common.cc:319319 num_objects_to_move_[cl] = NumMoveSize(ByteSizeForClass(cl)); (gdb) p cl $1 = 1 (gdb) s Program received signal SIGILL, Illegal instruction. tcmalloc::SizeMap::NumMoveSize (size=<optimized out>, this=<optimized out>) at src/third_party/gperftools/dist/src/common.cc:181181 int SizeMap::NumMoveSize(size_t size) { (gdb) p size $2 = <optimized out> (gdb) s Program received signal SIGILL, Illegal instruction. 0x00005555592318dc in tcmalloc::SizeMap::NumMoveSize (this=<optimized out>, size=<optimized out>) at src/third_party/gperftools/dist/src/common.cc:197197 if (num > FLAGS_tcmalloc_transfer_num_objects) (gdb) p num $3 = <optimized out> (gdb) p FLAGS_tcmalloc_transfer_num_objects $4 = 32 (gdb) s Program terminated with signal SIGILL, Illegal instruction. The program no longer exists. (gdb)
Could anyone tell me what’s wrong?
- is related to
-
SERVER-58648 Coredump when running version 5.0.0 mongo/mongod
- Closed