Skip to content

Invalid heap size when creating a new pool on a used-before devdax. #6012

@grom72

Description

@grom72

ISSUE: Invalid heap size when creating a new pool on a used-before devdax.

Environment Information

  • PMDK package version(s):
  • OS(es) version(s):
  • ndctl version(s):
  • kernel version(s):
  • compiler, libraries, packaging and other related tools version(s):

Please provide a reproduction of the bug:

pmempool_transform/TEST9 pmemobj9.log <libpmemobj>: <1> [heap.c:539 zone_calc_size_idx] assertion failure: heap_size >= zone_id * (sizeof(struct zone) + sizeof(struct chunk) * ((65535) - 7))

The problem has been solved by changing the order of devdax devices in test config file.

It seems that in some scenarios "old data" was treated as new data and not initialized from scratch.

How often bug is revealed: (always, often, rare):

Actual behavior:

Expected behavior:

Details

Additional information about Priority and Help Requested:

Are you willing to submit a pull request with a proposed change? (Yes, No)

Requested priority: (Showstopper, High, Medium, Low)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions