Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-9744

First process should delete and recreate shared memory files on windows

    XMLWordPrintable

    Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • Rank:
      1|hzs6db:

      Description

      In some scenarios, a crashing process can resulted in a corrupted cache file.
      This strengthens the code by deleting the shared memory files on startup to guarantee a clean start.
      This should already happen on other OSes.

      Test using a shared memory file with am->global_size set incorrectly. When agent is down, put the files in the agent/logs directory

      EXPECTED BEHAVIOUR
      ====================
      Agent should always start cleanly and not crash on a request

      ACTUAL BEHAVIOUR
      ==================
      Agent crashes with a c0005 access violation in am_shm_lock+037

        Attachments

          Issue Links

            Activity

              People

              Unassigned Unassigned
              alex.levin@forgerock.com Alex Levin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: