qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Yonggang Luo <luoyonggang@gmail.com>
To: qemu-devel@nongnu.org
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Yonggang Luo" <luoyonggang@gmail.com>,
	"Corey Minyard" <cminyard@mvista.com>,
	"Philippe Mathieu-Daudé" <philmd@redhat.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>
Subject: [PATCH] char: the test-char.c are stuck randomly on win32 at function char_socket_client_test
Date: Wed,  9 Sep 2020 14:15:20 +0800	[thread overview]
Message-ID: <20200909061520.1324-1-luoyonggang@gmail.com> (raw)

The line I modified is the place that entering and line exit.
And when step into the function main_loop_wait(false);
the stack-trace are like this:

NtWaitForMultipleObjects (@NtWaitForMultipleObjects:8)
WaitForMultipleObjectsEx (@WaitForMultipleObjectsEx:59)
g_pattern_match_simple (@g_pattern_match_simple:221)
g_pattern_match_simple (@g_pattern_match_simple:336)
g_poll (@g_poll:207)
qemu_poll_ns (c:\work\xemu\qemu\util\qemu-timer.c:350)
os_host_main_loop_wait (c:\work\xemu\qemu\util\main-loop.c:452)
main_loop_wait (c:\work\xemu\qemu\util\main-loop.c:520)
char_socket_server_test (c:\work\xemu\qemu\tests\test-char.c:862)
g_test_summary (@g_test_summary:353)
g_test_summary (@g_test_summary:247)
g_test_summary (@g_test_summary:247)
g_test_summary (@g_test_summary:247)
g_test_summary (@g_test_summary:247)
g_test_run_suite (@g_test_run_suite:54)
g_test_run (@g_test_run:9)
main (c:\work\xemu\qemu\tests\test-char.c:1563)
__tmainCRTStartup (@__tmainCRTStartup:142)
mainCRTStartup (@1400014f6..140001539:3)
BaseThreadInitThunk (@BaseThreadInitThunk:9)

I submit this patch is looking for reviewer to help me fixes this randomly issue

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
---
 tests/test-char.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/test-char.c b/tests/test-char.c
index 80e5bac61a..207004f38c 100644
--- a/tests/test-char.c
+++ b/tests/test-char.c
@@ -1065,6 +1065,7 @@ static void char_socket_client_test(gconstpointer opaque)
 
     /* Wait for the server to go away */
     while (data.event == -1) {
+        /* This is the place getting stuck */
         main_loop_wait(false);
     }
     g_assert(data.event == CHR_EVENT_CLOSED);
-- 
2.28.0.windows.1



                 reply	other threads:[~2020-09-09  6:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20200909061520.1324-1-luoyonggang@gmail.com \
    --to=luoyonggang@gmail.com \
    --cc=cminyard@mvista.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=philmd@redhat.com \
    --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).