From nobody Sun May 19 03:12:45 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1599632178; cv=none; d=zohomail.com; s=zohoarc; b=QOJzYxq3f1Vp9mNHslbBw8a48POdGyxEWLW7nCV85bRtz8c7QRxhwv+A82Lh6CpV5fAjscdg7f0HN/0+elqG5zRavHYPXL3gzfHUQxRqDX3Iv6qWPkPd5tMrxNbo/pfPwlpRN/xwMsRv77B4Bow/807JCQWKnkFUqwJlWVOSeUI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1599632178; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=/5O7xuk/6i/kOVxMKHIsquRCapEjfrBOR1b2/a84soI=; b=k105lV2WtpTSSPWAwHEcixOyP1pAdjpKYyDs25VZsfKjxDy+HOMu27R5EHgb9p4Wpih4s/77toQEUI417BNL1ORiT8rM+CkKovwLU6QKxHlwwDOq28Mrebr87QSyn/2GPlE3WW1r6W1FGh8ayk+hH3mJn6P/4Y4v17wPQ+++TI0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1599632178577620.2149141237378; Tue, 8 Sep 2020 23:16:18 -0700 (PDT) Received: from localhost ([::1]:60326 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFtOz-0006Zl-0i for importer@patchew.org; Wed, 09 Sep 2020 02:16:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFtOP-00068d-1V for qemu-devel@nongnu.org; Wed, 09 Sep 2020 02:15:41 -0400 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]:37463) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kFtON-00066N-DZ for qemu-devel@nongnu.org; Wed, 09 Sep 2020 02:15:40 -0400 Received: by mail-pf1-x442.google.com with SMTP id w7so1239932pfi.4 for ; Tue, 08 Sep 2020 23:15:36 -0700 (PDT) Received: from localhost.localdomain ([222.95.248.6]) by smtp.googlemail.com with ESMTPSA id l5sm973113pgm.80.2020.09.08.23.15.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 23:15:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/5O7xuk/6i/kOVxMKHIsquRCapEjfrBOR1b2/a84soI=; b=BxGVonQyacF2cifydJEF/zJZZkc9yYvUQIq+QvezhngH3jKrMq9HhdICufiWGHW3r7 y4NQ8IyL4g/HZlr9igZ1FH+JrwxnW9JR54Rg7GH47TPWMktVnaSvvHCD8toN9VjgpnuZ SQET/xoupcbTC+Vpy8dcZEoMEq6Hw5xZhVP1L3vlvTp3aVF93AGgCP3KG624zenRBpYp mqoooCZwDRKT93WAvOgwYG29RTqTlmopQB2UyUWySzMtfcHkWSxWFxLUM7/Oetuzlhq4 vK4nQOsj2E6QKvZN7Pa25+MFGhYamufW5z4ds+OeAZHTJ3xPdAzyqajwgunbJHl5svHU je/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/5O7xuk/6i/kOVxMKHIsquRCapEjfrBOR1b2/a84soI=; b=rxWCJn0kL73rcwV8iBci4gzeo43nC84C0n9CIm/pjDj31EBZo16aTHtlwa/6kkGo09 cg/APQAz5dw67dsCtazJ9+AXe1mB0YRY/FN0zdS1JdztFVy9pP9kvlkUs+kq5e0a2l5T wRMxk+kagOlX/djeA6AK+iCHzjUY7Ayauv+Y+YhcfOzWy0avFJL6TK+RfP1CPgMfE4yk u388FAd6U5j9QaqjKO4NkSECikJa0XycBMK/XXgRRmY42SBZEr1NZVlJVsYXTTDbfWHL n0BoJLQvy/TEFAFQZVhoq+QHHWooWmo31ZenZsO+Gy9+VXxbD6P4P95wdeoBulAx7DHj 89Wg== X-Gm-Message-State: AOAM530EJ9AXU7UjENUo0zBC3aGnV1qt6V8EQXSZvX81xccuIUDDSNQc BsQOVl8tZG+fyB6BAO/5UU60YtzM6pZcd1Zo X-Google-Smtp-Source: ABdhPJxbK5gnR3W0FsofW93TLswJ59TiDVe8nzNrJwLKEQWuomSZv+SDT1Y0i2z3f494aAR6tBXkKg== X-Received: by 2002:a62:c2:: with SMTP id 185mr2141285pfa.11.1599632135276; Tue, 08 Sep 2020 23:15:35 -0700 (PDT) From: Yonggang Luo To: qemu-devel@nongnu.org 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 Message-Id: <20200909061520.1324-1-luoyonggang@gmail.com> X-Mailer: git-send-email 2.28.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::442; envelope-from=luoyonggang@gmail.com; helo=mail-pf1-x442.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Yonggang Luo , Corey Minyard , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Paolo Bonzini Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" 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 --- 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 opa= que) =20 /* Wait for the server to go away */ while (data.event =3D=3D -1) { + /* This is the place getting stuck */ main_loop_wait(false); } g_assert(data.event =3D=3D CHR_EVENT_CLOSED); --=20 2.28.0.windows.1