qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Igor Mammedov <imammedo@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Jan Kiszka" <jan.kiszka@siemens.com>,
	"KONRAD Frederic" <fred.konrad@greensocs.com>,
	"Emilio G. Cota" <cota@braap.org>,
	"Alex Bennée" <alex.bennee@linaro.org>,
	"Richard Henderson" <rth@twiddle.net>,
	"Pranith Kumar" <bobby.prani@gmail.com>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"Paolo Bonzini" <pbonzini@redhat.com>
Subject: [Qemu-devel] qemu-2.9 crashes in tcg_handle_interrupt() during winx64 boot
Date: Thu, 30 Mar 2017 16:46:57 +0200	[thread overview]
Message-ID: <20170330164657.50c75e8c@nial.brq.redhat.com> (raw)

(PS: resend due to wrong qemu-devel mail list address in original email)


Regression bisects to:

commit 8d04fb55dec381bc5105cb47f29d918e579e8cbd
Author: Jan Kiszka <jan.kiszka@siemens.com>
Date:   Thu Feb 23 18:29:11 2017 +0000
    tcg: drop global lock during TCG code execution

with following stack trace:
#2  0x00007fffee48f0c5 in g_assertion_message (domain=domain@entry=0x0, file=file@entry=0x555555c8aa80 "qemu/translate-common.c", line=line@entry=0x22, func=func@entry=0x555555c8aae0 <__FUNCTION__.22084> "tcg_handle_interrupt", message=message@entry=0x7fff781371d0 "assertion failed: (qemu_mutex_iothread_locked())")
    at gtestutils.c:2432
#3  0x00007fffee48f15a in g_assertion_message_expr (domain=0x0, file=0x555555c8aa80 "qemu/translate-common.c", line=0x22, func=0x555555c8aae0 <__FUNCTION__.22084> "tcg_handle_interrupt", expr=<optimized out>)
    at gtestutils.c:2455
#4  0x000055555577808b in tcg_handle_interrupt (cpu=0x55555683a400, mask=0x2)
    at qemu/translate-common.c:34
#5  0x00005555557fe900 in cpu_interrupt (cpu=0x55555683a400, mask=0x2)
    at qemu/include/qom/cpu.h:795
#6  0x00005555557ffb6a in apic_update_irq (s=0x5555568587a0) at qemu/hw/intc/apic.c:372
#7  0x00005555557ff9d4 in apic_set_tpr (s=0x5555568587a0, val=0x0) at qemu/hw/intc/apic.c:304
#8  0x000055555580168d in cpu_set_apic_tpr (dev=0x5555568587a0, val=0x0)
    at qemu/hw/intc/apic_common.c:77
#9  0x00005555558c5edb in helper_write_crN (env=0x555556842690, reg=0x8, t0=0x0)
    at qemu/target/i386/misc_helper.c:159
#10 0x00007fffd66e1020 in code_gen_buffer ()
#11 0x0000555555776f9f in cpu_tb_exec (cpu=0x55555683a400, itb=0x7fffd0fcbf50)
    at qemu/cpu-exec.c:165
#12 0x0000555555777ca4 in cpu_loop_exec_tb (cpu=0x55555683a400, tb=0x7fffd0fcbf50, last_tb=0x7fffd002a968, tb_exit=0x7fffd002a964, sc=0x7fffd002a980) at qemu/cpu-exec.c:566
#13 0x0000555555777fbe in cpu_exec (cpu=0x55555683a400) at qemu/cpu-exec.c:674
#14 0x00005555557a9af0 in tcg_cpu_exec (cpu=0x55555683a400) at qemu/cpus.c:1247
#15 0x00005555557a9d62 in qemu_tcg_cpu_thread_fn (arg=0x55555683a400) at qemu/cpus.c:1340
#16 0x00007fffeffb5dc5 in start_thread (arg=0x7fffd002b700) at pthread_create.c:308
#17 0x00007fffed10a34d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

to reproduce build qemu with following options:

./configure --enable-debug --target-list=x86_64-softmmu

and run qemu in tcg mode with install image from msdn as following:

  qemu-system-x86_64 -m 1G  \
    -cdrom en_windows_10_enterprise_n_version_1607_updated_jan_2017_x64_dvd_9718069.iso

It seems to be affecting Windows x64 variants only.
Assert also happens with WinEnt 8.1/WinServer 2003 Ent x64

             reply	other threads:[~2017-03-30 14:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-30 14:46 Igor Mammedov [this message]
2017-03-30 15:05 ` [Qemu-devel] qemu-2.9 crashes in tcg_handle_interrupt() during winx64 boot Alex Bennée
2017-03-30 16:14   ` Alex Bennée
2017-03-31  8:21   ` Igor Mammedov
2017-03-31  8:58     ` Alex Bennée
2017-03-31 12:08       ` Paolo Bonzini
2017-04-05 12:51       ` Igor Mammedov
2017-04-05 13:26         ` Alex Bennée
2017-04-05 16:03           ` Igor Mammedov

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=20170330164657.50c75e8c@nial.brq.redhat.com \
    --to=imammedo@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=bobby.prani@gmail.com \
    --cc=cota@braap.org \
    --cc=fred.konrad@greensocs.com \
    --cc=jan.kiszka@siemens.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    /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).