public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "thiago.bauermann at linaro dot org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug testsuite/28561] [gdb/testsuite] Error due to not reading \r\n at end of mi prompt
Date: Mon, 30 May 2022 16:18:49 +0000	[thread overview]
Message-ID: <bug-28561-4717-cSEjUIuiL7@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-28561-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=28561

Thiago Jung Bauermann <thiago.bauermann at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thiago.bauermann at linaro dot org

--- Comment #7 from Thiago Jung Bauermann <thiago.bauermann at linaro dot org> ---
This bug isn't so easy to reproduce. I've been trying for the past few days
on aarch64 machines, and I was able to observe it on these systems:

1. KVM guest running openSUSE Leap 15.3
2. Container with Ubuntu 20.04 userspace inside KVM guest with openSUSE Leap
15.3
3. Container with Ubuntu 22.04 userspace inside KVM guest with openSUSE Leap
15.3

I was not able to reproduce the problem on these systems:

4. KVM guest running Ubuntu 20.04
5. KVM guest running Ubuntu 22.04
6. KVM guest running Debian 10 (buster)
7. Bare metal Ubuntu 20.04
8. Container with Ubuntu 22.04 userspace on bare metal Ubuntu 20.04
9. Container with openSUSE Leap 15.3 userspace on bare metal Ubuntu 22.04

To me, this indicates that it's a kernel issue since there were three
kernels tested and only one of them reproduced the problem. And of the three
userspaces tested, they all reproduced the problem when used with the
problematic kernel, and not when used with the other two kernels.

Kernel I tested where the bug happens:
- openSUSE Leap 15.3 5.3.18-150300.59.68-default

Kernels I tested where the bug doesn't happen:
- Ubuntu 20.04 5.4.0-110-generic
- Ubuntu 22.04 5.15.0-30-generic
- Debian 10 5.10.0-0.bpo.12-arm64

My hypothesis is that there was some kernel patch fixing the bug that was
backported to the Ubuntu and Debian kernels but not to the openSUSE Leap
kernel.

I will try testing some upstream kernels to see if I can test the hypothesis
and narrow down upstream kernel versions.

The bug reproduces only after running the affected testcases for hundreds of
iterations. It was easiest to hit with gdb.mi/user-selected-context-sync.exp.
I also saw the problem happen with gdb.mi/mi-break.exp a couple of times.

I did see gdb.gdb/unittest.exp (which is the test that fails in the GNU
Toolchain buildbot) fail on an Ubuntu 22.04 KVM guest, so perhaps my “it's
the kernel” theory is wrong. But this failure is an outlier in the general
pattern I'm seeing since it's much rarer to see this testcase fail (it fails
once every several thousands of iterations rather than several hundreds), so
I'll keep pursuing the kernel route before digging deeper into what's going
on with gdb.gdb/unittest.exp.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2022-05-30 16:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-08 12:54 [Bug testsuite/28561] New: [gdb/testsuite] Error due to not reading \n " vries at gcc dot gnu.org
2021-11-08 12:56 ` [Bug testsuite/28561] [gdb/testsuite] Error due to not reading \r\n " vries at gcc dot gnu.org
2021-11-08 13:05 ` vries at gcc dot gnu.org
2021-11-08 13:09 ` vries at gcc dot gnu.org
2022-05-09  7:18 ` luis.machado at arm dot com
2022-05-09  8:36 ` vries at gcc dot gnu.org
2022-05-09 10:15 ` luis.machado at arm dot com
2022-05-16  9:14 ` mark at klomp dot org
2022-05-16  9:25 ` mark at klomp dot org
2022-05-30 16:18 ` thiago.bauermann at linaro dot org [this message]
2022-05-31  8:40 ` mark at klomp dot org
2022-05-31  8:42 ` mark at klomp dot org
2022-05-31  9:07 ` vries at gcc dot gnu.org
2022-05-31  9:52 ` luis.machado at arm dot com

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=bug-28561-4717-cSEjUIuiL7@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.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 read-only IMAP folder(s) and NNTP newsgroup(s).