Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-2964

Ruby 2.0 x64 fails on win2003

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Template:
    • Story Points:
      3
    • Sprint:
      2014-08-06

      Description

      Our compiled version of ruby 2.0 on Windows x64 depends on a version of msvcrt that contains _gmtime64_s and _localtime64_s, which are security enhanced versions of _gmtime64 and _localtime64. On 2003 (with msvcrt version 7.0.3790.3959), these functions are not available. As a result trying to execute ruby --version on 2003 will fail.

      This issue began in ruby in commit https://github.com/ruby/ruby/commit/f2979f31 which added support for the re-entrant versions of gmtime/localtime.

      Later the code was changed to use the secure versions of these functions when compiled with __MINGW64__,
      https://github.com/ruby/ruby/commit/ce2a1e109c10d28f6f6908aff3a8b3209a77c5bb

      Ruby 2.1 was modified to check for the secure functions at compile time. See https://bugs.ruby-lang.org/issues/9119 and
      https://github.com/ruby/ruby/commit/58a7cdaaf0fe70f7db1b703f6da40372f2ee938f

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  josh Josh Cooper
                  QA Contact:
                  Erik Dasher
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Zendesk Support