[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] qobject/qjson.c:69: failed assertion `obj != NULL'
From: |
G 3 |
Subject: |
Re: [Qemu-devel] qobject/qjson.c:69: failed assertion `obj != NULL' |
Date: |
Mon, 21 Nov 2016 15:12:52 -0500 |
On Nov 21, 2016, at 5:02 AM, Paolo Bonzini wrote:
On 21/11/2016 07:30, G 3 wrote:
When I try to use qemu-system-i386, I see this error message:
qobject/qjson.c:69: failed assertion `obj != NULL'.
This is the function where the assertion fails:
/*
* IMPORTANT: This function aborts on error, thus it must not
* be used with untrusted arguments.
*/
QObject *qobject_from_jsonf(const char *string, ...)
{
QObject *obj;
va_list ap;
va_start(ap, string);
obj = qobject_from_jsonv(string, &ap);
va_end(ap);
assert(obj != NULL);
return obj;
}
The string argument is this: { 'seconds': %qd, 'microseconds': %qd }
Would anyone know how to fix this problem?
Please include the full backtrace.
Paolo
(gdb) bt
#0 0x90047dac in kill ()
#1 0x9012d7b4 in abort ()
#2 0x003ddf3c in __eprintf (string=<value temporarily unavailable,
due to optimizations>, expression=<value temporarily unavailable, due
to optimizations>, line=<value temporarily unavailable, due to
optimizations>, filename=<value temporarily unavailable, due to
optimizations>) at ../../../libgcc/libgcc2.c:2116
#3 0x003ec69c in qobject_from_jsonf (string=0x443f44 "{ 'seconds': %
qd, 'microseconds': %qd }") at qobject/qjson.c:69
#4 0x0033f6e4 in timestamp_put (qdict=0x2052e00) at /Users/john/
desktop/qemu-2.0.0/monitor.c:476
#5 0x0033fd98 in monitor_protocol_event (event=QEVENT_RESUME,
data=0x0) at /Users/john/desktop/qemu-2.0.0/monitor.c:665
#6 0x002a7a08 in vm_start () at vl.c:1731
#7 0x002b0bec in qemu_main (argc=5, argv=0xbffff748,
envp=0xbffff760) at vl.c:4496
#8 0x00274980 in -[QemuCocoaAppController
startEmulationWithArgc:argv:] (self=0x1a2ec90, _cmd=0x437398, argc=5,
argv=0xbffff748) at ui/cocoa.m:863
#9 0x002748d0 in -[QemuCocoaAppController
applicationDidFinishLaunching:] (self=0x1a2ec90, _cmd=0x437408,
note=0x1a27170) at ui/cocoa.m:841
#10 0x92be6e1c in _nsnote_callback ()
#11 0x90805ec0 in __CFXNotificationPost ()
#12 0x907fdf20 in _CFXNotificationPostNotification ()
#13 0x92bd1224 in -[NSNotificationCenter
postNotificationName:object:userInfo:] ()
#14 0x93793be8 in -[NSApplication _postDidFinishNotification] ()
#15 0x93793ad4 in -[NSApplication _sendFinishLaunchingNotification] ()
#16 0x9379361c in -[NSApplication(NSAppleEventHandling)
_handleAEOpen:] ()
#17 0x937931c4 in -[NSApplication(NSAppleEventHandling)
_handleCoreEvent:withReplyEvent:] ()
#18 0x92be7e28 in -[NSAppleEventManager
dispatchRawAppleEvent:withRawReply:handlerRefCon:] ()
#19 0x92be7c88 in _NSAppleEventManagerGenericHandler ()
#20 0x91500960 in aeDispatchAppleEvent ()
#21 0x915007fc in dispatchEventAndSendReply ()
#22 0x91500654 in aeProcessAppleEvent ()
#23 0x932b02e0 in AEProcessAppleEvent ()
#24 0x9379190c in _DPSNextEvent ()
#25 0x937913f8 in -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#26 0x9378d93c in -[NSApplication run] ()
#27 0x002759f0 in main (argc=5, argv=0xbffff748) at ui/cocoa.m:1000