All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>
Cc: "Ilya Leoshkevich" <iii@linux.ibm.com>,
	"Pierrick Bouvier" <pierrick.bouvier@linaro.org>,
	qemu-devel@nongnu.org, "Brad Smith" <brad@comstyle.com>,
	qemu-arm@nongnu.org, "Kyle Evans" <kevans@freebsd.org>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"Thomas Huth" <thuth@redhat.com>, "Warner Losh" <imp@bsdimp.com>,
	"Daniel P. Berrangé" <berrange@redhat.com>
Subject: Re: [PATCH 1/7] tests/docker: add gdb-multiarch to all-test-cross
Date: Thu, 12 Mar 2026 13:56:05 +0000	[thread overview]
Message-ID: <871phpi22y.fsf@draig.linaro.org> (raw)
In-Reply-To: <CAPMQPEKPk1iySmCt0_Vi1=bcaG_ZkNfzYknCu14zzR2N7p-6zw@mail.gmail.com> ("Philippe Mathieu-Daudé"'s message of "Thu, 12 Mar 2026 11:41:44 +0100")

Philippe Mathieu-Daudé <philmd@linaro.org> writes:

> On Thu, 12 Mar 2026 at 11:39, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:
>>
>> On 12/3/26 11:11, Ilya Leoshkevich wrote:
>> >
>> > On 3/11/26 00:28, Philippe Mathieu-Daudé wrote:
>> >> On 11/3/26 00:22, Pierrick Bouvier wrote:
>> >>> On 3/10/26 4:07 PM, Philippe Mathieu-Daudé wrote:
>> >>>> On 10/3/26 23:33, Philippe Mathieu-Daudé wrote:
>> >>>>> On 6/3/26 17:17, Alex Bennée wrote:
>> >>>>>> This allows the gdb integration tests to be run as well.
>> >>>>>>
>> >>>>>> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
>> >>>>>> ---
>> >>>>>>    tests/docker/dockerfiles/debian-all-test-cross.docker | 1 +
>> >>>>>>    tests/lcitool/refresh                                 | 1 +
>> >>>>>>    2 files changed, 2 insertions(+)
>> >>>>>
>> >>>>> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
>> >>>>
>> >>>> I'm getting:
>> >>>>
>> >>>> Python Exception <class 'gdb.MemoryError'>: Cannot access memory at
>> >>>> address 0x45001fff
>> >>>> Error occurred in Python: Cannot access memory at address 0x45001fff
>> >>>> qemu-hppa: QEMU: Terminated via GDBstub
>> >>>> make[1]: ***
>> >>>> [/builds/philmd/qemu/tests/tcg/multiarch/Makefile.target:121:
>> >>>> run-gdbstub-prot-none] Error 1
>> >>>> make[1]: *** Waiting for unfinished jobs....
>> >>>> qemu-hppa: QEMU: Terminated via GDBstub
>> >>>> warning: Could not load shared library symbols for linux-vdso32.so.1.
>> >>>> Do you need "set solib-search-path" or "set sysroot"?
>> >>>> make: *** [/builds/philmd/qemu/tests/Makefile.include:66:
>> >>>> run-tcg-tests-hppa-linux-user] Error 2
>> >>>>
>> >>>
>> >>> To add more information, we tested it on GitHub, our machines and
>> >>> GitLab, and for an unknown reason, it only fails on GitLab runners.
>> >>
>> >> Also we tested on our local Linux machines, where this test pass
>> >> for all our targets ;)
>> >>
>> >>>
>> >>> Which is unfortunate since it is where QEMU run its CI.
>> >>>
>> >>> Regards,
>> >>> Pierrick
>> >>
>> > FWIW it passes on my laptop as well.
>> >
>> > Does this test fail only for hppa, or for other architectures as well?
>>
>> Have a look at these job failures:
>> https://gitlab.com/philmd/qemu/-/pipelines/2376819801
>>
>> Python Exception <class 'gdb.MemoryError'>: Cannot access memory at
>> address 0x7e085b4b1fff
>> Error occurred in Python: Cannot access memory at address 0x7e085b4b1fff
>> qemu-aarch64: QEMU: Terminated via GDBstub
>> make[1]: ***
>> [/builds/philmd/qemu/tests/tcg/multiarch/Makefile.target:121:
>> run-gdbstub-prot-none] Error 1
>> make: *** [/builds/philmd/qemu/tests/Makefile.include:66:
>> run-tcg-tests-aarch64-linux-user] Error 2
>>
>> Python Exception <class 'gdb.MemoryError'>: Cannot access memory at
>> address 0x40802fff
>> Error occurred in Python: Cannot access memory at address 0x40802fff
>> qemu-arm: QEMU: Terminated via GDBstub
>> make[1]: ***
>> [/builds/philmd/qemu/tests/tcg/multiarch/Makefile.target:121:
>> run-gdbstub-prot-none] Error 1
>> make[1]: *** Waiting for unfinished jobs....
>> make: *** [/builds/philmd/qemu/tests/Makefile.include:66:
>> run-tcg-tests-arm-linux-user] Error 2
>>
>> Python Exception <class 'gdb.MemoryError'>: Cannot access memory at
>> address 0x45001fff
>> Error occurred in Python: Cannot access memory at address 0x45001fff
>> qemu-hppa: QEMU: Terminated via GDBstub
>> make[1]: ***
>> [/builds/philmd/qemu/tests/tcg/multiarch/Makefile.target:121:
>> run-gdbstub-prot-none] Error 1
>> make[1]: *** Waiting for unfinished jobs....
>> qemu-hppa: QEMU: Terminated via GDBstub
>> make: *** [/builds/philmd/qemu/tests/Makefile.include:66:
>> run-tcg-tests-hppa-linux-user] Error 2
>>
>> Python Exception <class 'gdb.MemoryError'>: Cannot access memory at
>> address 0x7d742025efff
>> Error occurred in Python: Cannot access memory at address 0x7d742025efff
>> qemu-alpha: QEMU: Terminated via GDBstub
>> make[1]: ***
>> [/builds/philmd/qemu/tests/tcg/multiarch/Makefile.target:121:
>> run-gdbstub-prot-none] Error 1
>> make: *** [/builds/philmd/qemu/tests/Makefile.include:66:
>> run-tcg-tests-alpha-linux-user] Error 2
>>
>> So at least Alpha / ARM / Aarch64 / HPPA.
>>
>> (I haven't checked whether the test is run for other targets).
>>
>> We also run these on GitHub runners where the tests pass, and apparently
>> when running on k8s private runner on GitLab they also pass. The problem
>> is with public runner on GitLab.
>
> Also another test we ran was to pull GitLab docker image and run the same
> tests locally within that GitLab-generated image and they passed. So we
> believe the issue is related to some container restriction with
> GitLab.

Most likely because the ptrace settings are tighter - ptrace is the
mechanism we use to access the memory we can't normally.

>
>>
>> > I'm asking because it may have something to do with /proc/self/mem or
>> > with the architecture.
>> >
>>

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro


  reply	other threads:[~2026-03-12 13:56 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-06 16:17 [PATCH 0/7] testing/next: gdb-multiarch, check-tcg, vbsa tests Alex Bennée
2026-03-06 16:17 ` [PATCH 1/7] tests/docker: add gdb-multiarch to all-test-cross Alex Bennée
2026-03-06 17:30   ` Pierrick Bouvier
2026-03-06 17:32   ` Pierrick Bouvier
2026-03-10 22:33   ` Philippe Mathieu-Daudé
2026-03-10 23:07     ` Philippe Mathieu-Daudé
2026-03-10 23:22       ` Pierrick Bouvier
2026-03-10 23:28         ` Philippe Mathieu-Daudé
2026-03-12 10:11           ` Ilya Leoshkevich
2026-03-12 10:39             ` Philippe Mathieu-Daudé
2026-03-12 10:41               ` Philippe Mathieu-Daudé
2026-03-12 13:56                 ` Alex Bennée [this message]
2026-03-12 15:12                   ` Ilya Leoshkevich
2026-03-12 15:55                     ` Alex Bennée
2026-03-06 16:17 ` [PATCH 2/7] tests/tcg: allow filtering of TCG tests Alex Bennée
2026-03-06 17:34   ` Pierrick Bouvier
2026-03-06 18:36     ` Alex Bennée
2026-03-06 20:49       ` Pierrick Bouvier
2026-03-06 16:17 ` [PATCH 3/7] tests/tcg/multiarch/linux-test: use portable alternative for dirent64 Alex Bennée
2026-03-06 17:34   ` Pierrick Bouvier
2026-03-06 16:17 ` [PATCH 4/7] tests/functional: teach uncompress about zip files Alex Bennée
2026-03-06 17:35   ` Pierrick Bouvier
2026-03-06 19:49   ` Thomas Huth
2026-03-06 16:17 ` [PATCH 5/7] tests/functional: allow tests to define decompression target Alex Bennée
2026-03-06 17:35   ` Pierrick Bouvier
2026-03-06 16:17 ` [PATCH 6/7] tests/functional: add the ability to send keys Alex Bennée
2026-03-06 17:41   ` Pierrick Bouvier
2026-03-06 16:17 ` [PATCH 7/7] tests/functional: add VBSA linux tests Alex Bennée
2026-03-06 17:41   ` Pierrick Bouvier

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=871phpi22y.fsf@draig.linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=berrange@redhat.com \
    --cc=brad@comstyle.com \
    --cc=iii@linux.ibm.com \
    --cc=imp@bsdimp.com \
    --cc=kevans@freebsd.org \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@linaro.org \
    --cc=pierrick.bouvier@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=thuth@redhat.com \
    /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.