Received: from eggs.gnu.org ([2001:4830:134:3::10]:37065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8lR5-0001Te-5t for qemu-devel@nongnu.org; Mon, 21 Nov 2016 05:02:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c8lR1-0004xJ-6D for qemu-devel@nongnu.org; Mon, 21 Nov 2016 05:02:51 -0500 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:35779) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c8lR0-0004wd-VD for qemu-devel@nongnu.org; Mon, 21 Nov 2016 05:02:47 -0500 Received: by mail-wm0-x22c.google.com with SMTP id a197so136868571wmd.0 for ; Mon, 21 Nov 2016 02:02:46 -0800 (PST) Sender: Paolo Bonzini References: <673F175E-AF65-4F4F-9895-C7335A36AC29@gmail.com> From: Paolo Bonzini Message-ID: <8b136de6-490a-d194-b7a6-eabfb87daf2c@redhat.com> Date: Mon, 21 Nov 2016 11:02:43 +0100 MIME-Version: 1.0 In-Reply-To: <673F175E-AF65-4F4F-9895-C7335A36AC29@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit 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: G 3 , qemu-devel qemu-devel 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