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

'crm_attribute -t nodes --node localhost' fails - possibly wrong memory access

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • rhel-8.10
    • rhel-8.10, rhel-9.4
    • pacemaker
    • pacemaker-2.1.7-4.el8
    • Regression
    • sst_high_availability
    • ssg_filesystems_storage_and_HA
    • 24
    • 26
    • 2
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • Bug Fix
    • Hide
      Cause (the user action or circumstances that trigger the bug): If crm_attribute is run with the --node argument, Pacemaker could free the argument before using it. This also affects pcs commands that call crm_attribute in this manner.
      Consequence (what the user experience is when the bug occurs): crm_attribute gives an error incorrectly or crashes.
      Fix (what has changed to fix the bug; do not include overly technical details): Pacemaker now does not free the value before using it.
      Result (what happens now that the patch is applied): crm_attribute works as expected when run with the --node argument.
      Show
      Cause (the user action or circumstances that trigger the bug): If crm_attribute is run with the --node argument, Pacemaker could free the argument before using it. This also affects pcs commands that call crm_attribute in this manner. Consequence (what the user experience is when the bug occurs): crm_attribute gives an error incorrectly or crashes. Fix (what has changed to fix the bug; do not include overly technical details): Pacemaker now does not free the value before using it. Result (what happens now that the patch is applied): crm_attribute works as expected when run with the --node argument.

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

      Running 'crm_attribute -t nodes --node localhost' fails with an error complaining about inability to map a random string to node uuid.

      Please provide the package NVR for which bug is seen:

      pacemaker-2.1.7-3 - both RHEL9 and RHEL8 are affected

      How reproducible:

      always, easily

      Steps to reproduce

      crm_attribute -t nodes --node localhost

      Expected results

      List node attributes for localhost node or report that localhost cannot be mapped to uuid

      Actual results

      Fails with an error, the name is random and changes with each run. This suggests, it might be caused by a bad memory access, wrong pointer or something similar.

      crm_attribute: Could not map name=G��#(V to a UUID
      crm_attribute: Could not map name=�6▒�U to a UUID
      crm_attribute: Could not map name=�jiV to a UUID

      Both querying and setting attributes for 'localhost' fails. Other nodes, both existing and non-existing in the cluster seem to be working fine.

            rhn-support-msmazova Marketa Smazova
            tojeline@redhat.com Tomas Jelinek
            Reid Wahl Reid Wahl
            Marketa Smazova Marketa Smazova
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: