Package: gdb
Version: 10.1-2
Severity: important

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.



-- System Information:
Debian Release: 11.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: s390x

Kernel: Linux 5.10.0-6-s390x (SMP w/1 CPU thread)
Kernel taint flags: TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gdb depends on:
ii  libbabeltrace1          1.5.8-1+b3
ii  libc6                   2.31-11
ii  libdebuginfod1          0.183-3
ii  libexpat1               2.2.10-2
ii  libgcc-s1               10.2.1-6
ii  liblzma5                5.2.5-2
ii  libmpfr6                4.1.0-3
ii  libncursesw6            6.2+20201114-2
ii  libpython3.9            3.9.2-1
ii  libreadline8            8.1-1
ii  libsource-highlight4v5  3.1.9-3+b1
ii  libstdc++6              10.2.1-6
ii  libtinfo6               6.2+20201114-2
ii  libxxhash0              0.8.0-2
ii  zlib1g                  1:1.2.11.dfsg-2

Versions of packages gdb recommends:
ii  libc6-dbg [libc-dbg]  2.31-11

Versions of packages gdb suggests:
pn  gdb-doc    <none>
pn  gdbserver  <none>

-- no debconf information

Reply via email to