public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/26390] New: gdb.fortran/mixed-lang-stack.exp: error reading variable in backtrace
@ 2020-08-14 11:48 vries at gcc dot gnu.org
  2020-08-14 12:03 ` [Bug symtab/26390] " vries at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: vries at gcc dot gnu.org @ 2020-08-14 11:48 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 26390
           Summary: gdb.fortran/mixed-lang-stack.exp: error reading
                    variable in backtrace
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

[ I'm using gcc-8 for this PR, the test-case seems to have been implemented
with gcc-8 and later abi in mind, see PR26362 comment 22.  FWIW, same behaviour
with gcc-11. ]

While looking into PR26362 I noticed this in the backtrace on a successful test
run on x86_64:
...
#7  0x000000000040114f in mixed_func_1b (a=1, b=2, c=3, d=(4,5), e=<error
reading variable: value requires 140737488341744 bytes, which is more than
max-value-size>, g=..., _e=6) at mixed-lang-stack.f90:87^M
...

Grepping for it, it reproduces with all 4 language setttings:
...
$ grep e= gdb.log | sed 's/.* e=/e=/;s/g=.*//'
e=<error reading variable: value requires 140737488341744 bytes, which is more
than max-value-size>, 
e=..., 
e=..., 
e=<error reading variable: value requires 140737488341744 bytes, which is more
than max-value-size>, 
e=..., 
e=..., 
e=<error reading variable: value requires 140737488341744 bytes, which is more
than max-value-size>, 
e=..., 
e=..., 
e=<error reading variable: value requires 140737488341744 bytes, which is more
than max-value-size>, 
e=..., 
e=..., 
...

The e='...' are due to printing of e when it's the current frame (resulting
from commands "up/down" or "info frame"), and with this:
...
diff --git a/gdb/testsuite/gdb.fortran/mixed-lang-stack.exp
b/gdb/testsuite/gdb.fortran/mix
ed-lang-stack.exp
index 793318626d..4047b548f9 100644
--- a/gdb/testsuite/gdb.fortran/mixed-lang-stack.exp
+++ b/gdb/testsuite/gdb.fortran/mixed-lang-stack.exp
@@ -50,6 +50,7 @@ proc run_tests { lang } {

        gdb_breakpoint "breakpt"
        gdb_continue_to_breakpoint "breakpt"
+       gdb_test_no_output "set print frame-arguments all"

        if { $lang == "c" || $lang == "c++" } {
            gdb_test "set language c" \
...
we have instead:
...
$ grep e= gdb.log | sed 's/.* e=/e=/;s/g=.*//'
e=<error reading variable: value requires 140737488341744 bytes, which is more
than max-value-size>, 
e='abcdef', 
e='abcdef', 
e=<error reading variable: value requires 140737488341744 bytes, which is more
than max-value-size>, 
e='abcdef', 
e='abcdef', 
e=<error reading variable: value requires 140737488341744 bytes, which is more
than max-value-size>, 
e="abcdef", 
e="abcdef", 
e=<error reading variable: value requires 140737488341744 bytes, which is more
than max-value-size>, 
e="abcdef", 
e="abcdef", 
...

So, this seems to be backtrace-specific.

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

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

end of thread, other threads:[~2020-08-15  8:28 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-14 11:48 [Bug symtab/26390] New: gdb.fortran/mixed-lang-stack.exp: error reading variable in backtrace vries at gcc dot gnu.org
2020-08-14 12:03 ` [Bug symtab/26390] " vries at gcc dot gnu.org
2020-08-14 12:49 ` vries at gcc dot gnu.org
2020-08-14 14:52 ` vries at gcc dot gnu.org
2020-08-14 15:12 ` vries at gcc dot gnu.org
2020-08-14 15:15 ` vries at gcc dot gnu.org
2020-08-14 15:38 ` vries at gcc dot gnu.org
2020-08-14 15:39 ` vries at gcc dot gnu.org
2020-08-15  5:48 ` [Bug backtrace/26390] " vries at gcc dot gnu.org
2020-08-15  5:55 ` vries at gcc dot gnu.org
2020-08-15  8:19 ` cvs-commit at gcc dot gnu.org
2020-08-15  8:27 ` vries at gcc dot gnu.org
2020-08-15  8:28 ` vries at gcc dot gnu.org

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