Skip to content

ocp: Fix core dump during telemetry log decode#3074

Open
jeff-lien-sndk wants to merge 1 commit intolinux-nvme:masterfrom
jeff-lien-sndk:ocp-json-assert
Open

ocp: Fix core dump during telemetry log decode#3074
jeff-lien-sndk wants to merge 1 commit intolinux-nvme:masterfrom
jeff-lien-sndk:ocp-json-assert

Conversation

@jeff-lien-sndk
Copy link
Contributor

When decoding ocp 2.5 telemetry log with json output the internal-log ocp plugin command was hitting an issue that caused a core dump. This commit will resolve that error.

Here's the actual error that this PR resolves:
nvme ocp internal-log /dev/nvme0n1 -f fifo_da_1-2_cctemp-telemetry.bin -s fifo_da_1-2_cctemp-string.bin --output-format json -t host -d 2

Missing telemetry-log. Fetching from drive...

telemetry.bin generated. Proceeding with next steps.

Extracting Telemetry Host Dump (Data Area 2)...
nvme: ./json_object.c:1490: json_object_array_add: Assertion `json_object_get_type(jso) == json_type_array' failed.
Aborted (core dumped)

When decoding ocp 2.5 telemetry log with json output
the internal-log ocp plugin command was hitting an issue
that caused a core dump.  This commit will resolve that
error.

Signed-off-by: jeff-lien-sndk <jeff.lien@sandisk.com>
@jeff-lien-sndk
Copy link
Contributor Author

@igaw Hey Dan, could you review and merge (if no issues)? We have a few users looking for these fixes. Same for Brandon's PR #3082. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant