Skip to content

Segmentation fault when issue persistent-event-log with json output format #2809

@yalanliufio

Description

@yalanliufio

With latest release 2.13, when try to issue a persistent-event-log with json output encounter Segmentation fault, no json output works fine.

nvme --version
nvme version 2.13 (git 2.13)
libnvme version 1.13 (git 1.13)

Here are the command sequences used for the test:

  1. nvme persistent-event-log /dev/nvme7 -a 1
    Establishing Persistent Event Log Context

  2. nvme persistent-event-log /dev/nvme7 -a 1 -l 1024
    command passes without error

  3. nvme persistent-event-log /dev/nvme7 -a 1 -l 4096
    command passes without error

  4. nvme persistent-event-log /dev/nvme7 -a 0 -l 512 -o json
    command passes without error

  5. nvme persistent-event-log /dev/nvme7 -a 0 -l 1024 -o json
    Segmentation fault (core dumped)

  6. nvme persistent-event-log /dev/nvme7 -a 0 -l 4096 -o json
    Segmentation fault (core dumped)

  7. nvme persistent-event-log /dev/nvme7 -a 2
    Releasing Persistent Event Log Context

I have tried to switch back the old version 2.2.1, it works fine without this problem. Same firmware and same OS, just change nvme cli version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions