From: Markus Armbruster <armbru@redhat.com>
To: Thomas Huth <thuth@redhat.com>
Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>,
qemu-devel@nongnu.org, qemu-trivial@nongnu.org,
BALATON Zoltan <balaton@eik.bme.hu>
Subject: Re: [PATCH] hw/display/cg3: Fix crash when introspecting cgthree from the CLI
Date: Thu, 19 Mar 2026 12:20:43 +0100 [thread overview]
Message-ID: <87a4w4awvo.fsf@pond.sub.org> (raw)
In-Reply-To: <20260317080623.438230-1-thuth@redhat.com> (Thomas Huth's message of "Tue, 17 Mar 2026 09:06:23 +0100")
Thomas Huth <thuth@redhat.com> writes:
> From: Thomas Huth <thuth@redhat.com>
>
> QEMU currently crashes when introspecting the cgthree device from the
> command line interface:
>
> $ ./qemu-system-sparc -device cgthree,help
> Segmentation fault (core dumped)
>
> This happens because the memory_region_init_rom() function internally
> calls qemu_ram_alloc_internal() that needs the current_machine pointer
> to be set up - which is not the case here since the machine has not
> been created yet.
>
> There does not seem to be a compelling reason for initializing the
> memory regions from the instance_init function, so let's simply move
> the code into the realize() function instead to fix this issue.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
Tested-by: Markus Armbruster <armbru@redhat.com>
prev parent reply other threads:[~2026-03-19 11:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-17 8:06 [PATCH] hw/display/cg3: Fix crash when introspecting cgthree from the CLI Thomas Huth
2026-03-19 11:20 ` Markus Armbruster [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a4w4awvo.fsf@pond.sub.org \
--to=armbru@redhat.com \
--cc=balaton@eik.bme.hu \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.