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

Fuzzer targets are declared but not buildable with GCC

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.1
    • Component/s: Build
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Security 2019-07-29

      Description

      $ time python3 buildscripts/scons.py --implicit-cache --build-fast-and-loose=on --dbg=on --opt=on --variables-files="/home/andrew/.scons/site_scons/mongo_custom_variables.py etc/scons/mongodbtoolchain_stable_gcc.vars" --link-model=dynamic --install-mode=hygienic --allocator=system -j300 --use-libunwind -j300 install-all-meta -k
      ...
      Linking build/optdebug/mongo/bson/bson_validate_fuzzer
      g++: error: unrecognized argument to -fsanitize= option: 'fuzzer'
      Linking build/optdebug/mongo/util/net/asn1_parser_fuzzer
      g++: error: unrecognized argument to -fsanitize= option: 'fuzzer'
      Linking build/optdebug/mongo/db/op_msg_fuzzer
      g++: error: unrecognized argument to -fsanitize= option: 'fuzzer'
      scons: *** [build/optdebug/mongo/bson/bson_validate_fuzzer] Error 1
      scons: *** [build/optdebug/mongo/util/net/asn1_parser_fuzzer] Error 1
      scons: *** [build/optdebug/mongo/db/op_msg_fuzzer] Error 1
      scons: done building targets (errors occurred during build).
      build/optdebug/mongo/bson/bson_validate_fuzzer failed: Error 1
      build/optdebug/mongo/util/net/asn1_parser_fuzzer failed: Error 1
      build/optdebug/mongo/db/op_msg_fuzzer failed: Error 1
      

      We should add a probe to ensure that the current toolchain supports -fsanitize=fuzzer, and, if not, we shouldn't declare the fuzzing targets.

        Attachments

          Activity

            People

            Assignee:
            jonathan.reams Jonathan Reams
            Reporter:
            acm Andrew Morrow
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: