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

Local UBSAN runtime error with --dbg=off

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Dev Platform 2022-02-21, Dev Platform 2022-03-07, Dev Platform 2022-03-21

      Compiling with UBSAN and --dbg=off results in the following runtime error:

      [j0] src/third_party/unwind/dist/src/x86_64/Ginit.c:334:14: runtime error: load of misaligned address 0x7f102889a0ca for type 'unw_word_t' (aka 'unsigned long'), which requires 8 byte alignment
      [j0] 0x7f102889a0ca: note: pointer points here
      [j0]  66 f5  00 00 48 8d 15 cf f8 00  00 4c 89 ec 41 ff e4 66  0f 1f 84 00 00 00 00 00  83 47 04 01 c3 90
      [j0]               ^
      

      Full build invocation:

      ./buildscripts/scons.py         --modules= --dbg=off --opt=on --link-model=dynamic --sanitize=undefined         --variables-files=./etc/scons/mongodbtoolchain_stable_clang.vars         --ninja generate-ninja
      

      When building with --dbg=on the runtime error disappears.

            Assignee:
            ryan.egesdahl@mongodb.com Ryan Egesdahl (Inactive)
            Reporter:
            katherine.wu@mongodb.com Katherine Wu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: