Received: from eggs.gnu.org ([2001:4830:134:3::10]:45581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8uxZ-0008Ql-FS for qemu-devel@nongnu.org; Mon, 21 Nov 2016 15:13:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c8uxV-0004BL-AX for qemu-devel@nongnu.org; Mon, 21 Nov 2016 15:13:01 -0500 Received: from mail-io0-x236.google.com ([2607:f8b0:4001:c06::236]:35262) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c8uxV-0004B0-5i for qemu-devel@nongnu.org; Mon, 21 Nov 2016 15:12:57 -0500 Received: by mail-io0-x236.google.com with SMTP id n13so49882846ioe.2 for ; Mon, 21 Nov 2016 12:12:57 -0800 (PST) In-Reply-To: <8b136de6-490a-d194-b7a6-eabfb87daf2c@redhat.com> References: <673F175E-AF65-4F4F-9895-C7335A36AC29@gmail.com> <8b136de6-490a-d194-b7a6-eabfb87daf2c@redhat.com> Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <16AF327F-E1FE-4F2E-9919-A474276474FF@gmail.com> Content-Transfer-Encoding: 7bit From: G 3 Date: Mon, 21 Nov 2016 15:12:52 -0500 Subject: Re: [Qemu-devel] qobject/qjson.c:69: failed assertion `obj != NULL' List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , Markus Armbruster Cc: qemu-devel qemu-devel 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=, expression=, line=, filename=) 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