From: Shin-ichiro KAWASAKI <kawasaki@juno.dti.ne.jp>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [6344] graphical_console_init change (Stefano Stabellini)
Date: Sun, 18 Jan 2009 21:54:19 +0900 [thread overview]
Message-ID: <4973267B.9010901@juno.dti.ne.jp> (raw)
In-Reply-To: <E1LNtzL-0002pj-7r@cvs.savannah.gnu.org>
Hi.
Anthony Liguori wrote:
> Revision: 6344
> http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6344
> Author: aliguori
> Date: 2009-01-16 19:04:14 +0000 (Fri, 16 Jan 2009)
>
> Log Message:
> -----------
> graphical_console_init change (Stefano Stabellini)
>
(snip)
> Modified: trunk/vl.c
> ===================================================================
> --- trunk/vl.c 2009-01-16 18:13:32 UTC (rev 6343)
> +++ trunk/vl.c 2009-01-16 19:04:14 UTC (rev 6344)
(snip)
> + /* just use the first displaystate for the moment */
> + ds = display_state;
> /* terminal init */
> - memset(&display_state, 0, sizeof(display_state));
> - ds->surface = qemu_create_displaysurface(640, 480, 32, 640 * 4);
> if (nographic) {
> if (curses) {
> fprintf(stderr, "fatal: -nographic can't be used with -curses\n");
This commit seems to cause segmentation fault for boards which has no graphics
display. I saw the fault when I working with my SE7750 board support patch, and
invoking with -nographic options. The fault happens in dump_display_init(ds)
within the 'if (nographic)' block quoted above. The argument ds is NULL because
no graphic board initialize it, I guess. Some null check for ds or dummy ds might
be needed, for such cases.
Regards,
Shin-ichiro KAWASAKI
next prev parent reply other threads:[~2009-01-18 12:54 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-16 19:04 [Qemu-devel] [6344] graphical_console_init change (Stefano Stabellini) Anthony Liguori
2009-01-18 12:54 ` Shin-ichiro KAWASAKI [this message]
2009-01-18 14:37 ` Aurelien Jarno
2009-01-18 14:48 ` [PATCH] Adds null check for DisplayStatus (wasRe: " Shin-ichiro KAWASAKI
2009-01-19 11:39 ` Stefano Stabellini
2009-01-19 15:26 ` Shin-ichiro KAWASAKI
2009-01-19 15:31 ` Stefano Stabellini
2009-01-19 16:08 ` Anthony Liguori
2009-01-19 16:19 ` Stefano Stabellini
2009-01-19 19:07 ` Anthony Liguori
2009-01-20 10:53 ` [Qemu-devel] [PATCH] Adds null check for DisplayStatus Stefano Stabellini
2009-01-20 15:56 ` Gerd Hoffmann
2009-01-20 16:36 ` Stefano Stabellini
2009-01-21 11:06 ` [Qemu-devel] " Stefano Stabellini
2009-01-21 18:59 ` [Qemu-devel] " Anthony Liguori
2009-01-19 16:34 ` [PATCH] Adds null check for DisplayStatus (wasRe: [Qemu-devel] [6344] graphical_console_init change (Stefano Stabellini) Anthony Liguori
2009-02-09 11:38 ` Riku Voipio
2009-02-09 11:52 ` Stefano Stabellini
2009-02-09 17:00 ` Aurelien Jarno
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=4973267B.9010901@juno.dti.ne.jp \
--to=kawasaki@juno.dti.ne.jp \
--cc=qemu-devel@nongnu.org \
/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.