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

Force C locale on Ubuntu 16.04 builders

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.18, 3.4.11, 3.6.0-rc3
    • Component/s: Build
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v3.4, v3.2
    • Sprint:
      Platforms 2017-11-13
    • Linked BF Score:
      0

      Description

      For an unknown reason, newlocale fails for "en_US.UTF-8" occasionally on Ubuntu 16.04. The workaround is to explicitly set LANG=C which does not require glibc to load files since it is builtin to glibc.

      This surfaces as

       Failed global initialization: BadValue: Invalid or no user locale set. Please ensure LANG and/or LC_* environment variables are set correctly
      

      because "std::locale::facet::_S_create_c_locale" is throwing a std::runtime_error.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: