Bug 1614569
Summary: | Jansson can not always parse QEMU's JSON | ||
---|---|---|---|
Product: | [Community] Virtualization Tools | Reporter: | Michael Chapman <redhat-bugzilla> |
Component: | libvirt | Assignee: | Libvirt Maintainers <libvirt-maint> |
Status: | CLOSED NEXTRELEASE | QA Contact: | |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | unspecified | CC: | berrange, jtomko, libvirt-maint, mikhail.v.gavrilov, rjones, tburke |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-08-13 13:58:35 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1496189 |
Description
Michael Chapman
2018-08-10 00:00:09 UTC
Looks like we are pretty doomed - Jansson devs have refused to support unsigned 64-bit ints https://github.com/akheron/jansson/issues/154 AFAICT, there's no way to get the original value as a string in jansson either - it will always parse it :-( Sigh, even if we extend the range and say goodbye to precision by using JSON_DECODE_INT_AS_REAL, it will not overflow to -1 which QEMU expects us to do here. I believe this is solved by my earlier series 'Revert the switch to Jansson': https://www.redhat.com/archives/libvir-list/2018-July/msg02106.html Yeah, I've looked at the source and there is no "get out of jail free" option here - the parser has no way to expose the number as a string like yajl did. This looks like a terminal problem with jansson with revert being only option :-( c-json doesn't look any better in this respect either, also using strtoll I pointed out years and years ago that JSON integers are fundamentally undefined: https://lists.gnu.org/archive/html/qemu-devel/2011-05/msg02437.html Revert of the Jansson switch: https://www.redhat.com/archives/libvir-list/2018-August/msg00633.html Pushed as of: commit 86db0db979c39df278f03dbf3b4239c873ddb637 Author: Ján Tomko <jtomko> CommitDate: 2018-08-13 15:50:01 +0200 Revert "build: add --with-jansson" git describe: v4.6.0-128-g86db0db979 |