[binutils-gdb] vms buffer overflows and large memory allocation

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

[binutils-gdb] vms buffer overflows and large memory allocation

gdb-buildbot
*** TEST RESULTS FOR COMMIT c893ce360a81bed57b9256f9d065541c2f8175c0 ***

commit c893ce360a81bed57b9256f9d065541c2f8175c0
Author:     Alan Modra <[hidden email]>
AuthorDate: Mon Feb 24 11:52:03 2020 +1030
Commit:     Alan Modra <[hidden email]>
CommitDate: Mon Feb 24 12:35:05 2020 +1030

    vms buffer overflows and large memory allocation
   
            * vms-lib.c (struct carsym_mem): Add limit.
            (vms_add_index): Heed limit.
            (vms_traverse_index): Catch buffer overflows.  Remove outdated fixme.
            (vms_lib_read_index): Set up limit.  Catch 32-bit overflow.
            Always return actual number read.
            (_bfd_vms_lib_archive_p): Catch buffer overflows.  Replace
            assertion with error exit.

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 31e7c6986c..58b560d1aa 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,13 @@
+2020-02-24  Alan Modra  <[hidden email]>
+
+ * vms-lib.c (struct carsym_mem): Add limit.
+ (vms_add_index): Heed limit.
+ (vms_traverse_index): Catch buffer overflows.  Remove outdated fixme.
+ (vms_lib_read_index): Set up limit.  Catch 32-bit overflow.
+ Always return actual number read.
+ (_bfd_vms_lib_archive_p): Catch buffer overflows.  Replace
+ assertion with error exit.
+
 2020-02-22  Alan Modra  <[hidden email]>
 
  PR 25585
diff --git a/bfd/vms-lib.c b/bfd/vms-lib.c
index 6ae1a7bafb..3b42857aa9 100644
--- a/bfd/vms-lib.c
+++ b/bfd/vms-lib.c
@@ -120,6 +120,9 @@ struct carsym_mem
   /* Maximum number of entries.  */
   unsigned int max;
 
+  /* Do not allocate more that this number of entries.  */
+  unsigned int limit;
+
   /* If true, the table was reallocated on the heap.  If false, it is still
      in the BFD's objalloc.  */
   bfd_boolean realloced;
@@ -136,12 +139,14 @@ vms_add_index (struct carsym_mem *cs, char *name,
       struct carsym *n;
       size_t amt;
 
-      if (cs->max > -33u / 2)
+      if (cs->max > -33u / 2 || cs->max >= cs->limit)
  {
   bfd_set_error (bfd_error_file_too_big);
   return FALSE;
  }
       cs->max = 2 * cs->max + 32;
+      if (cs->max > cs->limit)
+ cs->max = cs->limit;
       if (_bfd_mul_overflow (cs->max, sizeof (struct carsym), &amt))
  {
   bfd_set_error (bfd_error_file_too_big);
@@ -243,6 +248,7 @@ vms_traverse_index (bfd *abfd, unsigned int vbn, struct carsym_mem *cs)
   file_ptr off;
   unsigned char *p;
   unsigned char *endp;
+  unsigned int n;
 
   /* Read the index block.  */
   BFD_ASSERT (sizeof (indexdef) == VMS_BLOCK_SIZE);
@@ -251,7 +257,10 @@ vms_traverse_index (bfd *abfd, unsigned int vbn, struct carsym_mem *cs)
 
   /* Traverse it.  */
   p = &indexdef.keys[0];
-  endp = p + bfd_getl16 (indexdef.used);
+  n = bfd_getl16 (indexdef.used);
+  if (n > sizeof (indexdef.keys))
+    return FALSE;
+  endp = p + n;
   while (p < endp)
     {
       unsigned int idx_vbn;
@@ -292,6 +301,8 @@ vms_traverse_index (bfd *abfd, unsigned int vbn, struct carsym_mem *cs)
 
       /* Point to the next index entry.  */
       p = keyname + keylen;
+      if (p > endp)
+ return FALSE;
 
       if (idx_off == RFADEF__C_INDEX)
  {
@@ -333,11 +344,17 @@ vms_traverse_index (bfd *abfd, unsigned int vbn, struct carsym_mem *cs)
 
   if (!vms_read_block (abfd, kvbn, kblk))
     return FALSE;
+  if (koff > sizeof (kblk) - sizeof (struct vms_kbn))
+    return FALSE;
   kbn = (struct vms_kbn *)(kblk + koff);
   klen = bfd_getl16 (kbn->keylen);
+  if (klen > sizeof (kblk) - koff)
+    return FALSE;
   kvbn = bfd_getl32 (kbn->rfa.vbn);
   koff = bfd_getl16 (kbn->rfa.offset);
 
+  if (noff + klen > keylen)
+    return FALSE;
   memcpy (name + noff, kbn + 1, klen);
   noff += klen;
  }
@@ -368,7 +385,7 @@ vms_traverse_index (bfd *abfd, unsigned int vbn, struct carsym_mem *cs)
   || bfd_bread (&lhs, sizeof (lhs), abfd) != sizeof (lhs))
  return FALSE;
 
-      /* FIXME: this adds extra entries that were not accounted.  */
+      /* These extra entries may cause reallocation of CS.  */
       if (!vms_add_indexes_from_list (abfd, cs, name, &lhs.ng_g_rfa))
  return FALSE;
       if (!vms_add_indexes_from_list (abfd, cs, name, &lhs.ng_wk_rfa))
@@ -397,7 +414,8 @@ vms_lib_read_index (bfd *abfd, int idx, unsigned int *nbrel)
   struct vms_idd idd;
   unsigned int flags;
   unsigned int vbn;
-  struct carsym *csbuf;
+  ufile_ptr filesize;
+  size_t amt;
   struct carsym_mem csm;
 
   /* Read index desription.  */
@@ -411,14 +429,27 @@ vms_lib_read_index (bfd *abfd, int idx, unsigned int *nbrel)
       || !(flags & IDD__FLAGS_VARLENIDX))
     return NULL;
 
-  csbuf = bfd_alloc (abfd, *nbrel * sizeof (struct carsym));
-  if (csbuf == NULL)
-    return NULL;
-
-  csm.max = *nbrel;
+  filesize = bfd_get_file_size (abfd);
   csm.nbr = 0;
+  csm.max = *nbrel;
+  csm.limit = -1u;
   csm.realloced = FALSE;
-  csm.idx = csbuf;
+  if (filesize != 0)
+    {
+      /* Put an upper bound based on a file full of single char keys.
+ This is to prevent fuzzed binary silliness.  It is easily
+ possible to set up loops over file blocks that add syms
+ without end.  */
+      if (filesize / (sizeof (struct vms_rfa) + 2) <= -1u)
+ csm.limit = filesize / (sizeof (struct vms_rfa) + 2);
+    }
+  if (csm.max > csm.limit)
+    csm.max = csm.limit;
+  if (_bfd_mul_overflow (csm.max, sizeof (struct carsym), &amt))
+    return NULL;
+  csm.idx = bfd_alloc (abfd, amt);
+  if (csm.idx == NULL)
+    return NULL;
 
   /* Note: if the index is empty, there is no block to traverse.  */
   vbn = bfd_getl32 (idd.vbn);
@@ -429,7 +460,7 @@ vms_lib_read_index (bfd *abfd, int idx, unsigned int *nbrel)
 
       /* Note: in case of error, we can free what was allocated on the
  BFD's objalloc.  */
-      bfd_release (abfd, csbuf);
+      bfd_release (abfd, csm.idx);
       return NULL;
     }
 
@@ -437,14 +468,16 @@ vms_lib_read_index (bfd *abfd, int idx, unsigned int *nbrel)
     {
       /* There are more entries than the first estimate.  Allocate on
  the BFD's objalloc.  */
+      struct carsym *csbuf;
       csbuf = bfd_alloc (abfd, csm.nbr * sizeof (struct carsym));
       if (csbuf == NULL)
  return NULL;
       memcpy (csbuf, csm.idx, csm.nbr * sizeof (struct carsym));
       free (csm.idx);
-      *nbrel = csm.nbr;
+      csm.idx = csbuf;
     }
-  return csbuf;
+  *nbrel = csm.nbr;
+  return csm.idx;
 }
 
 /* Standard function.  */
@@ -568,6 +601,8 @@ _bfd_vms_lib_archive_p (bfd *abfd, enum vms_lib_kind kind)
   != sizeof (buf_reclen))
  goto err;
       reclen = bfd_getl32 (buf_reclen);
+      if (reclen < sizeof (struct vms_dcxmap))
+ goto err;
       buf = _bfd_malloc_and_read (abfd, reclen, reclen);
       if (buf == NULL)
  goto err;
@@ -578,39 +613,51 @@ _bfd_vms_lib_archive_p (bfd *abfd, enum vms_lib_kind kind)
  (abfd, tdata->nbr_dcxsbm * sizeof (struct dcxsbm_desc));
       for (i = 0; i < tdata->nbr_dcxsbm; i++)
  {
-  struct vms_dcxsbm *sbm = (struct vms_dcxsbm *) (buf + sbm_off);
+  struct vms_dcxsbm *sbm;
   struct dcxsbm_desc *sbmdesc = &tdata->dcxsbm[i];
   unsigned int sbm_len;
   unsigned int sbm_sz;
   unsigned int off;
-  unsigned char *data = (unsigned char *)sbm;
   unsigned char *buf1;
   unsigned int l, j;
 
+  if (sbm_off > reclen
+      || reclen - sbm_off < sizeof (struct vms_dcxsbm))
+    goto err;
+  sbm = (struct vms_dcxsbm *) (buf + sbm_off);
   sbm_sz = bfd_getl16 (sbm->size);
   sbm_off += sbm_sz;
-  BFD_ASSERT (sbm_off <= reclen);
 
   sbmdesc->min_char = sbm->min_char;
   BFD_ASSERT (sbmdesc->min_char == 0);
   sbmdesc->max_char = sbm->max_char;
   sbm_len = sbmdesc->max_char - sbmdesc->min_char + 1;
   l = (2 * sbm_len + 7) / 8;
-  BFD_ASSERT
-    (sbm_sz >= sizeof (struct vms_dcxsbm) + l + 3 * sbm_len
-     || (tdata->nbr_dcxsbm == 1
- && sbm_sz >= sizeof (struct vms_dcxsbm) + l + sbm_len));
+  if (sbm_sz < sizeof (struct vms_dcxsbm) + l + sbm_len
+      || (tdata->nbr_dcxsbm > 1
+  && sbm_sz < sizeof (struct vms_dcxsbm) + l + 3 * sbm_len))
+    goto err;
   sbmdesc->flags = (unsigned char *)bfd_alloc (abfd, l);
-  memcpy (sbmdesc->flags, data + bfd_getl16 (sbm->flags), l);
+  off = bfd_getl16 (sbm->flags);
+  if (off > reclen - sbm_off
+      || reclen - sbm_off - off < l)
+    goto err;
+  memcpy (sbmdesc->flags, (bfd_byte *) sbm + off, l);
   sbmdesc->nodes = (unsigned char *)bfd_alloc (abfd, 2 * sbm_len);
-  memcpy (sbmdesc->nodes, data + bfd_getl16 (sbm->nodes), 2 * sbm_len);
+  off = bfd_getl16 (sbm->nodes);
+  if (off > reclen - sbm_off
+      || reclen - sbm_off - off < 2 * sbm_len)
+    goto err;
+  memcpy (sbmdesc->nodes, (bfd_byte *) sbm + off, 2 * sbm_len);
   off = bfd_getl16 (sbm->next);
   if (off != 0)
     {
+      if (off > reclen - sbm_off
+  || reclen - sbm_off - off < 2 * sbm_len)
+ goto err;
       /* Read the 'next' array.  */
-      sbmdesc->next = (unsigned short *)bfd_alloc
- (abfd, sbm_len * sizeof (unsigned short));
-      buf1 = data + off;
+      sbmdesc->next = (unsigned short *) bfd_alloc (abfd, 2 * sbm_len);
+      buf1 = (bfd_byte *) sbm + off;
       for (j = 0; j < sbm_len; j++)
  sbmdesc->next[j] = bfd_getl16 (buf1 + j * 2);
     }
Reply | Threaded
Open this post in threaded view
|

Failures on Fedora-i686, branch master

gdb-buildbot
Buildername:
        Fedora-i686

Worker:
        fedora-x86-64-4

Full Build URL:
        https://gdb-buildbot.osci.io/#builders/18/builds/2296

Author:
        Alan Modra <[hidden email]>

Commit tested:
        c893ce360a81bed57b9256f9d065541c2f8175c0

Subject of commit:
        vms buffer overflows and large memory allocation

Testsuite logs (gdb.sum, gdb.log and others):
        https://gdb-buildbot.osci.io/results/Fedora-i686/c8/c893ce360a81bed57b9256f9d065541c2f8175c0/

*** Diff to previous build ***
==============================================
PASS -> KFAIL: gdb.threads/process-dies-while-handling-bp.exp: non_stop=off: cond_bp_target=0: inferior 1 exited
PASS -> KFAIL: gdb.threads/process-dies-while-handling-bp.exp: non_stop=on: cond_bp_target=1: inferior 1 exited
==============================================

*** Complete list of XFAILs for this builder ***

To obtain the list of XFAIL tests for this builder, go to:

        <https://gdb-buildbot.osci.io/results/Fedora-i686/c8/c893ce360a81bed57b9256f9d065541c2f8175c0//xfail.gz>

You can also see a pretty-printed version of the list, with more information
about each XFAIL, by going to:

        <https://gdb-buildbot.osci.io/results/Fedora-i686/c8/c893ce360a81bed57b9256f9d065541c2f8175c0//xfail.table.gz>

Reply | Threaded
Open this post in threaded view
|

Failures on Fedora-x86_64-cc-with-index, branch master

gdb-buildbot
In reply to this post by gdb-buildbot
Buildername:
        Fedora-x86_64-cc-with-index

Worker:
        fedora-x86-64-1

Full Build URL:
        https://gdb-buildbot.osci.io/#builders/20/builds/2243

Author:
        Alan Modra <[hidden email]>

Commit tested:
        c893ce360a81bed57b9256f9d065541c2f8175c0

Subject of commit:
        vms buffer overflows and large memory allocation

Testsuite logs (gdb.sum, gdb.log and others):
        https://gdb-buildbot.osci.io/results/Fedora-x86_64-cc-with-index/c8/c893ce360a81bed57b9256f9d065541c2f8175c0/

*** Diff to previous build ***
==============================================
PASS -> FAIL: gdb.multi/multi-arch-exec.exp: first_arch=1: selected_thread=1: follow_exec_mode=same: continue across exec that changes architecture
PASS -> FAIL: gdb.threads/gcore-stale-thread.exp: save a corefile
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: multi_scope: second thread: print i02
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: multi_scope: second thread: print i12
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: multi_scope: second thread: print i22
==============================================

*** Complete list of XFAILs for this builder ***

To obtain the list of XFAIL tests for this builder, go to:

        <https://gdb-buildbot.osci.io/results/Fedora-x86_64-cc-with-index/c8/c893ce360a81bed57b9256f9d065541c2f8175c0//xfail.gz>

You can also see a pretty-printed version of the list, with more information
about each XFAIL, by going to:

        <https://gdb-buildbot.osci.io/results/Fedora-x86_64-cc-with-index/c8/c893ce360a81bed57b9256f9d065541c2f8175c0//xfail.table.gz>

Reply | Threaded
Open this post in threaded view
|

Failures on Fedora-x86_64-m32, branch master

gdb-buildbot
In reply to this post by gdb-buildbot
Buildername:
        Fedora-x86_64-m32

Worker:
        fedora-x86-64-4

Full Build URL:
        https://gdb-buildbot.osci.io/#builders/17/builds/2292

Author:
        Alan Modra <[hidden email]>

Commit tested:
        c893ce360a81bed57b9256f9d065541c2f8175c0

Subject of commit:
        vms buffer overflows and large memory allocation

Testsuite logs (gdb.sum, gdb.log and others):
        https://gdb-buildbot.osci.io/results/Fedora-x86_64-m32/c8/c893ce360a81bed57b9256f9d065541c2f8175c0/

*** Diff to previous build ***
==============================================
PASS -> FAIL: gdb.base/reread.exp: opts= "-fPIE" "ldflags=-pie" : second pass: run to foo
==============================================

*** Complete list of XFAILs for this builder ***

To obtain the list of XFAIL tests for this builder, go to:

        <https://gdb-buildbot.osci.io/results/Fedora-x86_64-m32/c8/c893ce360a81bed57b9256f9d065541c2f8175c0//xfail.gz>

You can also see a pretty-printed version of the list, with more information
about each XFAIL, by going to:

        <https://gdb-buildbot.osci.io/results/Fedora-x86_64-m32/c8/c893ce360a81bed57b9256f9d065541c2f8175c0//xfail.table.gz>

Reply | Threaded
Open this post in threaded view
|

Failures on Fedora-x86_64-m64, branch master

gdb-buildbot
In reply to this post by gdb-buildbot
Buildername:
        Fedora-x86_64-m64

Worker:
        fedora-x86-64-1

Full Build URL:
        https://gdb-buildbot.osci.io/#builders/3/builds/2353

Author:
        Alan Modra <[hidden email]>

Commit tested:
        c893ce360a81bed57b9256f9d065541c2f8175c0

Subject of commit:
        vms buffer overflows and large memory allocation

Testsuite logs (gdb.sum, gdb.log and others):
        https://gdb-buildbot.osci.io/results/Fedora-x86_64-m64/c8/c893ce360a81bed57b9256f9d065541c2f8175c0/

*** Diff to previous build ***
==============================================
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: nested_func: 1st call: 1st thread: print k
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: nested_func: 1st call: 1st thread: print r
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: nested_func: 1st call: 1st thread: print z
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: nested_func: 2nd call: 2nd thread: print k
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: nested_func: 2nd call: 2nd thread: print r
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: nested_func: 2nd call: 2nd thread: print z
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: nested_parallel: inner_threads: 2nd stop: print i
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: nested_parallel: inner_threads: 2nd stop: print j
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: single_scope: first thread: print i3
==============================================

*** Complete list of XFAILs for this builder ***

To obtain the list of XFAIL tests for this builder, go to:

        <https://gdb-buildbot.osci.io/results/Fedora-x86_64-m64/c8/c893ce360a81bed57b9256f9d065541c2f8175c0//xfail.gz>

You can also see a pretty-printed version of the list, with more information
about each XFAIL, by going to:

        <https://gdb-buildbot.osci.io/results/Fedora-x86_64-m64/c8/c893ce360a81bed57b9256f9d065541c2f8175c0//xfail.table.gz>

Reply | Threaded
Open this post in threaded view
|

Failures on Fedora-x86_64-native-extended-gdbserver-m32, branch master

gdb-buildbot
In reply to this post by gdb-buildbot
Buildername:
        Fedora-x86_64-native-extended-gdbserver-m32

Worker:
        fedora-x86-64-4

Full Build URL:
        https://gdb-buildbot.osci.io/#builders/4/builds/2188

Author:
        Alan Modra <[hidden email]>

Commit tested:
        c893ce360a81bed57b9256f9d065541c2f8175c0

Subject of commit:
        vms buffer overflows and large memory allocation

Testsuite logs (gdb.sum, gdb.log and others):
        https://gdb-buildbot.osci.io/results/Fedora-x86_64-native-extended-gdbserver-m32/c8/c893ce360a81bed57b9256f9d065541c2f8175c0/

*** Diff to previous build ***
==============================================
PASS -> FAIL: gdb.multi/multi-re-run.exp: re_run_inf=1: iter=1: continue until exit
PASS -> FAIL: gdb.multi/multi-re-run.exp: re_run_inf=1: iter=1: print re_run_var_1
new UNRESOLVED: gdb.multi/multi-re-run.exp: re_run_inf=1: iter=2: delete all breakpoints in delete_breakpoints
PASS -> UNRESOLVED: gdb.multi/multi-re-run.exp: re_run_inf=1: iter=2: setting breakpoint at all_started
PASS -> FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 2: break at break_fn: 1
PASS -> FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 2: break at break_fn: 2
PASS -> FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 2: break at break_fn: 3
PASS -> FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 2: detach
PASS -> FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 2: reset timer in the inferior
PASS -> FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 3: break at break_fn: 1
PASS -> FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 3: break at break_fn: 2
PASS -> FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 3: break at break_fn: 3
PASS -> FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 3: detach
PASS -> FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 3: reset timer in the inferior
UNRESOLVED -> FAIL: gdb.threads/fork-plus-threads.exp: detach-on-fork=off: inferior 1 exited
new FAIL: gdb.threads/fork-plus-threads.exp: detach-on-fork=off: only inferior 1 left
new KFAIL: gdb.threads/watchthreads2.exp: gdb can drop watchpoints in multithreaded app
==============================================

*** Complete list of XFAILs for this builder ***

To obtain the list of XFAIL tests for this builder, go to:

        <https://gdb-buildbot.osci.io/results/Fedora-x86_64-native-extended-gdbserver-m32/c8/c893ce360a81bed57b9256f9d065541c2f8175c0//xfail.gz>

You can also see a pretty-printed version of the list, with more information
about each XFAIL, by going to:

        <https://gdb-buildbot.osci.io/results/Fedora-x86_64-native-extended-gdbserver-m32/c8/c893ce360a81bed57b9256f9d065541c2f8175c0//xfail.table.gz>

Reply | Threaded
Open this post in threaded view
|

Failures on Fedora-x86_64-native-extended-gdbserver-m64, branch master

gdb-buildbot
In reply to this post by gdb-buildbot
Buildername:
        Fedora-x86_64-native-extended-gdbserver-m64

Worker:
        fedora-x86-64-1

Full Build URL:
        https://gdb-buildbot.osci.io/#builders/2/builds/2188

Author:
        Alan Modra <[hidden email]>

Commit tested:
        c893ce360a81bed57b9256f9d065541c2f8175c0

Subject of commit:
        vms buffer overflows and large memory allocation

Testsuite logs (gdb.sum, gdb.log and others):
        https://gdb-buildbot.osci.io/results/Fedora-x86_64-native-extended-gdbserver-m64/c8/c893ce360a81bed57b9256f9d065541c2f8175c0/

*** Diff to previous build ***
==============================================
PASS -> FAIL: gdb.base/signals-state-child.exp: signals states are identical
PASS -> FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 10: break at break_fn: 1
PASS -> FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 10: break at break_fn: 2
PASS -> FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 10: break at break_fn: 3
UNRESOLVED -> FAIL: gdb.threads/fork-plus-threads.exp: detach-on-fork=off: inferior 1 exited
new FAIL: gdb.threads/fork-plus-threads.exp: detach-on-fork=off: only inferior 1 left
PASS -> FAIL: gdb.threads/interrupted-hand-call.exp: continue until exit
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: nested_func: 1st call: 2nd thread: print k
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: nested_func: 1st call: 2nd thread: print r
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: nested_func: 1st call: 2nd thread: print z
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: nested_parallel: inner_threads: 1st stop: print i
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: nested_parallel: inner_threads: 1st stop: print j
PASS -> KFAIL: gdb.threads/process-dies-while-handling-bp.exp: non_stop=off: cond_bp_target=1: inferior 1 exited
PASS -> FAIL: gdb.threads/thread-unwindonsignal.exp: continue until exit
==============================================

*** Complete list of XFAILs for this builder ***

To obtain the list of XFAIL tests for this builder, go to:

        <https://gdb-buildbot.osci.io/results/Fedora-x86_64-native-extended-gdbserver-m64/c8/c893ce360a81bed57b9256f9d065541c2f8175c0//xfail.gz>

You can also see a pretty-printed version of the list, with more information
about each XFAIL, by going to:

        <https://gdb-buildbot.osci.io/results/Fedora-x86_64-native-extended-gdbserver-m64/c8/c893ce360a81bed57b9256f9d065541c2f8175c0//xfail.table.gz>

Reply | Threaded
Open this post in threaded view
|

Failures on Ubuntu-Aarch64-native-gdbserver-m64, branch master

gdb-buildbot
In reply to this post by gdb-buildbot
Buildername:
        Ubuntu-Aarch64-native-gdbserver-m64

Worker:
        ubuntu-aarch64

Full Build URL:
        https://gdb-buildbot.osci.io/#builders/19/builds/2104

Author:
        Alan Modra <[hidden email]>

Commit tested:
        c893ce360a81bed57b9256f9d065541c2f8175c0

Subject of commit:
        vms buffer overflows and large memory allocation

Testsuite logs (gdb.sum, gdb.log and others):
        https://gdb-buildbot.osci.io/results/Ubuntu-Aarch64-native-gdbserver-m64/c8/c893ce360a81bed57b9256f9d065541c2f8175c0/

*** Diff to previous build ***
==============================================
PASS -> FAIL: gdb.base/step-over-syscall.exp: detach-on-fork=off: follow-fork=parent: break cond on target : fork: pc after stepi matches insn addr after syscall
PASS -> KFAIL: gdb.threads/process-dies-while-handling-bp.exp: non_stop=off: cond_bp_target=0: inferior 1 exited
==============================================

*** Complete list of XFAILs for this builder ***

To obtain the list of XFAIL tests for this builder, go to:

        <https://gdb-buildbot.osci.io/results/Ubuntu-Aarch64-native-gdbserver-m64/c8/c893ce360a81bed57b9256f9d065541c2f8175c0//xfail.gz>

You can also see a pretty-printed version of the list, with more information
about each XFAIL, by going to:

        <https://gdb-buildbot.osci.io/results/Ubuntu-Aarch64-native-gdbserver-m64/c8/c893ce360a81bed57b9256f9d065541c2f8175c0//xfail.table.gz>

Reply | Threaded
Open this post in threaded view
|

Failures on Fedora-x86_64-native-gdbserver-m64, branch master

gdb-buildbot
In reply to this post by gdb-buildbot
Buildername:
        Fedora-x86_64-native-gdbserver-m64

Worker:
        fedora-x86-64-2

Full Build URL:
        https://gdb-buildbot.osci.io/#builders/22/builds/2189

Author:
        Alan Modra <[hidden email]>

Commit tested:
        c893ce360a81bed57b9256f9d065541c2f8175c0

Subject of commit:
        vms buffer overflows and large memory allocation

Testsuite logs (gdb.sum, gdb.log and others):
        https://gdb-buildbot.osci.io/results/Fedora-x86_64-native-gdbserver-m64/c8/c893ce360a81bed57b9256f9d065541c2f8175c0/

*** Diff to previous build ***
==============================================
new FAIL: gdb.base/gdb-caching-proc.exp: set print elements unlimited
new FAIL: gdb.base/gdb-caching-proc.exp: show print elements
new FAIL: gdb.base/gdb-caching-proc.exp: show print repeats
==============================================

*** Complete list of XFAILs for this builder ***

To obtain the list of XFAIL tests for this builder, go to:

        <https://gdb-buildbot.osci.io/results/Fedora-x86_64-native-gdbserver-m64/c8/c893ce360a81bed57b9256f9d065541c2f8175c0//xfail.gz>

You can also see a pretty-printed version of the list, with more information
about each XFAIL, by going to:

        <https://gdb-buildbot.osci.io/results/Fedora-x86_64-native-gdbserver-m64/c8/c893ce360a81bed57b9256f9d065541c2f8175c0//xfail.table.gz>

Reply | Threaded
Open this post in threaded view
|

Failures on Fedora-x86_64-native-gdbserver-m32, branch master

gdb-buildbot
In reply to this post by gdb-buildbot
Buildername:
        Fedora-x86_64-native-gdbserver-m32

Worker:
        fedora-x86-64-3

Full Build URL:
        https://gdb-buildbot.osci.io/#builders/24/builds/2190

Author:
        Alan Modra <[hidden email]>

Commit tested:
        c893ce360a81bed57b9256f9d065541c2f8175c0

Subject of commit:
        vms buffer overflows and large memory allocation

Testsuite logs (gdb.sum, gdb.log and others):
        https://gdb-buildbot.osci.io/results/Fedora-x86_64-native-gdbserver-m32/c8/c893ce360a81bed57b9256f9d065541c2f8175c0/

*** Diff to previous build ***
==============================================
PASS -> KFAIL: gdb.threads/process-dies-while-handling-bp.exp: non_stop=on: cond_bp_target=1: inferior 1 exited
==============================================

*** Complete list of XFAILs for this builder ***

To obtain the list of XFAIL tests for this builder, go to:

        <https://gdb-buildbot.osci.io/results/Fedora-x86_64-native-gdbserver-m32/c8/c893ce360a81bed57b9256f9d065541c2f8175c0//xfail.gz>

You can also see a pretty-printed version of the list, with more information
about each XFAIL, by going to:

        <https://gdb-buildbot.osci.io/results/Fedora-x86_64-native-gdbserver-m32/c8/c893ce360a81bed57b9256f9d065541c2f8175c0//xfail.table.gz>