]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
* fixed two bugs reported by the IBM BEAM checker:
authorJulian Seward <jseward@acm.org>
Wed, 11 May 2011 22:54:57 +0000 (22:54 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 11 May 2011 22:54:57 +0000 (22:54 +0000)
     fd leak in vgdb.c
     break missing in valgrind-low-s390x.c

* use option --vgdb=full for the tests mcsigpass.vgtest and mcsignopass.vgtest
  This might improve these tests on ppc32/debian 6.0

* added a paragraph in gdbserver_tests/README_DEVELOPPERS to indicate
  how to report problems about failing gdbserver tests.

(bug 214909 comment 71, Philippe Waroquiers, philippe.waroquiers@skynet.be)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11748

coregrind/m_gdbserver/valgrind-low-s390x.c
coregrind/vgdb.c
gdbserver_tests/README_DEVELOPPERS
gdbserver_tests/mcsignopass.vgtest
gdbserver_tests/mcsigpass.vgtest

index 3e6b53c1e14658514b3bffcd67219e4cd1e94130..baa3ffcd0347f7108fe9dd57db0a9cbed8eeb2d9 100644 (file)
@@ -130,7 +130,7 @@ void transfer_register (ThreadId tid, int abs_regno, void * buf,
    switch (regno) { 
    // numbers here have to match the order of regs above
    // Attention: gdb order does not match valgrind order.
-   case 0:  *mod = False; //GDBTD??? { "pswm", 0, 64 },  
+   case 0:  *mod = False; break; //GDBTD??? { "pswm", 0, 64 },  
    case 1:  VG_(transfer) (&s390x->guest_IA,  buf, dir, size, mod); break;
    case 2:  VG_(transfer) (&s390x->guest_r0,  buf, dir, size, mod); break;
    case 3:  VG_(transfer) (&s390x->guest_r1,  buf, dir, size, mod); break;
index d5cacd39067e0331c4cde2f517d68f07e906f079..7ddda2956c2fee72e3989f89a16bb00f3d00d716 100644 (file)
@@ -1822,6 +1822,7 @@ void report_pid (int pid)
          if (cmdline[i] == 0)
             cmdline[i] = ' ';
       cmdline[sz] = 0;
+      close (fd);
    }  
    fprintf(stderr, "use --pid=%d for %s\n", pid, cmdline);
    fflush(stderr);
index e9c5e11aebd251617faf9800f8fa5c7318d3543f..bde8f9c8b936f9cef310fcbe274802a081203351 100644 (file)
@@ -34,6 +34,24 @@ Some tests implies to have a vgdb "ptrace invoker" capable.
 The prerequisite are established during make regtest (using marker files).
 Each test verifies the prerequisite using the prereq: line.
 
+In case of failing tests
+------------------------
+gdbserver tests are often failing due to (irrelevant) differences
+depending on the gdb version and/or the OS version.
+Such irrelevant differences have to be filtered by gdbserver_tests/filter_gdb.
+
+To report such problems, the best is to re-run the gdbserver tests
+the following way:
+   perl tests/vg_regtest --keep-unfiltered gdbserver_tests
+
+Then file a bug in bugzilla, giving the following information:
+  output of
+    gdbserver_tests/gdb --version
+    uname -a
+    cat /etc/issue
+    valgrind --version (and/or svn version)
+  and attach a tar file containing all the *.out files in gdbserver_tests
+    directory
 
 Naming conventions:
 -------------------
index 6568c6295681106a9df5cad4c400b3aafcf89403..257ca58e8e53f531d97b04d6a8ab2970e37f7d8f 100644 (file)
@@ -5,7 +5,7 @@
 #      (i.e. SIGBUG, Test 3). Other tests will be succesful, because signals
 #      are eventually passed.
 prog: ../none/tests/faultstatus
-vgopts: --tool=memcheck --vgdb=yes --vgdb-error=0 --vgdb-prefix=./vgdb-prefix-mcsignopass
+vgopts: --tool=memcheck --vgdb=full --vgdb-error=0 --vgdb-prefix=./vgdb-prefix-mcsignopass
 stderr_filter: filter_memcheck_monitor
 progB: gdb
 argsB: --quiet -l 60 --nx ../none/tests/faultstatus
index 6cb0e3f8226ecbd87d7f340f0a5d4a4e319cf5be..a5501583e8cae3e01e75560a633b9c2455ee79b1 100644 (file)
@@ -1,6 +1,6 @@
 # test the signal handling, when signals are passed to the Valgrind guest.
 prog: ../none/tests/faultstatus
-vgopts: --tool=memcheck --vgdb=yes --vgdb-error=0 --vgdb-prefix=./vgdb-prefix-mcsigpass
+vgopts: --tool=memcheck --vgdb=full --vgdb-error=0 --vgdb-prefix=./vgdb-prefix-mcsigpass
 stderr_filter: filter_memcheck_monitor
 progB: gdb
 argsB: --quiet -l 60 --nx ../none/tests/faultstatus