qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] screendump broken
@ 2008-12-11 14:59 Alexander Graf
  2008-12-11 18:55 ` malc
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Graf @ 2008-12-11 14:59 UTC (permalink / raw)
  To: qemu-devel

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.

Alex

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] screendump broken
  2008-12-11 14:59 [Qemu-devel] screendump broken Alexander Graf
@ 2008-12-11 18:55 ` malc
  0 siblings, 0 replies; 2+ messages in thread
From: malc @ 2008-12-11 18:55 UTC (permalink / raw)
  To: qemu-devel

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-12-11 18:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-11 14:59 [Qemu-devel] screendump broken Alexander Graf
2008-12-11 18:55 ` malc

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).