public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/26962] New: FAIL: gdb.base/solib-corrupted.exp: make solibs looping
@ 2020-11-27 14:25 vries at gcc dot gnu.org
  2020-11-27 14:27 ` [Bug testsuite/26962] " vries at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: vries at gcc dot gnu.org @ 2020-11-27 14:25 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 26962
           Summary: FAIL: gdb.base/solib-corrupted.exp: make solibs
                    looping
           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 SLE-11, I see:
...
(gdb) PASS: gdb.base/solib-corrupted.exp: normal list
p/x _r_debug->r_map->l_next = _r_debug->r_map^M
'_r_debug' has unknown type; cast it to its declared type^M
(gdb) FAIL: gdb.base/solib-corrupted.exp: make solibs looping
...

So, we don't have glibc debug info, but we fail to detect this.

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

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

* [Bug testsuite/26962] FAIL: gdb.base/solib-corrupted.exp: make solibs looping
  2020-11-27 14:25 [Bug testsuite/26962] New: FAIL: gdb.base/solib-corrupted.exp: make solibs looping vries at gcc dot gnu.org
@ 2020-11-27 14:27 ` vries at gcc dot gnu.org
  2020-12-14  7:23 ` vries at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: vries at gcc dot gnu.org @ 2020-11-27 14:27 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Tentative patch:
...
diff --git a/gdb/testsuite/gdb.base/solib-corrupted.exp
b/gdb/testsuite/gdb.base/solib-corrupted.exp
index 5ee943c..f7a288a 100644
--- a/gdb/testsuite/gdb.base/solib-corrupted.exp
+++ b/gdb/testsuite/gdb.base/solib-corrupted.exp
@@ -67,7 +67,7 @@ gdb_test "info sharedlibrary" "From * To .*" "normal list"
 # GDB checks there for matching L_PREV.
 set test "make solibs looping"
 gdb_test_multiple "p/x _r_debug->r_map->l_next = _r_debug->r_map" $test {
-    -re "(No symbol \"_r_debug\" in current context\\.|Attempt to extract a
component of a value that is not a structure pointer\\.)\r\n$gdb_prompt $" {
+    -re "(No symbol \"_r_debug\" in current context\\.|Attempt to extract a
component of a value that is not a structure pointer\\.|'_r_debug' has unknown
type; cast it to its declared type)\r\n$gdb_prompt $" {
        # glibc debug info is not available and it is too difficult to find and
        # parse it from this testcase without the gdb supporting functions.
        xfail $test
...

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

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

* [Bug testsuite/26962] FAIL: gdb.base/solib-corrupted.exp: make solibs looping
  2020-11-27 14:25 [Bug testsuite/26962] New: FAIL: gdb.base/solib-corrupted.exp: make solibs looping vries at gcc dot gnu.org
  2020-11-27 14:27 ` [Bug testsuite/26962] " vries at gcc dot gnu.org
@ 2020-12-14  7:23 ` vries at gcc dot gnu.org
  2020-12-14 16:05 ` cvs-commit at gcc dot gnu.org
  2020-12-14 16:06 ` vries at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: vries at gcc dot gnu.org @ 2020-12-14  7:23 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
https://sourceware.org/pipermail/gdb-patches/2020-December/174063.html

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

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

* [Bug testsuite/26962] FAIL: gdb.base/solib-corrupted.exp: make solibs looping
  2020-11-27 14:25 [Bug testsuite/26962] New: FAIL: gdb.base/solib-corrupted.exp: make solibs looping vries at gcc dot gnu.org
  2020-11-27 14:27 ` [Bug testsuite/26962] " vries at gcc dot gnu.org
  2020-12-14  7:23 ` vries at gcc dot gnu.org
@ 2020-12-14 16:05 ` cvs-commit at gcc dot gnu.org
  2020-12-14 16:06 ` vries at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-12-14 16:05 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom de Vries <vries@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=519155c9f6804988e35c8537c4506e877176c9b1

commit 519155c9f6804988e35c8537c4506e877176c9b1
Author: Tom de Vries <tdevries@suse.de>
Date:   Mon Dec 14 17:05:11 2020 +0100

    [gdb/testsuite] Handle no glibc debuginfo in gdb.base/solib-corrupted.exp

    When running test-case gdb.base/solib-corrupted.exp on SLE-11, I get:
    ...
    (gdb) PASS: gdb.base/solib-corrupted.exp: normal list
    p/x _r_debug->r_map->l_next = _r_debug->r_map^M
    '_r_debug' has unknown type; cast it to its declared type^M
    (gdb) FAIL: gdb.base/solib-corrupted.exp: make solibs looping
    ...

    The reason that _r_debug has unknown type is that glibc debuginfo is not
    installed.  The test-case attempts to detect this but doesn't handle this
    particular error string.

    Fix this by adding the "unknown type" line to the regexp detecting missing
    glibc debuginfo.

    Tested on x86_64-linux.

    gdb/testsuite/ChangeLog:

    2020-12-14  Tom de Vries  <tdevries@suse.de>

            PR testsuite/26962
            * gdb.base/solib-corrupted.exp: Handle "'_r_debug' has unknown
type;
            cast it to its declared type".

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

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

* [Bug testsuite/26962] FAIL: gdb.base/solib-corrupted.exp: make solibs looping
  2020-11-27 14:25 [Bug testsuite/26962] New: FAIL: gdb.base/solib-corrupted.exp: make solibs looping vries at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2020-12-14 16:05 ` cvs-commit at gcc dot gnu.org
@ 2020-12-14 16:06 ` vries at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: vries at gcc dot gnu.org @ 2020-12-14 16:06 UTC (permalink / raw)
  To: gdb-prs

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

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |11.1

--- Comment #4 from Tom de Vries <vries at gcc dot gnu.org> ---
Patch fixing test-case committed, marking resolved-fixed.

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

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

end of thread, other threads:[~2020-12-14 16:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-27 14:25 [Bug testsuite/26962] New: FAIL: gdb.base/solib-corrupted.exp: make solibs looping vries at gcc dot gnu.org
2020-11-27 14:27 ` [Bug testsuite/26962] " vries at gcc dot gnu.org
2020-12-14  7:23 ` vries at gcc dot gnu.org
2020-12-14 16:05 ` cvs-commit at gcc dot gnu.org
2020-12-14 16:06 ` 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).