Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#59685 - libvirt 4.6.0-1 JSON too big integer

Attached to Project: Community Packages
Opened by boris (karloff) - Friday, 17 August 2018, 08:56 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 19 August 2018, 15:01 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Since last update of libvirt (from libvirt-4.5.0-1 to libvirt-4.6.0-1)

i get the following error in virt-manager on shutdown:

#####
failed to parse JSON 1:59: too big integer near '18446744073709551615'

Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 89, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 125, in tmpcb
callback(*args, **kwargs)
File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 82, in newfn
ret = fn(self, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/domain.py", line 1479, in shutdown
self._backend.shutdown()
File "/usr/lib/python2.7/site-packages/libvirt.py", line 2488, in shutdown
if ret == -1: raise libvirtError ('virDomainShutdown() failed', dom=self)
libvirtError: Interner Fehler: failed to parse JSON 1:59: too big integer near '18446744073709551615'
#####

and since last reboot i can start vm's but i also get an error when try to connect to graphic consol:
failed to parse JSON 1:59: too big integer near '18446744073709551615'

if i downgrade back to libvirt-4.5.0-1 everything works fine.


Additional info:
* package version(s)
libvirt-4.6.0-1

* config and/or log files etc.


Steps to reproduce:

Upgrade to libvirt-4.6.0-1 while using virt-manager to manage your VM's (dont know if virt-manager need for reproduce)
This task depends upon

Closed by  Doug Newgard (Scimmia)
Sunday, 19 August 2018, 15:01 GMT
Reason for closing:  Fixed
Additional comments about closing:  libvirt 4.6.0-2
Comment by Alexander Schnaidt (Namarrgon) - Friday, 17 August 2018, 13:09 GMT
This is caused by the switch to jansson which has "limitations" that yajl did not:

"Jansson uses `strtoll` to parse integers, and it explicitly checks for integer overflow [1]. This can only parse signed long longs, but QEMU sometimes produces JSON containing 2^64-1."

redhat reverted back to yajl:
https://bugzilla.redhat.com/show_bug.cgi?id=1614569
https://www.redhat.com/archives/libvir-list/2018-August/msg00633.html

Loading...