All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: KVM list <kvm@vger.kernel.org>
Subject: Re: Another SIGFPE in display code, now in cirrus
Date: Fri, 07 May 2010 11:54:44 +0400	[thread overview]
Message-ID: <4BE3C744.8080609@msgid.tls.msk.ru> (raw)
In-Reply-To: <4BE32178.2090103@msgid.tls.msk.ru>

07.05.2010 00:07, Michael Tokarev wrote:
> There was a bug recently fixed in vnc code.  Apparently
> there's something similar in the cirrus emulation as well.
> Here it triggers _always_ (including old versions of kvm)
> when running windows NT and hitting "test" button in its
> display resolution dialog. Here's what gdb is to say:
>
> Program received signal SIGFPE, Arithmetic exception.
> [Switching to Thread 0xf76cab70 (LWP 580)]
> 0x080c5e45 in cirrus_do_copy (s=0x86134dc, dst=960000, src=0, w=2, h=9)
> at hw/cirrus_vga.c:687
> 687 sx = (src % ABS(s->cirrus_blt_srcpitch)) / depth;
> (gdb) p s->cirrus_blt_srcpitch
> $2 = 0
[]
> This qemu-kvm-0.12.3 - actually a debian package of it,
> but there's no patches relevant to video applied.

I just tried current qemu-kvm/master, it crashes at exactly
the same place:

Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread 0xf79dfb70 (LWP 10840)]
0x0821b4ca in cirrus_do_copy (s=0x85dc7ac)
     at hw/cirrus_vga.c:687
687	    sx = (src % ABS(s->cirrus_blt_srcpitch)) / depth;

(gdb) bt
#0  0x0821b4ca in cirrus_do_copy (s=0x85dc7ac) at hw/cirrus_vga.c:687
#1  cirrus_bitblt_videotovideo_copy (s=0x85dc7ac) at hw/cirrus_vga.c:748
#2  cirrus_bitblt_videotovideo (s=0x85dc7ac) at hw/cirrus_vga.c:870
#3  cirrus_bitblt_start (s=0x85dc7ac) at hw/cirrus_vga.c:1011
#4  0x0821d009 in cirrus_vga_mem_writel (opaque=0x85dc7ac, addr=98320,
     val=960000) at hw/cirrus_vga.c:2120
#5  0x0811d147 in cpu_physical_memory_rw (addr=753680, buf=0xf7fdc390 "",
     len=4, is_write=1) at exec.c:3475
#6  0x0807b462 in cpu_physical_memory_write () at cpu-common.h:67
#7  kvm_flush_coalesced_mmio_buffer () at kvm-all.c:808
#8  0x0807cc2e in kvm_run (env=0x84c4650) at qemu-kvm.c:575
#9  0x0807d10c in kvm_cpu_exec (env=0x84c4650) at qemu-kvm.c:1192
#10 0x0807ec0a in kvm_main_loop_cpu (_env=0x84c4650) at qemu-kvm.c:1449
#11 ap_main_loop (_env=0x84c4650) at qemu-kvm.c:1495
#12 0xf7fad3d0 in start_thread () from /lib/libpthread.so.0
#13 0xf7cbf10e in clone () from /lib/libc.so.6

> Anything can be done with it?
>
> Thanks!

/mjt

  reply	other threads:[~2010-05-07  7:54 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-06 20:07 Another SIGFPE in display code, now in cirrus Michael Tokarev
2010-05-07  7:54 ` Michael Tokarev [this message]
2010-05-10  7:41 ` Avi Kivity
2010-05-10  7:41   ` [Qemu-devel] " Avi Kivity
2010-05-10  8:15   ` Avi Kivity
2010-05-10  8:15     ` [Qemu-devel] " Avi Kivity
2010-05-12 12:20     ` Stefano Stabellini
2010-05-12 12:20       ` [Qemu-devel] " Stefano Stabellini
2010-05-12 12:36       ` Avi Kivity
2010-05-12 12:36         ` [Qemu-devel] " Avi Kivity
2010-05-12 13:45         ` Stefano Stabellini
2010-05-12 13:45           ` [Qemu-devel] " Stefano Stabellini
2010-05-12 14:27           ` Avi Kivity
2010-05-12 14:27             ` [Qemu-devel] " Avi Kivity
2010-05-12 15:57             ` Stefano Stabellini
2010-05-12 15:57               ` [Qemu-devel] " Stefano Stabellini
2010-05-12 16:07               ` Avi Kivity
2010-05-12 16:07                 ` [Qemu-devel] " Avi Kivity
2010-05-12 16:55                 ` Stefano Stabellini
2010-05-12 16:55                   ` [Qemu-devel] " Stefano Stabellini
2010-05-12 16:57                   ` Avi Kivity
2010-05-12 16:57                     ` [Qemu-devel] " Avi Kivity
2010-05-12 17:07                   ` Jamie Lokier
2010-05-12 17:07                     ` Jamie Lokier
2010-05-12 18:11                     ` Stefano Stabellini
2010-05-12 18:11                       ` Stefano Stabellini
2010-05-12 19:12                       ` Michael Tokarev
2010-05-12 19:12                         ` Michael Tokarev
2010-05-13  6:49                       ` Avi Kivity
2010-05-13  6:49                         ` Avi Kivity
2010-05-13 13:48                         ` Stefano Stabellini
2010-05-13 13:48                           ` Stefano Stabellini
2010-05-13 14:13                           ` Michael Tokarev
2010-05-13 14:13                             ` Michael Tokarev
2010-05-13 18:03                             ` Stefano Stabellini
2010-05-13 18:03                               ` Stefano Stabellini
2010-05-13 16:04                           ` Jamie Lokier
2010-05-13 16:04                             ` Jamie Lokier
2010-05-28 20:51                       ` Michael Tokarev
2010-05-28 20:51                         ` Michael Tokarev
2010-05-30  8:24                       ` Avi Kivity
2010-05-30  8:24                         ` Avi Kivity
2010-05-13  7:36               ` Paolo Bonzini
2010-05-13  7:36                 ` [Qemu-devel] " Paolo Bonzini

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=4BE3C744.8080609@msgid.tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=kvm@vger.kernel.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.