qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Add new qmp json is not setting command errp
@ 2023-11-14  0:11 bambooza
  0 siblings, 0 replies; only message in thread
From: bambooza @ 2023-11-14  0:11 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 584 bytes --]

I am attempting to add a new json file for qmp.  My issue is that errp is
null so when I call error_setg qemu crashes.

Specifically

QEMU: F0000 00:00:1699907518.054094 2802908 logging.cc:57] assert.h
assertion failed at qemu/util/error.c:59 in void error_setv(Error **, const
char *, int, const char *, ErrorClass, const char *, struct __va_list_tag
*, const char *): *errp == NULL
I am not sure what I'm missing.  The generated files for command, event,
types, visit and view are created.

The function gets called and the passed in value is correctly populated
just errp is null.

[-- Attachment #2: Type: text/html, Size: 920 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-14  0:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-14  0:11 Add new qmp json is not setting command errp bambooza

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).