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:
-
nvme persistent-event-log /dev/nvme7 -a 1
Establishing Persistent Event Log Context
-
nvme persistent-event-log /dev/nvme7 -a 1 -l 1024
command passes without error
-
nvme persistent-event-log /dev/nvme7 -a 1 -l 4096
command passes without error
-
nvme persistent-event-log /dev/nvme7 -a 0 -l 512 -o json
command passes without error
-
nvme persistent-event-log /dev/nvme7 -a 0 -l 1024 -o json
Segmentation fault (core dumped)
-
nvme persistent-event-log /dev/nvme7 -a 0 -l 4096 -o json
Segmentation fault (core dumped)
-
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.
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:
nvme persistent-event-log /dev/nvme7 -a 1
Establishing Persistent Event Log Context
nvme persistent-event-log /dev/nvme7 -a 1 -l 1024
command passes without error
nvme persistent-event-log /dev/nvme7 -a 1 -l 4096
command passes without error
nvme persistent-event-log /dev/nvme7 -a 0 -l 512 -o json
command passes without error
nvme persistent-event-log /dev/nvme7 -a 0 -l 1024 -o json
Segmentation fault (core dumped)
nvme persistent-event-log /dev/nvme7 -a 0 -l 4096 -o json
Segmentation fault (core dumped)
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.