Skip to content

Bugs in restart execution when /dev/shm is used #12

Open

Description

@qtcwt

When /dev/shm is used (i.e., SHM_SIMULATING is defined), at the end of a restart execution when cached blocks are given back to their superblocks, the superblock pointer in their descriptor is NULL.

It could be due to incorrect write-back, or there's something missed for restart.
It shouldn't be due to page caching of mmap whose backing file is in /dev/shm, since explicitly issuing a msync before munmap doesn't solve the issue.
However, the issue disappears when /mnt/pmem and DAX-mmap is used.

The branch of test has a toy program that can trigger this bug.

Also, another bug was reported that RP_free causes a segfault in a similar scenario---in a restart execution with SHM_SIMULATING, and disappears when /mnt/pmem is used.

Activity

  1. self-assigned this
    on May 16, 2020
  2. changed the title [-]Content in descriptor is 0 after recovery when /dev/shm is used[/-] [+]Bug in restart execution when /dev/shm is used[/+] on May 16, 2020
  3. changed the title [-]Bug in restart execution when /dev/shm is used[/-] [+]Bugs in restart execution when /dev/shm is used[/+] on May 16, 2020
  4. qtcwt commented on May 16, 2020

    @qtcwt
    MemberAuthor

    Both bugs are triggered despite the proper call to RP_close at the end of the previous execution.

  5. linked a pull request that will close this issueclose Ralloc heap AFTER TCache destructors #13on Aug 6, 2020
  6. added
    bug
    on Nov 4, 2020
  7. added this to the 2.0 milestone on Nov 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions