Skip to content

Crash consistency bug in 3.2-nvml #219

@iangneal

Description

@iangneal

redis/src/server.c

Lines 4015 to 4019 in 4e622e7

if (server.pm_pool == NULL) {
/* Open the existing PMEM pool file. */
server.pm_pool = pmemobj_open(server.pm_file_path, PM_LAYOUT_NAME);
server.pm_rootoid = POBJ_ROOT(server.pm_pool, struct redis_pmem_root);
server.pm_reconstruct_required = true;

  • If the pool is corrupted or is otherwise unopenable, pmemobj_open(...) will return NULL, causing a SEGFAULT during initialization (i.e., at POBJ_ROOT).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions