[binutils-gdb] rx: memory allocation without checking for NULL return

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

[binutils-gdb] rx: memory allocation without checking for NULL return

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

commit e0b317de31ab0e99ef8d14e9f751ae7e7d16abde
Author:     Alan Modra <[hidden email]>
AuthorDate: Wed Feb 26 13:02:42 2020 +1030
Commit:     Alan Modra <[hidden email]>
CommitDate: Wed Feb 26 13:04:54 2020 +1030

    rx: memory allocation without checking for NULL return
   
            * elf32-rx.c (rx_elf_relocate_section): Use bfd_malloc rather than
            malloc.  Check for NULL return from bfd_malloc.
            (rx_table_find, rx_table_map): Likewise.
            (rx_set_section_contents): Check bfd_alloc return.
            (rx_dump_symtab): Don't alloc internal_syms or external_syms.

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ea4808d71c..3b69b80656 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,11 @@
+2020-02-26  Alan Modra  <[hidden email]>
+
+ * elf32-rx.c (rx_elf_relocate_section): Use bfd_malloc rather than
+ malloc.  Check for NULL return from bfd_malloc.
+ (rx_table_find, rx_table_map): Likewise.
+ (rx_set_section_contents): Check bfd_alloc return.
+ (rx_dump_symtab): Don't alloc internal_syms or external_syms.
+
 2020-02-26  Alan Modra  <[hidden email]>
 
  * aoutx.h: Indent labels correctly.  Format error strings.
diff --git a/bfd/elf32-rx.c b/bfd/elf32-rx.c
index bd08eb47d8..89b7ed5095 100644
--- a/bfd/elf32-rx.c
+++ b/bfd/elf32-rx.c
@@ -576,7 +576,9 @@ rx_elf_relocate_section
 
       /* We have already done error checking in rx_table_find().  */
 
-      buf = (char *) malloc (13 + strlen (name + 20));
+      buf = (char *) bfd_malloc (13 + strlen (name + 20));
+      if (buf == NULL)
+ return FALSE;
 
       sprintf (buf, "$tablestart$%s", name + 20);
       table_start_cache = get_symbol_value (buf,
@@ -618,7 +620,10 @@ rx_elf_relocate_section
       idx = (int) (entry_vma - table_start_cache) / 4;
 
       /* This will look like $tableentry$<N>$<name> */
-      buf = (char *) malloc (12 + 20 + strlen (name + 20));
+      buf = (char *) bfd_malloc (12 + 20 + strlen (name + 20));
+      if (buf == NULL)
+ return FALSE;
+
       sprintf (buf, "$tableentry$%d$%s", idx, name + 20);
 
       h = (struct elf_link_hash_entry *) bfd_link_hash_lookup (info->hash, buf, FALSE, FALSE, TRUE);
@@ -3335,26 +3340,14 @@ rx_dump_symtab (bfd * abfd, void * internal_syms, void * external_syms)
   Elf_Internal_Sym * isymend;
   Elf_Internal_Sym * isym;
   Elf_Internal_Shdr * symtab_hdr;
-  bfd_boolean free_internal = FALSE, free_external = FALSE;
   char * st_info_str;
   char * st_info_stb_str;
   char * st_other_str;
   char * st_shndx_str;
 
-  if (! internal_syms)
-    {
-      internal_syms = bfd_malloc (1000);
-      free_internal = 1;
-    }
-  if (! external_syms)
-    {
-      external_syms = bfd_malloc (1000);
-      free_external = 1;
-    }
-
   symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
   locsymcount = symtab_hdr->sh_size / get_elf_backend_data (abfd)->s->sizeof_sym;
-  if (free_internal)
+  if (!internal_syms)
     isymbuf = bfd_elf_get_elf_syms (abfd, symtab_hdr,
     symtab_hdr->sh_info, 0,
     internal_syms, external_syms, NULL);
@@ -3406,10 +3399,6 @@ rx_dump_symtab (bfd * abfd, void * internal_syms, void * external_syms)
       isym->st_other, st_other_str,
       isym->st_shndx, st_shndx_str);
     }
-  if (free_internal)
-    free (internal_syms);
-  if (free_external)
-    free (external_syms);
 }
 
 char *
@@ -3618,6 +3607,8 @@ rx_set_section_contents (bfd *       abfd,
       char * cloc = (char *) location;
 
       swapped_data = (char *) bfd_alloc (abfd, count);
+      if (swapped_data == NULL)
+ return FALSE;
 
       for (i = 0; i < count; i += 4)
  {
@@ -3782,7 +3773,9 @@ rx_table_find (struct bfd_hash_entry *vent, void *vinfo)
      find all the related symbols and mark their sections as SEC_KEEP
      so we don't garbage collect them.  */
 
-  buf = (char *) malloc (12 + 10 + strlen (tname));
+  buf = (char *) bfd_malloc (12 + 10 + strlen (tname));
+  if (buf == NULL)
+    return FALSE;
 
   sprintf (buf, "$tableend$%s", tname);
   h = bfd_link_hash_lookup (info->info->hash, buf, FALSE, FALSE, TRUE);
@@ -3911,7 +3904,9 @@ rx_table_map (struct bfd_hash_entry *vent, void *vinfo)
  + ent->u.def.section->output_section->vma
  + ent->u.def.section->output_offset);
 
-  buf = (char *) malloc (12 + 10 + strlen (tname));
+  buf = (char *) bfd_malloc (12 + 10 + strlen (tname));
+  if (buf == NULL)
+    return FALSE;
 
   sprintf (buf, "$tableend$%s", tname);
   end_addr = get_symbol_value_maybe (buf, info->info);
@@ -3931,8 +3926,21 @@ rx_table_map (struct bfd_hash_entry *vent, void *vinfo)
 
   info->table_start = start_addr;
   info->table_size = (int) (end_addr - start_addr) / 4;
-  info->table_handlers = (bfd_vma *) malloc (info->table_size * sizeof (bfd_vma));
-  info->table_entries = (struct bfd_link_hash_entry **) malloc (info->table_size * sizeof (struct bfd_link_hash_entry));
+  info->table_handlers = (bfd_vma *)
+    bfd_malloc (info->table_size * sizeof (bfd_vma));
+  if (info->table_handlers == NULL)
+    {
+      free (buf);
+      return FALSE;
+    }
+  info->table_entries = (struct bfd_link_hash_entry **)
+    bfd_malloc (info->table_size * sizeof (struct bfd_link_hash_entry));
+  if (info->table_entries == NULL)
+    {
+      free (info->table_handlers);
+      free (buf);
+      return FALSE;
+    }
 
   for (idx = 0; idx < (int) (end_addr - start_addr) / 4; idx ++)
     {
Reply | Threaded
Open this post in threaded view
|

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

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/2262

Author:
        Alan Modra <[hidden email]>

Commit tested:
        e0b317de31ab0e99ef8d14e9f751ae7e7d16abde

Subject of commit:
        rx: memory allocation without checking for NULL return

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

*** Diff to previous build ***
==============================================
new KFAIL: gdb.ada/bad-task-bp-keyword.exp: break *break_me'address TASK Task TaSK 2
new FAIL: gdb.ada/interface.exp: print s
new FAIL: gdb.ada/iwide.exp: print My_Drawable
new FAIL: gdb.ada/iwide.exp: print d_access.all
new FAIL: gdb.ada/iwide.exp: print dp_access.all
new FAIL: gdb.ada/iwide.exp: print s_access.all
new FAIL: gdb.ada/iwide.exp: print sp_access.all
new FAIL: gdb.ada/mi_interface.exp: create ggg1 varobj
new FAIL: gdb.ada/mi_interface.exp: list ggg1's children
new FAIL: gdb.ada/tagged.exp: print obj
new FAIL: gdb.ada/tagged.exp: ptype obj
new FAIL: gdb.ada/tagged_access.exp: ptype c.all
new FAIL: gdb.ada/tagged_access.exp: ptype c.menu_name
new KFAIL: gdb.base/argv0-symlink.exp: kept directory symbolic link name
new FAIL: gdb.base/async.exp: finish&
new FAIL: gdb.base/async.exp: nexti&
new FAIL: gdb.base/async.exp: stepi&
new FAIL: gdb.base/consecutive.exp: stopped at bp, 2nd instr
new FAIL: gdb.base/float128.exp: print large128
new KFAIL: gdb.base/foll-vfork.exp: exit: vfork child follow, finish after tcatch vfork: finish
new KFAIL: gdb.base/info-macros.exp: info macros info-macros.c:42
new KFAIL: gdb.base/macscp.exp: BEFORE_MACSCP1_2 defined/undefined when stopped at macscp4_1_from_macscp3
new KFAIL: gdb.base/macscp.exp: BEFORE_MACSCP1_2 defined/undefined when stopped at macscp4_2_from_macscp3
new KFAIL: gdb.base/macscp.exp: BEFORE_MACSCP2_2 defined/undefined when stopped at macscp4_1_from_macscp3
new KFAIL: gdb.base/macscp.exp: BEFORE_MACSCP2_2 defined/undefined when stopped at macscp4_2_from_macscp3
new KFAIL: gdb.base/macscp.exp: BEFORE_MACSCP3_1 defined/undefined when stopped at macscp4_1_from_macscp3
new KFAIL: gdb.base/macscp.exp: BEFORE_MACSCP3_1 defined/undefined when stopped at macscp4_2_from_macscp3
new KFAIL: gdb.base/macscp.exp: BEFORE_MACSCP4_1_FROM_MACSCP3 defined/undefined when stopped at macscp4_2_from_macscp3
new KFAIL: gdb.base/macscp.exp: BEFORE_MACSCP4_2_FROM_MACSCP2 defined/undefined when stopped at macscp4_1_from_macscp3
new KFAIL: gdb.base/macscp.exp: UNTIL_MACSCP1_2 defined/undefined when stopped at macscp4_1_from_macscp3
new KFAIL: gdb.base/macscp.exp: UNTIL_MACSCP1_2 defined/undefined when stopped at macscp4_2_from_macscp3
new KFAIL: gdb.base/macscp.exp: UNTIL_MACSCP2_2 defined/undefined when stopped at macscp4_1_from_macscp3
new KFAIL: gdb.base/macscp.exp: UNTIL_MACSCP2_2 defined/undefined when stopped at macscp4_2_from_macscp3
new KFAIL: gdb.base/macscp.exp: UNTIL_MACSCP3_1 defined/undefined when stopped at macscp4_1_from_macscp3
new KFAIL: gdb.base/macscp.exp: UNTIL_MACSCP3_1 defined/undefined when stopped at macscp4_2_from_macscp3
new KFAIL: gdb.base/macscp.exp: UNTIL_MACSCP4_1_FROM_MACSCP3 defined/undefined when stopped at macscp4_2_from_macscp3
new KFAIL: gdb.base/macscp.exp: UNTIL_MACSCP4_2_FROM_MACSCP2 defined/undefined when stopped at macscp4_1_from_macscp3
new KFAIL: gdb.base/macscp.exp: info macro WHERE after `list macscp_4_2_from_macscp3'
new KFAIL: gdb.base/macscp.exp: info macro WHERE stopped in macscp4_1_from_macscp3
new KFAIL: gdb.base/macscp.exp: info macro WHERE stopped in macscp4_2_from_macscp3
new KFAIL: gdb.base/radix.exp: print 20.; expect 14; output radix 16
new KFAIL: gdb.base/radix.exp: print 20.; expect 24; output radix 8
new UNRESOLVED: gdb.base/readline-ask.exp: bell for more message
new UNRESOLVED: gdb.base/reread.exp: opts= "" "" : second pass: breakpoint foo in first file
new UNRESOLVED: gdb.base/reread.exp: opts= "-fPIE" "ldflags=-pie" : breakpoint foo in first file
new UNRESOLVED: gdb.base/reread.exp: opts= "-fPIE" "ldflags=-pie" : second pass: breakpoint foo in first file
new FAIL: gdb.base/reread.exp: opts= "-fPIE" "ldflags=-pie" : second pass: run to foo
new UNRESOLVED: gdb.base/reread.exp: opts= "-fPIE" "ldflags=-pie" : shell sleep 1
new FAIL: gdb.base/shlib-call.exp: step into mainshr1
new FAIL: gdb.base/shlib-call.exp: step out of shr2 epilogue to main
new KFAIL: gdb.base/sigbpt.exp: stepi bp at segv; stepi out of handler
new KFAIL: gdb.base/sigbpt.exp: stepi bp before and at segv; stepi out of handler
new KFAIL: gdb.base/sigbpt.exp: stepi bp before segv; stepi out of handler
new KFAIL: gdb.base/sigbpt.exp: stepi; stepi out of handler
new KFAIL: gdb.base/step-over-syscall.exp: clone: displaced=on: single step over clone
new UNRESOLVED: gdb.base/symbol-without-target_section.exp: list main
new UNRESOLVED: gdb.base/symbol-without-target_section.exp: print symbol_without_target_section
new KFAIL: gdb.base/utf8-identifiers.exp: tab complete "break fun"
new FAIL: gdb.base/watchpoint-reuse-slot.exp: hw-watch: always-inserted off: watch x watch: : width 1, iter 0: base + 0: stepi advanced
new KFAIL: gdb.base/watchpoint-unaligned.exp: wpcount
new FAIL: gdb.base/with.exp: basics: with language ada -- print g_s
new FAIL: gdb.base/with.exp: repeat: reinvoke with language
new FAIL: gdb.base/with.exp: user-defined: with language ada -- usercmd
new KFAIL: gdb.compile/compile-cplus-anonymous.exp: compile code
new FAIL: gdb.compile/compile-cplus-anonymous.exp: compile code anon_e
new KFAIL: gdb.compile/compile-cplus-anonymous.exp: compile code anon_s.MAGIC
new KFAIL: gdb.compile/compile-cplus-anonymous.exp: compile code anon_s.len
new KFAIL: gdb.compile/compile-cplus-anonymous.exp: compile code anon_s.ua
new KFAIL: gdb.compile/compile-cplus-anonymous.exp: compile print
new FAIL: gdb.compile/compile-cplus-anonymous.exp: compile print A::BB
new FAIL: gdb.compile/compile-cplus-anonymous.exp: compile print ABC
new FAIL: gdb.compile/compile-cplus-anonymous.exp: compile print DEF
new FAIL: gdb.compile/compile-cplus-anonymous.exp: compile print GHI
new FAIL: gdb.compile/compile-cplus-anonymous.exp: compile print JKL
new FAIL: gdb.compile/compile-cplus-anonymous.exp: compile print a.e
new FAIL: gdb.compile/compile-cplus-anonymous.exp: compile print a.s.len
new FAIL: gdb.compile/compile-cplus-anonymous.exp: compile print anon_e
new KFAIL: gdb.compile/compile-cplus-anonymous.exp: compile print anon_s.MAGIC
new KFAIL: gdb.compile/compile-cplus-anonymous.exp: compile print anon_s.len
new KFAIL: gdb.compile/compile-cplus-anonymous.exp: compile print anon_s.ua
new FAIL: gdb.compile/compile-cplus-anonymous.exp: compile print anon_u.aa
new KFAIL: gdb.compile/compile-cplus-anonymous.exp: result of compile code
new FAIL: gdb.compile/compile-cplus-anonymous.exp: result of compile code anon_e
new KFAIL: gdb.compile/compile-cplus-anonymous.exp: result of compile code anon_s.MAGIC
new KFAIL: gdb.compile/compile-cplus-anonymous.exp: result of compile code anon_s.len
new KFAIL: gdb.compile/compile-cplus-anonymous.exp: result of compile code anon_s.ua
new FAIL: gdb.compile/compile-cplus-array-decay.exp: compile print strings
new FAIL: gdb.compile/compile-cplus-inherit.exp: compile print d.A::do_it
new FAIL: gdb.compile/compile-cplus-inherit.exp: compile print d.B::do_it
new FAIL: gdb.compile/compile-cplus-inherit.exp: compile print d.C::do_it
new FAIL: gdb.compile/compile-cplus-inherit.exp: compile print d.a_
new FAIL: gdb.compile/compile-cplus-inherit.exp: compile print d.b_
new FAIL: gdb.compile/compile-cplus-inherit.exp: compile print d.c_
new FAIL: gdb.compile/compile-cplus-inherit.exp: compile print d.d_
new FAIL: gdb.compile/compile-cplus-member.exp: compile code A::ATYPE i = 10; var = i;
new FAIL: gdb.compile/compile-cplus-member.exp: compile code A::s_private_
new FAIL: gdb.compile/compile-cplus-member.exp: compile code A::s_private_ = E_B; var = A::s_private_;
new FAIL: gdb.compile/compile-cplus-member.exp: compile code A::s_protected_
new FAIL: gdb.compile/compile-cplus-member.exp: compile code A::s_protected_ = N::NB; var = A::s_protected_;
new FAIL: gdb.compile/compile-cplus-member.exp: compile code A::s_public_
new FAIL: gdb.compile/compile-cplus-member.exp: compile code ATYPE i;
new FAIL: gdb.compile/compile-cplus-member.exp: compile code N::ANON_NE ae = N::ND; var = ae;
new FAIL: gdb.compile/compile-cplus-member.exp: compile code N::ANON_NE nse = E_A
new FAIL: gdb.compile/compile-cplus-member.exp: compile code a.*pmi
new FAIL: gdb.compile/compile-cplus-member.exp: compile code a.public_ = 2; var = a.*pmi; a.public_ = 1
new FAIL: gdb.compile/compile-cplus-member.exp: compile code a.s_public_ = E_B
new FAIL: gdb.compile/compile-cplus-member.exp: compile code g_e
new FAIL: gdb.compile/compile-cplus-member.exp: compile code get_values
new FAIL: gdb.compile/compile-cplus-member.exp: compile code myenum me = E_B; var = me;
new FAIL: gdb.compile/compile-cplus-member.exp: compile print A::s_private_
new FAIL: gdb.compile/compile-cplus-member.exp: compile print A::s_protected_
new FAIL: gdb.compile/compile-cplus-member.exp: compile print A::s_public_
new FAIL: gdb.compile/compile-cplus-member.exp: compile print a.*pmi
new FAIL: gdb.compile/compile-cplus-member.exp: compile print a.private_
new FAIL: gdb.compile/compile-cplus-member.exp: compile print a.protected_
new FAIL: gdb.compile/compile-cplus-member.exp: compile print a.public_
new FAIL: gdb.compile/compile-cplus-member.exp: compile print g_e
new FAIL: gdb.compile/compile-cplus-member.exp: compile print get_values
new FAIL: gdb.compile/compile-cplus-member.exp: result of compile code A::ATYPE i = 10; var = i;
new FAIL: gdb.compile/compile-cplus-member.exp: result of compile code A::s_private_
new FAIL: gdb.compile/compile-cplus-member.exp: result of compile code A::s_private_ = E_B; var = A::s_private_;
new FAIL: gdb.compile/compile-cplus-member.exp: result of compile code A::s_protected_
new FAIL: gdb.compile/compile-cplus-member.exp: result of compile code A::s_protected_ = N::NB; var = A::s_protected_;
new FAIL: gdb.compile/compile-cplus-member.exp: result of compile code A::s_public_
new FAIL: gdb.compile/compile-cplus-member.exp: result of compile code N::ANON_NE ae = N::ND; var = ae;
new FAIL: gdb.compile/compile-cplus-member.exp: result of compile code a.*pmi
new FAIL: gdb.compile/compile-cplus-member.exp: result of compile code a.public_ = 2; var = a.*pmi; a.public_ = 1
new FAIL: gdb.compile/compile-cplus-member.exp: result of compile code g_e
new FAIL: gdb.compile/compile-cplus-member.exp: result of compile code get_values
new FAIL: gdb.compile/compile-cplus-member.exp: result of compile code myenum me = E_B; var = me;
new FAIL: gdb.compile/compile-cplus-method.exp: compile code
new FAIL: gdb.compile/compile-cplus-method.exp: compile code A::get_1
new FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var
new FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var1
new FAIL: gdb.compile/compile-cplus-method.exp: compile code a->get_var2
new FAIL: gdb.compile/compile-cplus-method.exp: compile code pmf = &A::get_var1; var =
new FAIL: gdb.compile/compile-cplus-method.exp: compile print
new FAIL: gdb.compile/compile-cplus-method.exp: compile print A::get_1
new FAIL: gdb.compile/compile-cplus-method.exp: compile print A::get_2
new FAIL: gdb.compile/compile-cplus-method.exp: compile print a->get_var
new FAIL: gdb.compile/compile-cplus-method.exp: compile print a->get_var1
new FAIL: gdb.compile/compile-cplus-method.exp: compile print a->get_var2
new FAIL: gdb.compile/compile-cplus-method.exp: compile print get_value
new FAIL: gdb.compile/compile-cplus-method.exp: result of compile code
new FAIL: gdb.compile/compile-cplus-method.exp: result of compile code A::get_1
new FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var
new FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var1
new FAIL: gdb.compile/compile-cplus-method.exp: result of compile code a->get_var2
new FAIL: gdb.compile/compile-cplus-method.exp: result of compile code pmf = &A::get_var1; var =
new FAIL: gdb.compile/compile-cplus-namespace.exp: compile print N1::N2::N3::N4::S4::get_svar
new FAIL: gdb.compile/compile-cplus-namespace.exp: compile print N1::N2::N3::N4::S4::s4static
new FAIL: gdb.compile/compile-cplus-namespace.exp: compile print N1::N2::N3::N4::n4static
new FAIL: gdb.compile/compile-cplus-namespace.exp: compile print s4.get_var
new FAIL: gdb.compile/compile-cplus-namespace.exp: compile print s4.s4int_
new FAIL: gdb.compile/compile-cplus-nested.exp: compile print i1.a_
new FAIL: gdb.compile/compile-cplus-nested.exp: compile print i2.a_
new KFAIL: gdb.compile/compile-cplus-print.exp: compile print *vararray@3
new KFAIL: gdb.compile/compile-cplus-print.exp: compile print *vararrayp@3
new KFAIL: gdb.compile/compile-cplus-print.exp: compile print main
new FAIL: gdb.compile/compile-cplus-print.exp: compile print vararray
new FAIL: gdb.compile/compile-cplus-print.exp: compile print varint
new FAIL: gdb.compile/compile-cplus-print.exp: compile print varobject
new FAIL: gdb.compile/compile-cplus-print.exp: compile print/x 256
new FAIL: gdb.compile/compile-cplus-print.exp: print $
new FAIL: gdb.compile/compile-cplus-virtual.exp: compile code ap->doit
new FAIL: gdb.compile/compile-cplus-virtual.exp: compile code ap->doit2
new FAIL: gdb.compile/compile-cplus-virtual.exp: compile print ap->doit
new FAIL: gdb.compile/compile-cplus-virtual.exp: compile print ap->doit2
new FAIL: gdb.compile/compile-cplus-virtual.exp: compile print b.doit
new FAIL: gdb.compile/compile-cplus-virtual.exp: compile print b.doit2
new FAIL: gdb.compile/compile-cplus-virtual.exp: compile print b.doit3
new FAIL: gdb.compile/compile-cplus-virtual.exp: compile print c.doit
new FAIL: gdb.compile/compile-cplus-virtual.exp: compile print c.doit2
new FAIL: gdb.compile/compile-cplus-virtual.exp: compile print c.doit3
new FAIL: gdb.compile/compile-cplus-virtual.exp: compile print d.doit
new FAIL: gdb.compile/compile-cplus-virtual.exp: compile print d.doit2
new FAIL: gdb.compile/compile-cplus-virtual.exp: compile print d.doit3
new FAIL: gdb.compile/compile-cplus.exp: Test compile file and raw option without a filename
new FAIL: gdb.compile/compile-cplus.exp: Test compile file with unknown argument
new FAIL: gdb.compile/compile-cplus.exp: bt
new KFAIL: gdb.compile/compile-cplus.exp: call func_nodebug
new KFAIL: gdb.compile/compile-cplus.exp: call func_nodebug indirectly
new FAIL: gdb.compile/compile-cplus.exp: compile code -z
new FAIL: gdb.compile/compile-cplus.exp: compile code localvar =
new KFAIL: gdb.compile/compile-cplus.exp: expect -75
new KFAIL: gdb.compile/compile-cplus.exp: expect -76
new FAIL: gdb.compile/compile-cplus.exp: p localvar
new FAIL: gdb.compile/compile-cplus.exp: print 'compile-cplus.c'::globalshadow
new FAIL: gdb.compile/compile-cplus.exp: print globalshadow second time
new KFAIL: gdb.compile/compile-print.exp: compile print *vararray@3
new KFAIL: gdb.compile/compile-print.exp: compile print *vararrayp@3
new FAIL: gdb.compile/compile-print.exp: compile print vararray
new KFAIL: gdb.cp/local.exp: ptype InnerLocal::NestedInnerLocal
new FAIL: gdb.cp/no-dmgl-verbose.exp: setting breakpoint at 'f
new KFAIL: gdb.cp/oranking.exp: p foo0
new KFAIL: gdb.cp/oranking.exp: p foo10
new KFAIL: gdb.cp/oranking.exp: p foo11
new KFAIL: gdb.cp/oranking.exp: p foo13
new KFAIL: gdb.cp/oranking.exp: p foo14
new KFAIL: gdb.cp/oranking.exp: p foo2
new KFAIL: gdb.cp/rvalue-ref-overload.exp: rvalue reference overload
new KFAIL: gdb.cp/templates.exp: ptype fvpchar
new KFAIL: gdb.cp/var-tag.exp: global collision: print global
new KFAIL: gdb.cp/virtfunc.exp: print pEe->D::vg
new FAIL: gdb.dwarf2/dup-psym.exp: info sources should contain only one reference to file1.txt
new UNRESOLVED: gdb.dwarf2/dw2-icc-opaque.exp: ptype p_struct
new KFAIL: gdb.dwarf2/dw2-simple-locdesc.exp: p &s.shl
new FAIL: gdb.dwarf2/main-subprogram.exp: stopped at mymain
new KFAIL: gdb.fortran/derived-type-striding.exp: p point_dimension
new KFAIL: gdb.fortran/derived-type-striding.exp: p point_mixed_dimension
new KFAIL: gdb.fortran/function-calls.exp: p one_arg_value
new KFAIL: gdb.mi/mi-break.exp: mi-mode=main: break-insert -r operation
new KFAIL: gdb.mi/mi-break.exp: mi-mode=main: insert breakpoint with regexp .*llee
new KFAIL: gdb.mi/mi-break.exp: mi-mode=main: insert breakpoint with regexp callee
new KFAIL: gdb.mi/mi-break.exp: mi-mode=main: insert breakpoint with regexp callee2
new KFAIL: gdb.mi/mi-break.exp: mi-mode=main: list of breakpoints
new KFAIL: gdb.mi/mi-break.exp: mi-mode=separate: break-insert -r operation
new KFAIL: gdb.mi/mi-break.exp: mi-mode=separate: insert breakpoint with regexp .*llee
new KFAIL: gdb.mi/mi-break.exp: mi-mode=separate: insert breakpoint with regexp callee
new KFAIL: gdb.mi/mi-break.exp: mi-mode=separate: insert breakpoint with regexp callee2
new KFAIL: gdb.mi/mi-break.exp: mi-mode=separate: list of breakpoints
new KFAIL: gdb.mi/mi-until.exp: until after while loop
new KFAIL: gdb.mi/user-selected-context-sync.exp: mode=all-stop: test_mi_thread_select: thread 1.2 with --thread: thread-select, event on cli
new KFAIL: gdb.mi/user-selected-context-sync.exp: mode=non-stop: test_mi_thread_select: thread 1.2 with --thread: thread-select, event on cli
new KFAIL: gdb.opt/inline-cmds.exp: next to second func1
new KPASS: gdb.opt/inline-locals.exp: info locals above bar 2
new KPASS: gdb.opt/inline-locals.exp: info locals above bar 3
new KFAIL: gdb.pascal/types.exp: pt 'a simple string'
new FAIL: gdb.reverse/consecutive-precsave.exp: stopped at bp, 2nd instr
new FAIL: gdb.reverse/consecutive-reverse.exp: stopped at bp, 2nd instr
new KFAIL: gdb.reverse/fstatat-reverse.exp: continue to breakpoint: marker2
new KFAIL: gdb.reverse/getresuid-reverse.exp: continue to breakpoint: marker2
new KFAIL: gdb.reverse/pipe-reverse.exp: continue to breakpoint: marker2
new KFAIL: gdb.reverse/readv-reverse.exp: continue to breakpoint: marker2
new KFAIL: gdb.reverse/recvmsg-reverse.exp: continue to breakpoint: marker2
new KFAIL: gdb.reverse/sigall-precsave.exp: run to end of main
new KFAIL: gdb.reverse/sigall-reverse.exp: sig-test-1: get signal ABRT
new KFAIL: gdb.reverse/solib-reverse.exp: run until end part one
new FAIL: gdb.reverse/step-precsave.exp: reverse next over call
new FAIL: gdb.reverse/step-precsave.exp: reverse next test 1
new FAIL: gdb.reverse/step-precsave.exp: reverse next test 2
new FAIL: gdb.reverse/step-precsave.exp: reverse step out of called fn
new FAIL: gdb.reverse/step-precsave.exp: reverse step test 1
new FAIL: gdb.reverse/step-precsave.exp: reverse step test 2
new FAIL: gdb.reverse/step-precsave.exp: reverse stepi from a function call
new KFAIL: gdb.reverse/step-precsave.exp: run to end of main
new FAIL: gdb.reverse/step-precsave.exp: simple reverse stepi
new FAIL: gdb.reverse/step-reverse.exp: reverse next over call
new FAIL: gdb.reverse/step-reverse.exp: reverse next test 1
new FAIL: gdb.reverse/step-reverse.exp: reverse next test 2
new FAIL: gdb.reverse/step-reverse.exp: reverse step out of called fn
new FAIL: gdb.reverse/step-reverse.exp: reverse step test 1
new FAIL: gdb.reverse/step-reverse.exp: reverse step test 2
new FAIL: gdb.reverse/step-reverse.exp: reverse stepi from a function call
new FAIL: gdb.reverse/step-reverse.exp: simple reverse stepi
new KFAIL: gdb.reverse/time-reverse.exp: continue to breakpoint: marker2
new KFAIL: gdb.reverse/until-precsave.exp: run to end of main
new KFAIL: gdb.reverse/until-reverse.exp: advance factorial
new KFAIL: gdb.reverse/waitpid-reverse.exp: continue to breakpoint: marker2
new FAIL: gdb.rust/generics.exp: print identity::< Hold<i32> >
new FAIL: gdb.rust/generics.exp: print identity::<Hold<i32>>
new FAIL: gdb.rust/generics.exp: print identity::<f64>
new FAIL: gdb.rust/generics.exp: print identity::<generics::Hold<i32> >
new FAIL: gdb.rust/generics.exp: print identity::<u32>
new FAIL: gdb.rust/generics.exp: ptype identity::<f64>
new FAIL: gdb.rust/generics.exp: ptype identity::<u32>
new FAIL: gdb.threads/create-fail.exp: iteration 10: run till end
new FAIL: gdb.threads/create-fail.exp: iteration 1: run till end
new FAIL: gdb.threads/create-fail.exp: iteration 2: run till end
new FAIL: gdb.threads/create-fail.exp: iteration 3: run till end
new FAIL: gdb.threads/create-fail.exp: iteration 4: run till end
new FAIL: gdb.threads/create-fail.exp: iteration 5: run till end
new FAIL: gdb.threads/create-fail.exp: iteration 6: run till end
new FAIL: gdb.threads/create-fail.exp: iteration 7: run till end
new FAIL: gdb.threads/create-fail.exp: iteration 8: run till end
new FAIL: gdb.threads/create-fail.exp: iteration 9: run till end
new FAIL: gdb.threads/fork-child-threads.exp: next over fork
new KFAIL: gdb.threads/omp-par-scope.exp: multi_scope: second thread: print i02
new KFAIL: gdb.threads/omp-par-scope.exp: multi_scope: second thread: print i12
new KFAIL: gdb.threads/omp-par-scope.exp: multi_scope: second thread: print i22
new KFAIL: gdb.threads/omp-par-scope.exp: nested_func: 1st call: 2nd thread: print k
new KFAIL: gdb.threads/omp-par-scope.exp: nested_func: 1st call: 2nd thread: print r
new KFAIL: gdb.threads/omp-par-scope.exp: nested_func: 1st call: 2nd thread: print z
new KFAIL: gdb.threads/omp-par-scope.exp: nested_func: 2nd call: 1st thread: print k
new KFAIL: gdb.threads/omp-par-scope.exp: nested_func: 2nd call: 1st thread: print r
new KFAIL: gdb.threads/omp-par-scope.exp: nested_func: 2nd call: 1st thread: print z
new KFAIL: gdb.threads/omp-par-scope.exp: nested_parallel: inner_threads: 1st stop: print i
new KFAIL: gdb.threads/omp-par-scope.exp: nested_parallel: inner_threads: 1st stop: print j
new KFAIL: gdb.threads/omp-par-scope.exp: nested_parallel: inner_threads: 2nd stop: print i
new KFAIL: gdb.threads/omp-par-scope.exp: nested_parallel: inner_threads: 2nd stop: print j
new KFAIL: gdb.threads/omp-par-scope.exp: nested_parallel: inner_threads: 3rd stop: print i
new KFAIL: gdb.threads/omp-par-scope.exp: nested_parallel: inner_threads: 3rd stop: print j
new KFAIL: gdb.threads/omp-par-scope.exp: single_scope: first thread: print i3
new KFAIL: gdb.threads/process-dies-while-handling-bp.exp: non_stop=off: cond_bp_target=0: inferior 1 exited
new KFAIL: gdb.threads/process-dies-while-handling-bp.exp: non_stop=off: cond_bp_target=1: inferior 1 exited
new KFAIL: gdb.threads/process-dies-while-handling-bp.exp: non_stop=on: cond_bp_target=0: inferior 1 exited
new KFAIL: gdb.threads/process-dies-while-handling-bp.exp: non_stop=on: cond_bp_target=1: inferior 1 exited
new KFAIL: gdb.threads/watchthreads2.exp: gdb can drop watchpoints in multithreaded app
new KFAIL: gdb.xml/tdesc-arch.exp: crlf: set tdesc filename tdesc-arch.xml
new KFAIL: gdb.xml/tdesc-arch.exp: set tdesc filename tdesc-arch.xml
==============================================

*** 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/e0/e0b317de31ab0e99ef8d14e9f751ae7e7d16abde//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/e0/e0b317de31ab0e99ef8d14e9f751ae7e7d16abde//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/2372

Author:
        Alan Modra <[hidden email]>

Commit tested:
        e0b317de31ab0e99ef8d14e9f751ae7e7d16abde

Subject of commit:
        rx: memory allocation without checking for NULL return

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

*** Diff to previous build ***
==============================================
PASS -> UNRESOLVED: gdb.base/reread.exp: opts= "" "" : second pass: breakpoint foo in first file
PASS -> UNRESOLVED: gdb.base/reread.exp: opts= "-fPIE" "ldflags=-pie" : second pass: breakpoint foo in first file
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
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: nested_parallel: inner_threads: 3rd stop: print i
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: nested_parallel: inner_threads: 3rd stop: print j
==============================================

*** 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/e0/e0b317de31ab0e99ef8d14e9f751ae7e7d16abde//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/e0/e0b317de31ab0e99ef8d14e9f751ae7e7d16abde//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/2207

Author:
        Alan Modra <[hidden email]>

Commit tested:
        e0b317de31ab0e99ef8d14e9f751ae7e7d16abde

Subject of commit:
        rx: memory allocation without checking for NULL return

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

*** Diff to previous build ***
==============================================
UNRESOLVED -> FAIL: gdb.mi/mi-exec-run.exp: inferior-tty=main: mi=main: force-fail=1: run failure detected
UNRESOLVED -> FAIL: gdb.mi/mi-exec-run.exp: inferior-tty=main: mi=separate: force-fail=1: run failure detected
UNRESOLVED -> FAIL: gdb.mi/mi-exec-run.exp: inferior-tty=separate: mi=main: force-fail=1: run failure detected
UNRESOLVED -> FAIL: gdb.mi/mi-exec-run.exp: inferior-tty=separate: mi=separate: force-fail=1: run failure detected
PASS -> FAIL: gdb.multi/multi-re-run.exp: re_run_inf=2: iter=1: continue until exit
PASS -> FAIL: gdb.multi/multi-re-run.exp: re_run_inf=2: iter=1: print re_run_var_2
new UNRESOLVED: gdb.multi/multi-re-run.exp: re_run_inf=2: iter=2: delete all breakpoints in delete_breakpoints
PASS -> UNRESOLVED: gdb.multi/multi-re-run.exp: re_run_inf=2: iter=2: setting breakpoint at all_started
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-extended-gdbserver-m32/e0/e0b317de31ab0e99ef8d14e9f751ae7e7d16abde//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/e0/e0b317de31ab0e99ef8d14e9f751ae7e7d16abde//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/2207

Author:
        Alan Modra <[hidden email]>

Commit tested:
        e0b317de31ab0e99ef8d14e9f751ae7e7d16abde

Subject of commit:
        rx: memory allocation without checking for NULL return

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

*** Diff to previous build ***
==============================================
new FAIL: gdb.base/break-interp.exp: LDprelinkNOdebugIN: BINprelinkNOdebugNOpieNO: INNER: symbol-less: entry point reached
new FAIL: gdb.base/break-interp.exp: LDprelinkNOdebugIN: BINprelinkNOdebugNOpieYES: INNER: symbol-less: entry point reached
PASS -> UNRESOLVED: gdb.base/reread.exp: opts= "" "" : second pass: breakpoint foo in first file
PASS -> UNRESOLVED: gdb.base/reread.exp: opts= "-fPIE" "ldflags=-pie" : second pass: breakpoint foo in first file
FAIL -> UNRESOLVED: gdb.mi/mi-exec-run.exp: inferior-tty=main: mi=main: force-fail=1: run failure detected
FAIL -> UNRESOLVED: gdb.mi/mi-exec-run.exp: inferior-tty=main: mi=separate: force-fail=1: run failure detected
FAIL -> UNRESOLVED: gdb.mi/mi-exec-run.exp: inferior-tty=separate: mi=main: force-fail=1: run failure detected
FAIL -> UNRESOLVED: gdb.mi/mi-exec-run.exp: inferior-tty=separate: mi=separate: force-fail=1: run failure detected
PASS -> FAIL: gdb.multi/multi-re-run.exp: re_run_inf=2: iter=2: continue until exit
PASS -> FAIL: gdb.multi/multi-re-run.exp: re_run_inf=2: iter=2: print re_run_var_2
PASS -> FAIL: gdb.multi/multi-term-settings.exp: inf1_how=attach: inf2_how=attach: stop with control-c
PASS -> FAIL: gdb.threads/forking-threads-plus-breakpoint.exp: cond_bp_target=0: detach_on_fork=on: displaced=off: inferior 1 exited
PASS -> KFAIL: gdb.threads/omp-par-scope.exp: single_scope: first thread: print i3
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-m64/e0/e0b317de31ab0e99ef8d14e9f751ae7e7d16abde//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/e0/e0b317de31ab0e99ef8d14e9f751ae7e7d16abde//xfail.table.gz>

Reply | Threaded
Open this post in threaded view
|

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

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

Worker:
        ubuntu-aarch64

Full Build URL:
        https://gdb-buildbot.osci.io/#builders/5/builds/2092

Author:
        Alan Modra <[hidden email]>

Commit tested:
        e0b317de31ab0e99ef8d14e9f751ae7e7d16abde

Subject of commit:
        rx: memory allocation without checking for NULL return

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

*** 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/Ubuntu-Aarch64-native-extended-gdbserver-m64/e0/e0b317de31ab0e99ef8d14e9f751ae7e7d16abde//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-extended-gdbserver-m64/e0/e0b317de31ab0e99ef8d14e9f751ae7e7d16abde//xfail.table.gz>

Reply | Threaded
Open this post in threaded view
|

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

Sourceware - gdb-testers mailing list
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/2208

Author:
        Alan Modra <[hidden email]>

Commit tested:
        e0b317de31ab0e99ef8d14e9f751ae7e7d16abde

Subject of commit:
        rx: memory allocation without checking for NULL return

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

*** Diff to previous build ***
==============================================
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: 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-native-gdbserver-m64/e0/e0b317de31ab0e99ef8d14e9f751ae7e7d16abde//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/e0/e0b317de31ab0e99ef8d14e9f751ae7e7d16abde//xfail.table.gz>