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

RHEL-9: The tool lsipc show an incorrect USED value "Total number of semaphores".

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • rhel-9.5
    • rhel-9.4
    • util-linux
    • None
    • util-linux-2.37.4-19.el9
    • None
    • None
    • rhel-sst-cs-plumbers
    • ssg_core_services
    • 23
    • 1
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • x86_64
    • None

      In the routine do_sem_global() it calls ipc_sem_get_info() to create a linked list of the semaphore sets on the system in the var semds. It then counts the number of sets and is suppose to sum the number of semaphores in each set.

      The issue is it keeps using the sem_nsems (number of semaphores in the set) from the first entry. Thus the calculation essentially becomes (number of semaphore sets on system) * (the number of semaphores in the first set).

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

      lsipc -gs

      Please provide the package NVR for which bug is seen:

      util-linux-2.32.1-43.el8.x86_64

      How reproducible:

      everytime

      Steps to reproduce

      1. Create two sets of "inter-process communication" semaphores, each with a different number of nsems
      2. Execute the lspci -gs command

      Expected results

      The row "SEMMNS Total number of semaphores" should contain the total number of semaphores for all the sets on the system under the USED column.

      Actual results

      It contains the number of semaphores from the first entry times the number of sets.

              rhn-engineering-kzak Karel Zak
              rhn-support-vlovejoy Vern Lovejoy (Inactive)
              Karel Zak Karel Zak
              Radka Brychtova Radka Brychtova
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: