public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/31234] New: [gdb/testsuite, s390x] FAIL: gdb.fortran/mixed-lang-stack.exp: lang=auto: print obj
@ 2024-01-11 15:00 vries at gcc dot gnu.org
  2024-01-11 15:01 ` [Bug testsuite/31234] " vries at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: vries at gcc dot gnu.org @ 2024-01-11 15:00 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 31234
           Summary: [gdb/testsuite, s390x] FAIL:
                    gdb.fortran/mixed-lang-stack.exp: lang=auto: print obj
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: testsuite
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

On s390x-linux, I ran into:
...
(gdb) PASS: gdb.fortran/mixed-lang-stack.exp: lang=auto: info frame in frame #2
print obj^M
value has been optimized out^M
(gdb) FAIL: gdb.fortran/mixed-lang-stack.exp: lang=auto: print obj
...

This is a regression since gdb 13, but it's due to a test-case patch:
...
commit a60ead5ded5f9fc548018637d4810cb5f313ad8c
Author: Nils-Christian Kempke <nils-christian.kempke@intel.com>
Date:   Tue May 31 16:43:45 2022 +0200

    gdb, testsuite, fortran: fix double free in mixed-lang-stack.exp
...

After reverting the patch, the FAIL disappears.

The difference is in the debug info.  In the passing case we have:
...
 <2><ce1>: Abbrev Number: 45 (DW_TAG_formal_parameter)
    <ce2>   DW_AT_name        : obj
    <ce6>   DW_AT_decl_file   : 1
    <ce7>   DW_AT_decl_line   : 75
    <ce8>   DW_AT_type        : <0xbd3>
    <cec>   DW_AT_location    : 4 byte block: 91 d8 7e 6        (DW_OP_fbreg:
-168; DW_OP_deref)
...
and in the failing case:
...
 <2><c3f>: Abbrev Number: 40 (DW_TAG_formal_parameter)
    <c40>   DW_AT_name        : obj
    <c44>   DW_AT_decl_file   : 1
    <c45>   DW_AT_decl_line   : 65
    <c46>   DW_AT_type        : <0xba2>
    <c4a>   DW_AT_location    : 2 byte block: 72 0      (DW_OP_breg2 (r2): 0)
...

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

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

* [Bug testsuite/31234] [gdb/testsuite, s390x] FAIL: gdb.fortran/mixed-lang-stack.exp: lang=auto: print obj
  2024-01-11 15:00 [Bug testsuite/31234] New: [gdb/testsuite, s390x] FAIL: gdb.fortran/mixed-lang-stack.exp: lang=auto: print obj vries at gcc dot gnu.org
@ 2024-01-11 15:01 ` vries at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: vries at gcc dot gnu.org @ 2024-01-11 15:01 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Seen with gcc 7.5.0 and gcc 13.2.1.

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

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

end of thread, other threads:[~2024-01-11 15:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-11 15:00 [Bug testsuite/31234] New: [gdb/testsuite, s390x] FAIL: gdb.fortran/mixed-lang-stack.exp: lang=auto: print obj vries at gcc dot gnu.org
2024-01-11 15:01 ` [Bug testsuite/31234] " 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).