Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-59482

Illegal instruction on Debian 11

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 5.0.2
    • Component/s: None
    • None
    • Environment:
    • ALL
    • Hide
      1. git clone https://github.com/mongodb/mongo.git
      2.  pip install -r etc/pip/compile-requirements.txt
      3. ./buildscripts/scons.py install-core --disable-warnings-as-error
      Show
      git clone https://github.com/mongodb/mongo.git   pip install -r etc/pip/compile-requirements.txt ./buildscripts/scons.py install-core --disable-warnings-as-error
    • 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?

       

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            koichi@matsumoto.me Koichi MATSUMOTO
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: