Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-48126

Ruby 3.0 and 3.1 GC.compact fails on ppc64le

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • rhel-8.9.0.z, rhel-9.6.z
    • ruby-3.0-module
    • None
    • None
    • None
    • rhel-sst-pt-python-ruby-nodejs
    • ssg_platform_tools
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat 3scale API Management
    • None
    • None
    • None
    • ppc64le
    • None

      What were you trying to do that didn't work?

      Running with ruby libraries that call GC.compact like falcon.

      See https://github.com/socketry/falcon/blob/v0.42.3/lib/falcon/command/serve.rb#L153-L155

      This seems to be this upstream Ruby bug: https://bugs.ruby-lang.org/issues/18829

      It has some patches that are supposed to disable compaction on unsupported archs that can be used to fix the issue.

      Please provide the package NVR for which bug is seen:

      ruby-3.0.7-143.module+el8.10.0+21858+d19f3934.ppc64le

      How reproducible:

      always, but make sure to run on real hardware because it doesn't reproduce using `podman run --arch=ppc64le`

      Steps to reproduce

      1. ruby -e "GC.compact"

      Expected results

      no error

      Actual results

      -e:1:in `compact': compact() function is unimplemented on this machine (NotImplementedError)
              from -e:1:in `<main>'
      

              ruby-maint ruby-maint
              akostadi1@redhat.com Aleksandar Kostadinov
              ruby-maint ruby-maint
              rhel-ruby-qe bot rhel-ruby-qe bot
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: