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

Ruby 3.0 and 3.1 GC.compact fails on ppc64le

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Critical Critical
    • None
    • rhel-8.9.0.z, rhel-9.6.z
    • ruby-3.1-module
    • None
    • None
    • None
    • rhel-sst-pt-python-ruby-nodejs
    • ssg_core_services
    • 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.1.5-143.module+el8.10.0+21792+e2f63d26.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>'
      

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

                Created:
                Updated:
                Resolved: