#987110 gdb: Segfaults in a qemu-system-s390x virtual machine

Package:
gdb
Source:
gdb
Description:
GNU Debugger
Submitter:
Sven Geuer
Date:
2021-04-17 19:33:04 UTC
Severity:
important
#987110#5
Date:
2021-04-17 19:31:32 UTC
From:
To:
Dear Maintainer,

run in a qemu-system-s390x virtual machine, gdb returns a segfault when
starting the program to be debugged.

These are the steps to reproduce the issue.

1) Download the s390x image from https://people.debian.org/~gio/dqib/
2) Unzip the downloaded file artifacts.zip
3) Enter the created folder 'artifacts' and start the virtual machine using
   the command listed in file 'readme.txt'
4) Login as root
5) Install gdb: apt-get install gdb
6) Start gbd with any program to debug (I picked 'ls'): gdp --args ls
7) Issue the 'run' command
8) gbd returns

  Starting program: /bin/ls

  Program received signal SIGSEGV, Segmentation fault.
  _dl_debug_initialize (ldbase=4398012600384, ns=4398012432784) at dl-debug.c:54
  54	dl-debug.c: No such file or directory.

The error stays the same regardless of what program has been chosen to debug.

The same steps work flawlessly in other Qemu VMs, for instance in
qemu-system-ppc64le.

This bug has been filed from within the s390x virtual machine.