Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1278973

Bug#1125934: gdb: there are 4 unexpected failures on loong64

From Tiezhu Yang <yangtiezhu@loongson.cn>
Newsgroups linux.debian.bugs.dist
Subject Bug#1125934: gdb: there are 4 unexpected failures on loong64
Date 2026-01-19 10:40 +0100
Message-ID <MeTTP-bFNp-15@gated-at.bofh.it> (permalink)
References <MeSEp-bF4H-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, 19 Jan 2026 16:46:54 +0800 zhangdandan <zhangdandan@loongson.cn> 
wrote:
> 在 2026/1/19 下午4:35, Hector Oron 写道:
> > Hello,
> >
> >
> >     After local analysis and reproduction, there are currently no new
> >     findings.
> >     The gdb is blocking the building of over 100 software packages.
> >     Please help analyze and troubleshoot the issue.
> >
> >
> > Could you reproduce these issues with upstream GDB 17.1 or latest 
> > snapshot?
> >
> > Regards
> >
> These 4 check error is related to testcase 
> gdb.base/breakpoint-in-ro-region.exp.
> 
> We clone gdb code from debian salsa and test via below method, can not 
> reproduce.
> 
> ```
> 
> git clone https://salsa.debian.org/gdb-team/gdb.git
> rm -rf build && mkdir -p build && cd build
> ../gdb/configure
> make -j"$(nproc)"
> make check-gdb TESTS="gdb.base/breakpoint-in-ro-region.exp"
> make check-gdb RUNTESTFLAGS="--target_board=native-gdbserver" 
> TESTS="gdb.base/breakpoint-in-ro-region.exp"
> 
> ```
> 
> LoongArch gdb maintainer also helps to analyze, I will ask him to share 
> with the details.

I tested on Fedora42, Loongnix25 and Debian for LoongArch64, the test
passed, so I think there may be some differences for the build system
environment, please check or install the latest Debian system if
possible.

Here are the details on Debian:

1. Basic System
https://cdimage.debian.org/cdimage/ports/snapshots/2025-12-06/debian-13.0.0-loong64-NETINST-1.iso

2. APT Source
https://deb.debian.org/debian/

3. Preparation Work
echo "deb https://deb.debian.org/debian unstable main contrib non-free 
non-free-firmware" > /etc/apt/sources.list
apt update
apt upgrade -y
apt install -y sudo vim cmake make git
apt install -y flex bison texinfo arping dejagnu
apt install -y dwarves elfutils binutils
apt install -y gcc g++ llvm clang ssh
apt install -y libgmp-dev libmpfr-dev binutils-dev
apt install -y libcap-dev libncurses-dev libssl-dev
apt install -y firmware-amd-graphics xfce4
apt update
apt upgrade -y
systemctl enable ssh
sudo reboot

4. Test Environment
debian@linux:~$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux forky/sid"
NAME="Debian GNU/Linux"
VERSION_CODENAME=forky
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
debian@linux:~$ uname -r
6.18.5+deb14-loong64
debian@linux:~$ uname -m
loongarch64

5. Test Steps
git clone https://salsa.debian.org/gdb-team/gdb.git
rm -rf build && mkdir -p build && cd build
../gdb/configure
make -j"$(nproc)"
make check-gdb TESTS="gdb.base/breakpoint-in-ro-region.exp"
make check-gdb RUNTESTFLAGS="--target_board=native-gdbserver" 
TESTS="gdb.base/breakpoint-in-ro-region.exp"

6. Test Results
(1) Only gdb
debian@linux:~/build$ make check-gdb 
TESTS="gdb.base/breakpoint-in-ro-region.exp"
...
Test run by debian on Mon Jan 19 02:36:21 2026
Native configuration is loongarch64-unknown-linux-gnu

         === gdb tests ===

Schedule of variations:
     unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file 
for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for 
target.
Using 
/home/debian/build/gdb/testsuite/../../../gdb/gdb/testsuite/config/unix.exp 
as tool-and-target-specific interface file.
Running 
/home/debian/build/gdb/testsuite/../../../gdb/gdb/testsuite/gdb.base/breakpoint-in-ro-region.exp 
...

         === gdb Summary ===

# of expected passes        40
/home/debian/build/gdb/gdb version  17.1 -nw -nx -q -iex "set height 0" 
-iex "set width 0" -data-directory /home/debian/build/gdb/data-directory 
-iex "set interactive-mode on"

         === gdb Summary ===

# of expected passes        40
/home/debian/build/gdb/gdb version  17.1 -nw -nx -q -iex "set height 0" 
-iex "set width 0" -data-directory /home/debian/build/gdb/data-directory 
-iex "set interactive-mode on"

make[3]: Leaving directory '/home/debian/build/gdb/testsuite'
make[2]: Leaving directory '/home/debian/build/gdb/testsuite'
make[1]: Leaving directory '/home/debian/build/gdb'

(2) Using gdbserver
debian@linux:~/build$ make check-gdb 
RUNTESTFLAGS="--target_board=native-gdbserver" 
TESTS="gdb.base/breakpoint-in-ro-region.exp"
...
Test run by debian on Mon Jan 19 02:37:11 2026
Native configuration is loongarch64-unknown-linux-gnu

         === gdb tests ===

Schedule of variations:
     native-gdbserver

Running target native-gdbserver
Using 
/home/debian/build/gdb/testsuite/../../../gdb/gdb/testsuite/boards/../boards/native-gdbserver.exp 
as board description file for target.
Using 
/home/debian/build/gdb/testsuite/../../../gdb/gdb/testsuite/boards/../boards/gdbserver-base.exp 
as board description file for target.
Using 
/home/debian/build/gdb/testsuite/../../../gdb/gdb/testsuite/boards/../boards/local-board.exp 
as board description file for target.
Using 
/home/debian/build/gdb/testsuite/../../../gdb/gdb/testsuite/config/gdbserver.exp 
as tool-and-target-specific interface file.
Running 
/home/debian/build/gdb/testsuite/../../../gdb/gdb/testsuite/gdb.base/breakpoint-in-ro-region.exp 
...

         === gdb Summary ===

# of expected passes        40
/home/debian/build/gdb/gdb version  17.1 -nw -nx -q -iex "set height 0" 
-iex "set width 0" -data-directory /home/debian/build/gdb/data-directory 
-iex "set interactive-mode on"  -iex "set auto-connect-native-target 
off" -iex "set sysroot"

         === gdb Summary ===

# of expected passes        40
/home/debian/build/gdb/gdb version  17.1 -nw -nx -q -iex "set height 0" 
-iex "set width 0" -data-directory /home/debian/build/gdb/data-directory 
-iex "set interactive-mode on"  -iex "set auto-connect-native-target 
off" -iex "set sysroot"

make[3]: Leaving directory '/home/debian/build/gdb/testsuite'
make[2]: Leaving directory '/home/debian/build/gdb/testsuite'
make[1]: Leaving directory '/home/debian/build/gdb'

Thanks,
Tiezhu

Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#1125934: gdb: there are 4 unexpected failures on loong64 zhangdandan <zhangdandan@loongson.cn> - 2026-01-19 09:20 +0100
  Bug#1125934: gdb: there are 4 unexpected failures on loong64 Hector Oron <zumbi@debian.org> - 2026-01-19 09:40 +0100
    Bug#1125934: gdb: there are 4 unexpected failures on loong64 zhangdandan <zhangdandan@loongson.cn> - 2026-01-19 09:50 +0100
  Bug#1125934: gdb: there are 4 unexpected failures on loong64 Tiezhu Yang <yangtiezhu@loongson.cn> - 2026-01-19 10:40 +0100
    Bug#1125934: gdb: there are 4 unexpected failures on loong64 Sergio Durigan Junior <sergiodj@debian.org> - 2026-01-21 04:40 +0100
      Bug#1125934: gdb: there are 4 unexpected failures on loong64 Tiezhu Yang <yangtiezhu@loongson.cn> - 2026-01-21 08:50 +0100
  Bug#1125934: gdb: there are 4 unexpected failures on loong64 Tiezhu Yang <yangtiezhu@loongson.cn> - 2026-01-21 08:20 +0100
    Bug#1125934: gdb: there are 4 unexpected failures on loong64 Sergio Durigan Junior <sergiodj@debian.org> - 2026-01-21 20:50 +0100
  Bug#1125934: gdb: there are 4 unexpected failures on loong64 Miao Wang <shankerwangmiao@gmail.com> - 2026-01-23 15:40 +0100
    Bug#1125934: gdb: there are 4 unexpected failures on loong64 Tiezhu Yang <yangtiezhu@loongson.cn> - 2026-01-24 06:30 +0100
  Bug#1125934: gdb: there are 4 unexpected failures on loong64 Tiezhu Yang <yangtiezhu@loongson.cn> - 2026-01-24 08:00 +0100
    Bug#1125934: gdb: there are 4 unexpected failures on loong64 Tiezhu Yang <yangtiezhu@loongson.cn> - 2026-01-26 19:00 +0100

csiph-web