public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug tdep/26170] New: gdb.base/testenv.exp loops on Linux/sparc64
@ 2020-06-25  8:18 ro at gcc dot gnu.org
  2020-11-23 17:38 ` [Bug tdep/26170] " glaubitz at physik dot fu-berlin.de
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ro at gcc dot gnu.org @ 2020-06-25  8:18 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 26170
           Summary: gdb.base/testenv.exp loops on Linux/sparc64
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tdep
          Assignee: unassigned at sourceware dot org
          Reporter: ro at gcc dot gnu.org
  Target Milestone: ---
              Host: sparc64-unknown-linux-gnu
            Target: sparc64-unknown-linux-gnu
             Build: sparc64-unknown-linux-gnu

While testing current master on Linux/sparc64, the gdb.base/testenv.exp would
loop:

PASS: gdb.base/testenv.exp: test_inherit_env_var: test1: test passing
TEST_GDB_G
LOBAL to GDB
FAIL: gdb.base/testenv.exp: test_inherit_env_var: test1: TEST_GDB_GLOBAL, get
nu
m vars
FAIL: gdb.base/testenv.exp: test_inherit_env_var: test1: TEST_GDB_GLOBAL,
confir
med
FAIL: gdb.base/testenv.exp: test_inherit_env_var: test1: printf "var: %s\n",
env
p[0] ? envp[0] : ""
[...]
FAIL: gdb.base/testenv.exp: test_inherit_env_var: test1: printf "var: %s\n",
envp[4443985] ? envp[4443985] : ""

which I only noticed after those 4.4+ million iterations.

The failure mode is like this:
(gdb) run 
Starting program:
/home/ro/obj/gdb/master/dist/gdb/testsuite/outputs/gdb.base/testenv/testenv 
Program found 0 variables starting with TEST_GDB

Breakpoint 1, main (argc=<error reading variable: Cannot access memory at
address 0x884>, argv=<error reading variable: Cannot access memory at address
0x88c>, envp=<error reading variable: Cannot access memory at address 0x894>)
at /home/ro/src/gdb/master/dist/gdb/testsuite/gdb.base/testenv.c:42
42          return 0; /* set breakpoint here.  */
(gdb) print /d j
Cannot access memory at address 0x7fc
(gdb) FAIL: gdb.base/testenv.exp: test_set_unset_env: test1: no TEST_GDB vars,
get num vars
FAIL: gdb.base/testenv.exp: test_set_unset_env: test1: no TEST_GDB vars,
confirmed

[...]

printf "var: %s\n", envp[4443985] ? envp[4443985] : ""
Cannot access memory at address 0x894
(gdb) FAIL: gdb.base/testenv.exp: test_inherit_env_var: test1: printf "var:
%s\n", envp[4443985] ? envp[4443985] : ""

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-04-27 15:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-25  8:18 [Bug tdep/26170] New: gdb.base/testenv.exp loops on Linux/sparc64 ro at gcc dot gnu.org
2020-11-23 17:38 ` [Bug tdep/26170] " glaubitz at physik dot fu-berlin.de
2020-11-23 17:39 ` glaubitz at physik dot fu-berlin.de
2021-04-27 15:01 ` matorola at gmail dot com

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).