Accepting request 206037 from home:burnus:branches:devel:tools

- update to 3.9.0:
* Support for Intel AVX2 instructions.  This is available only on 64
  bit code.
* Support for POWER8 (Power ISA 2.07) instructions.
* Initial support for Intel Transactional Synchronization Extensions,
  both RTM and HLE.
* Initial support for Hardware Transactional Memory on POWER.
* Improvements in handling of vectorised code, leading to
  significantly fewer false error reports.  You need to use the flag
  --partial-loads-ok=yes to get the benefits of these changes.
* Better control over the leak checker.  It is now possible to
  specify which leak kinds (definite/indirect/possible/reachable)
  should be displayed.
* Reduced "possible leak" reports from the leak checker by the use
  of better heuristics.
* Better control of stacktrace acquisition for heap-allocated
  blocks.
* Better reporting of leak suppression usage.
* New and modified GDB server monitor features.
* New flag --sigill-diagnostics to control whether a diagnostic
  message is printed when the JIT encounters an instruction it can't
  translate.
* The maximum amount of memory that Valgrind can use on 64 bit
  targets has been increased from 32GB to 64GB.
* Additional smaller new features and many bug fixes.
- Remove obsolete raise-segnames-limit.diff,
  valgrind-glibc-2.17.patch and valgrind-glibc-2.18.patch.

OBS-URL: https://build.opensuse.org/request/show/206037
OBS-URL: https://build.opensuse.org/package/show/devel:tools/valgrind?expand=0&rev=96
This commit is contained in:
Philipp Thomas 2013-11-07 11:51:10 +00:00 committed by Git OBS Bridge
parent c63ea4e948
commit 7999429db0
8 changed files with 65 additions and 113 deletions

View File

@ -1,5 +1,6 @@
--- coregrind/m_debuginfo/debuginfo.c diff -u -r ../valgrind-3.9.0.orig/coregrind/m_debuginfo/debuginfo.c ./coregrind/m_debuginfo/debuginfo.c
+++ coregrind/m_debuginfo/debuginfo.c --- ../valgrind-3.9.0.orig/coregrind/m_debuginfo/debuginfo.c 2013-10-23 12:50:10.000000000 +0200
+++ ./coregrind/m_debuginfo/debuginfo.c 2013-11-06 20:42:17.248338211 +0100
@@ -49,6 +49,7 @@ @@ -49,6 +49,7 @@
#include "pub_core_oset.h" #include "pub_core_oset.h"
#include "pub_core_stacktrace.h" // VG_(get_StackTrace) XXX: circular dependency #include "pub_core_stacktrace.h" // VG_(get_StackTrace) XXX: circular dependency
@ -7,8 +8,8 @@
+#include "pub_core_mallocfree.h" +#include "pub_core_mallocfree.h"
#include "priv_misc.h" /* dinfo_zalloc/free */ #include "priv_misc.h" /* dinfo_zalloc/free */
#include "priv_d3basics.h" /* ML_(pp_GX) */ #include "priv_image.h"
@@ -1260,6 +1261,132 @@ @@ -1272,6 +1273,132 @@
#endif /* defined(VGO_linux) || defined(VGO_darwin) */ #endif /* defined(VGO_linux) || defined(VGO_darwin) */
@ -141,7 +142,7 @@
/*------------------------------------------------------------*/ /*------------------------------------------------------------*/
/*--- ---*/ /*--- ---*/
/*--- TOP LEVEL: QUERYING EXISTING DEBUG INFO ---*/ /*--- TOP LEVEL: QUERYING EXISTING DEBUG INFO ---*/
@@ -1418,8 +1545,19 @@ @@ -1430,8 +1557,19 @@
PtrdiffT offset; PtrdiffT offset;
search_all_symtabs ( a, &di, &sno, match_anywhere_in_sym, findText ); search_all_symtabs ( a, &di, &sno, match_anywhere_in_sym, findText );
@ -162,11 +163,12 @@
vg_assert(di->symtab[sno].pri_name); vg_assert(di->symtab[sno].pri_name);
VG_(demangle) ( do_cxx_demangling, do_z_demangling, VG_(demangle) ( do_cxx_demangling, do_z_demangling,
--- coregrind/m_scheduler/scheduler.c diff -u -r ../valgrind-3.9.0.orig/coregrind/m_scheduler/scheduler.c ./coregrind/m_scheduler/scheduler.c
+++ coregrind/m_scheduler/scheduler.c --- ../valgrind-3.9.0.orig/coregrind/m_scheduler/scheduler.c 2013-10-23 12:50:12.000000000 +0200
@@ -1873,6 +1873,16 @@ +++ ./coregrind/m_scheduler/scheduler.c 2013-11-06 20:42:17.248338211 +0100
goto my_default; @@ -1980,6 +1980,16 @@
} LibVEX_InitIRI ( (IRICB *)arg[1] );
break;
+ case VG_USERREQ__JIT_REGISTER_MAP: + case VG_USERREQ__JIT_REGISTER_MAP:
+ VG_(register_jited_code)( (Char*)arg[1], arg[2], arg[3] ); + VG_(register_jited_code)( (Char*)arg[1], arg[2], arg[3] );
@ -181,8 +183,9 @@
default: default:
my_default: my_default:
if (os_client_request(tid, arg)) { if (os_client_request(tid, arg)) {
--- coregrind/pub_core_debuginfo.h diff -u -r ../valgrind-3.9.0.orig/coregrind/pub_core_debuginfo.h ./coregrind/pub_core_debuginfo.h
+++ coregrind/pub_core_debuginfo.h --- ../valgrind-3.9.0.orig/coregrind/pub_core_debuginfo.h 2013-10-23 12:50:09.000000000 +0200
+++ ./coregrind/pub_core_debuginfo.h 2013-11-06 20:42:17.248338211 +0100
@@ -99,6 +99,12 @@ @@ -99,6 +99,12 @@
extern extern
Bool VG_(get_inst_offset_in_function)( Addr a, /*OUT*/PtrdiffT* offset ); Bool VG_(get_inst_offset_in_function)( Addr a, /*OUT*/PtrdiffT* offset );
@ -196,9 +199,10 @@
/* Use DWARF2/3 CFA information to do one step of stack unwinding. /* Use DWARF2/3 CFA information to do one step of stack unwinding.
D3UnwindRegs holds the current register values, and is D3UnwindRegs holds the current register values, and is
--- include/valgrind.h diff -u -r ../valgrind-3.9.0.orig/include/valgrind.h ./include/valgrind.h
+++ include/valgrind.h --- ../valgrind-3.9.0.orig/include/valgrind.h 2013-10-23 12:49:54.000000000 +0200
@@ -4443,6 +4443,10 @@ +++ ./include/valgrind.h 2013-11-06 20:42:17.249338211 +0100
@@ -5001,6 +5001,10 @@
/* Querying of debug info. */ /* Querying of debug info. */
VG_USERREQ__MAP_IP_TO_SRCLOC = 0x1701, VG_USERREQ__MAP_IP_TO_SRCLOC = 0x1701,
@ -209,7 +213,7 @@
/* Disable/enable error reporting level. Takes a single /* Disable/enable error reporting level. Takes a single
Word arg which is the delta to this thread's error Word arg which is the delta to this thread's error
disablement indicator. Hence 1 disables or further disablement indicator. Hence 1 disables or further
@@ -4607,6 +4611,19 @@ @@ -5168,6 +5172,19 @@
_qyy_arg1, _qyy_arg2, \ _qyy_arg1, _qyy_arg2, \
_qyy_arg3, 0) _qyy_arg3, 0)

View File

@ -1,11 +0,0 @@
--- coregrind/m_aspacemgr/aspacemgr-linux.c
+++ coregrind/m_aspacemgr/aspacemgr-linux.c
@@ -268,7 +268,7 @@
#define VG_N_SEGMENTS 5000
/* Max number of segment file names we can track. */
-#define VG_N_SEGNAMES 1000
+#define VG_N_SEGNAMES 4000
/* Max length of a segment file name. */
#define VG_MAX_SEGNAMELEN 1000

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:473be00576bed311a662b277a2bfbe97d9cca4058e68619a0e420c9fc19958db
size 7962963

3
valgrind-3.9.0.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e6af71a06bc2534541b07743e1d58dc3caf744f38205ca3e5b5a0bdf372ed6f0
size 10003156

View File

@ -1,18 +0,0 @@
Index: valgrind-3.8.1/configure.in
===================================================================
--- valgrind-3.8.1.orig/configure.in
+++ valgrind-3.8.1/configure.in
@@ -906,6 +906,13 @@ case "${GLIBC_VERSION}" in
DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
;;
+ 2.17)
+ AC_MSG_RESULT(2.17 family)
+ AC_DEFINE([GLIBC_2_17], 1, [Define to 1 if you're using glibc 2.17.x])
+ DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
+ DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
+ DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
+ ;;
darwin)
AC_MSG_RESULT(Darwin)
AC_DEFINE([DARWIN_LIBC], 1, [Define to 1 if you're using Darwin])

View File

@ -1,58 +0,0 @@
Index: valgrind-3.8.1/configure.in
===================================================================
--- valgrind-3.8.1.orig/configure.in
+++ valgrind-3.8.1/configure.in
@@ -913,6 +913,13 @@ case "${GLIBC_VERSION}" in
DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
;;
+ 2.18)
+ AC_MSG_RESULT(2.18 family)
+ AC_DEFINE([GLIBC_2_18], 1, [Define to 1 if you're using glibc 2.18.x])
+ DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}"
+ DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
+ DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}"
+ ;;
darwin)
AC_MSG_RESULT(Darwin)
AC_DEFINE([DARWIN_LIBC], 1, [Define to 1 if you're using Darwin])
Index: valgrind-3.8.1/coregrind/vgdb.c
===================================================================
--- valgrind-3.8.1.orig/coregrind/vgdb.c
+++ valgrind-3.8.1/coregrind/vgdb.c
@@ -102,7 +102,6 @@ I_die_here : (PTRACEINVOKER) architectur
#include <sys/user.h>
#if defined(VGO_linux)
# include <sys/prctl.h>
-# include <linux/ptrace.h>
#endif
#endif
@@ -696,7 +695,8 @@ static struct user user_save;
// runtime check not yet done.
// 0 : PTRACE_GETREGS runtime check has failed.
// 1 : PTRACE_GETREGS defined and runtime check ok.
-#ifdef PTRACE_GETREGS
+// <sys/ptrace.h> defines PTRACE_GETREGS as enum, check also for PT_GETREGS
+#if defined PTRACE_GETREGS || defined PT_GETREGS
static int has_working_ptrace_getregs = -1;
#endif
@@ -707,7 +707,7 @@ static
Bool getregs (int pid, void *regs, long regs_bsz)
{
DEBUG(1, "getregs regs_bsz %ld\n", regs_bsz);
-# ifdef PTRACE_GETREGS
+# if defined PTRACE_GETREGS || defined PT_GETREGS
if (has_working_ptrace_getregs) {
// Platforms having GETREGS
long res;
@@ -778,7 +778,7 @@ Bool setregs (int pid, void *regs, long
DEBUG(1, "setregs regs_bsz %ld\n", regs_bsz);
// Note : the below is checking for GETREGS, not SETREGS
// as if one is defined and working, the other one should also work.
-# ifdef PTRACE_GETREGS
+# if defined PTRACE_GETREGS || defined PT_GETREGS
if (has_working_ptrace_getregs) {
// Platforms having SETREGS
long res;

View File

@ -1,3 +1,34 @@
-------------------------------------------------------------------
Wed Nov 6 19:43:17 UTC 2013 - burnus@net-b.de
- update to 3.9.0:
* Support for Intel AVX2 instructions. This is available only on 64
bit code.
* Support for POWER8 (Power ISA 2.07) instructions.
* Initial support for Intel Transactional Synchronization Extensions,
both RTM and HLE.
* Initial support for Hardware Transactional Memory on POWER.
* Improvements in handling of vectorised code, leading to
significantly fewer false error reports. You need to use the flag
--partial-loads-ok=yes to get the benefits of these changes.
* Better control over the leak checker. It is now possible to
specify which leak kinds (definite/indirect/possible/reachable)
should be displayed.
* Reduced "possible leak" reports from the leak checker by the use
of better heuristics.
* Better control of stacktrace acquisition for heap-allocated
blocks.
* Better reporting of leak suppression usage.
* New and modified GDB server monitor features.
* New flag --sigill-diagnostics to control whether a diagnostic
message is printed when the JIT encounters an instruction it can't
translate.
* The maximum amount of memory that Valgrind can use on 64 bit
targets has been increased from 32GB to 64GB.
* Additional smaller new features and many bug fixes.
- Remove obsolete raise-segnames-limit.diff,
valgrind-glibc-2.17.patch and valgrind-glibc-2.18.patch.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Aug 13 15:13:20 UTC 2013 - schwab@suse.de Tue Aug 13 15:13:20 UTC 2013 - schwab@suse.de

View File

@ -33,15 +33,12 @@ Summary: Memory Management Debugger
License: GPL-2.0+ License: GPL-2.0+
Group: Development/Tools/Debuggers Group: Development/Tools/Debuggers
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Version: 3.8.1 Version: 3.9.0
Release: 0 Release: 0
Source0: http://valgrind.org/downloads/%{name}-%{version}.tar.bz2 Source0: http://valgrind.org/downloads/%{name}-%{version}.tar.bz2
# svn di svn://svn.valgrind.org/valgrind/tags/VALGRIND_3_5_0 svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_5_BRANCH > 3_5_BRANCH.diff # svn di svn://svn.valgrind.org/valgrind/tags/VALGRIND_3_5_0 svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_5_BRANCH > 3_5_BRANCH.diff
# svn di svn://svn.valgrind.org/vex/tags/VEX_3_5_0 svn://svn.valgrind.org/vex/branches/VEX_3_5_BRANCH > VEX_3_5_BRANCH.diff # svn di svn://svn.valgrind.org/vex/tags/VEX_3_5_0 svn://svn.valgrind.org/vex/branches/VEX_3_5_BRANCH > VEX_3_5_BRANCH.diff
Patch1: jit-register-unregister.diff Patch1: jit-register-unregister.diff
Patch2: raise-segnames-limit.diff
Patch3: valgrind-glibc-2.17.patch
Patch4: valgrind-glibc-2.18.patch
# during building the major version of glibc is built into the suppression file # during building the major version of glibc is built into the suppression file
%define glibc_main_version %(getconf GNU_LIBC_VERSION | cut -d' ' -f2 | cut -d. -f1) %define glibc_main_version %(getconf GNU_LIBC_VERSION | cut -d' ' -f2 | cut -d. -f1)
%define glibc_major_version %(getconf GNU_LIBC_VERSION | cut -d' ' -f2 | cut -d. -f2) %define glibc_major_version %(getconf GNU_LIBC_VERSION | cut -d' ' -f2 | cut -d. -f2)
@ -139,9 +136,6 @@ Authors:
cd VEX cd VEX
cd .. cd ..
%patch1 %patch1
%patch2
%patch3 -p1
%patch4 -p1
%build %build
%ifarch %arm %ifarch %arm
@ -153,7 +147,9 @@ RPM_OPT_FLAGS=${RPM_OPT_FLAGS/-mthumb/-mthumb-interwork -marm}
RPM_OPT_FLAGS="${RPM_OPT_FLAGS/-D_FORTIFY_SOURCE=2/}" RPM_OPT_FLAGS="${RPM_OPT_FLAGS/-D_FORTIFY_SOURCE=2/}"
export CFLAGS="$RPM_OPT_FLAGS" export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS" export CXXFLAGS="$RPM_OPT_FLAGS"
%if %suse_version > 1100
autoreconf -fi autoreconf -fi
%endif
export GDB=/usr/bin/gdb export GDB=/usr/bin/gdb
%configure %configure
make %{?jobs:-j%jobs} make %{?jobs:-j%jobs}
@ -251,6 +247,14 @@ cp -a README* NEWS AUTHORS COPYING COPYING.DOCS $RPM_BUILD_ROOT/%_defaultdocdir/
%_libdir/valgrind/mips-fpu.xml %_libdir/valgrind/mips-fpu.xml
%_libdir/valgrind/mips-linux-valgrind.xml %_libdir/valgrind/mips-linux-valgrind.xml
%_libdir/valgrind/mips-linux.xml %_libdir/valgrind/mips-linux.xml
%_libdir/valgrind/mips64-cp0-valgrind-s*.xml
%_libdir/valgrind/mips64-cp0.xml
%_libdir/valgrind/mips64-cpu-valgrind-s*.xml
%_libdir/valgrind/mips64-cpu.xml
%_libdir/valgrind/mips64-fpu-valgrind-s*.xml
%_libdir/valgrind/mips64-fpu.xml
%_libdir/valgrind/mips64-linux-valgrind.xml
%_libdir/valgrind/mips64-linux.xml
%_libdir/valgrind/power-core-valgrind-s*.xml %_libdir/valgrind/power-core-valgrind-s*.xml
%_libdir/valgrind/s390-acr-valgrind-s*.xml %_libdir/valgrind/s390-acr-valgrind-s*.xml
%_libdir/valgrind/s390-acr.xml %_libdir/valgrind/s390-acr.xml