qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: malc <av1474@comtv.ru>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] screendump broken
Date: Thu, 11 Dec 2008 21:55:42 +0300 (MSK)	[thread overview]
Message-ID: <Pine.LNX.4.64.0812112154180.3141@linmac.oyster.ru> (raw)
In-Reply-To: <49412ABB.6080702@suse.de>

On Thu, 11 Dec 2008, Alexander Graf wrote:

> I haven't bisected this one, but when I call "screendump <file>" in
> current svn, I get a segfault:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x000000000042e7c8 in vga_draw_glyph9_32 (d=0x0, linesize=<value
> optimized out>, font_ptr=0x7fcab68f6802 "", h=<value optimized out>,
> fgcol=<value optimized out>,
>    bgcol=0, dup9=0) at /suse/agraf/work/svm/qemu/hw/vga_template.h:135
> 135            ((uint32_t *)d)[0] = (-((font_data >> 7)) & xorcol) ^ bgcol;
> (gdb)
>
> It has probably been introduced within the last month.
>

It was broken much longer than that.. Here's something that worked
a while ago:

diff --git a/hw/vga.c b/hw/vga.c
index 9540db0..cbba46d 100644
--- a/hw/vga.c
+++ b/hw/vga.c
@@ -2453,6 +2453,7 @@ static void vga_screen_dump(void *opaque, const char 
*filename)

      s->ds = ds;
      s->graphic_mode = -1;
+    vga_save_dpy_resize (ds, saved_ds->width, saved_ds->height);
      vga_update_display(s);

      if (ds->data) {


-- 
mailto:av1474@comtv.ru

      reply	other threads:[~2008-12-11 18:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-11 14:59 [Qemu-devel] screendump broken Alexander Graf
2008-12-11 18:55 ` malc [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=Pine.LNX.4.64.0812112154180.3141@linmac.oyster.ru \
    --to=av1474@comtv.ru \
    --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 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).