rpms/valgrind/devel valgrind-3.5.0-cachegrind-improvements.patch, NONE, 1.1 valgrind-3.5.0-glibc-2.10.1.patch, NONE, 1.1 valgrind-3.5.0-openat.patch, NONE, 1.1 .cvsignore, 1.15, 1.16 sources, 1.15, 1.16 valgrind.spec, 1.66, 1.67 valgrind-3.4.1-cachegrind-improvements.patch, 1.1, NONE valgrind-3.4.1-dwarf-cfa-remember-state1.patch, 1.1, NONE valgrind-3.4.1-dwarf-cfa-remember-state2.patch, 1.1, NONE valgrind-3.4.1-dwarf3.patch, 1.2, NONE valgrind-3.4.1-futex.patch, 1.1, NONE valgrind-3.4.1-glibc-2.10.1.patch, 1.1, NONE valgrind-3.4.1-openat.patch, 1.1, NONE valgrind-3.4.1-x86_64-ldso-strlen.patch, 1.1, NONE

Jakub Jelinek jakub at fedoraproject.org
Fri Aug 21 14:48:26 UTC 2009


Author: jakub

Update of /cvs/pkgs/rpms/valgrind/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv30639

Modified Files:
	.cvsignore sources valgrind.spec 
Added Files:
	valgrind-3.5.0-cachegrind-improvements.patch 
	valgrind-3.5.0-glibc-2.10.1.patch valgrind-3.5.0-openat.patch 
Removed Files:
	valgrind-3.4.1-cachegrind-improvements.patch 
	valgrind-3.4.1-dwarf-cfa-remember-state1.patch 
	valgrind-3.4.1-dwarf-cfa-remember-state2.patch 
	valgrind-3.4.1-dwarf3.patch valgrind-3.4.1-futex.patch 
	valgrind-3.4.1-glibc-2.10.1.patch valgrind-3.4.1-openat.patch 
	valgrind-3.4.1-x86_64-ldso-strlen.patch 
Log Message:
3.5.0-1

valgrind-3.5.0-cachegrind-improvements.patch:
 cg_sim.c |   27 +++++++++++++--------------
 1 file changed, 13 insertions(+), 14 deletions(-)

--- NEW FILE valgrind-3.5.0-cachegrind-improvements.patch ---
--- valgrind-3.4.0/cachegrind/cg_sim.c.jj	2007-01-08 02:43:10.000000000 -0500
+++ valgrind-3.4.0/cachegrind/cg_sim.c	2007-02-13 07:15:46.000000000 -0500
@@ -42,27 +42,30 @@ typedef struct {
    Int          size;                   /* bytes */
    Int          assoc;
    Int          line_size;              /* bytes */
-   Int          sets;
    Int          sets_min_1;
    Int          line_size_bits;
    Int          tag_shift;
-   Char         desc_line[128];
    UWord*       tags;
-} cache_t2;
+   Char         desc_line[128];
+} cache_t2
+#ifdef __GNUC__
+__attribute__ ((aligned (8 * sizeof (Int))))
+#endif
+;
 
 /* By this point, the size/assoc/line_size has been checked. */
 static void cachesim_initcache(cache_t config, cache_t2* c)
 {
-   Int i;
+   Int sets;
 
    c->size      = config.size;
    c->assoc     = config.assoc;
    c->line_size = config.line_size;
 
-   c->sets           = (c->size / c->line_size) / c->assoc;
-   c->sets_min_1     = c->sets - 1;
+   sets              = (c->size / c->line_size) / c->assoc;
+   c->sets_min_1     = sets - 1;
    c->line_size_bits = VG_(log2)(c->line_size);
-   c->tag_shift      = c->line_size_bits + VG_(log2)(c->sets);
+   c->tag_shift      = c->line_size_bits + VG_(log2)(sets);
 
    if (c->assoc == 1) {
       VG_(sprintf)(c->desc_line, "%d B, %d B, direct-mapped", 
@@ -72,11 +75,8 @@ static void cachesim_initcache(cache_t c
                                  c->size, c->line_size, c->assoc);
    }
 
-   c->tags = VG_(malloc)("cg.sim.ci.1",
-                         sizeof(UWord) * c->sets * c->assoc);
-
-   for (i = 0; i < c->sets * c->assoc; i++)
-      c->tags[i] = 0;
+   c->tags = VG_(calloc)("cg.sim.ci.1",
+                         sizeof(UWord), sets * c->assoc);
 }
 
 /* This is done as a macro rather than by passing in the cache_t2 as an 
@@ -138,8 +138,7 @@ void cachesim_##L##_doref(Addr a, UChar 
       return;                                                               \
                                                                             \
    /* Second case: word straddles two lines. */                             \
-   /* Nb: this is a fast way of doing ((set1+1) % L.sets) */                \
-   } else if (((set1 + 1) & (L.sets-1)) == set2) {                          \
+   } else if (((set1 + 1) & (L.sets_min_1)) == set2) {                      \
       set = &(L.tags[set1 * L.assoc]);                                      \
       if (tag == set[0]) {                                                  \
          goto block2;                                                       \

valgrind-3.5.0-glibc-2.10.1.patch:
 glibc-2.X.supp.in |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

--- NEW FILE valgrind-3.5.0-glibc-2.10.1.patch ---
--- valgrind-3.5.0/glibc-2.X.supp.in.jj	2009-08-19 09:37:48.000000000 -0400
+++ valgrind-3.5.0/glibc-2.X.supp.in	2009-08-21 09:03:55.168206000 -0400
@@ -168,9 +168,9 @@
    Memcheck:Param
    socketcall.sendto(msg)
    fun:__sendto_nocancel
-   obj:/*libc- at GLIBC_VERSION@.so
-   obj:/*libc- at GLIBC_VERSION@.so
-   obj:/*libc- at GLIBC_VERSION@.so
+   obj:/*libc- at GLIBC_VERSION@*.so
+   obj:/*libc- at GLIBC_VERSION@*.so
+   obj:/*libc- at GLIBC_VERSION@*.so
 }
 {
    glibc24-64bit-padding-1c
@@ -180,7 +180,7 @@
    fun:__nscd_get_map_ref
    fun:nscd_get*_r
    fun:*nscd*
-   obj:/*libc- at GLIBC_VERSION@.so
+   obj:/*libc- at GLIBC_VERSION@*.so
 }
 
 
@@ -199,18 +199,18 @@
    Memcheck:Param
    socketcall.sendto(msg)
    fun:send
-   obj:/*libc- at GLIBC_VERSION@.so
-   obj:/*libc- at GLIBC_VERSION@.so
-   obj:/*libc- at GLIBC_VERSION@.so
+   obj:/*libc- at GLIBC_VERSION@*.so
+   obj:/*libc- at GLIBC_VERSION@*.so
+   obj:/*libc- at GLIBC_VERSION@*.so
 }
 {
    X11-64bit-padding-4b
    Memcheck:Param
    socketcall.send(msg)
    fun:send
-   obj:/*libc- at GLIBC_VERSION@.so
-   obj:/*libc- at GLIBC_VERSION@.so
-   obj:/*libc- at GLIBC_VERSION@.so
+   obj:/*libc- at GLIBC_VERSION@*.so
+   obj:/*libc- at GLIBC_VERSION@*.so
+   obj:/*libc- at GLIBC_VERSION@*.so
 }
 
 ##----------------------------------------------------------------------##

valgrind-3.5.0-openat.patch:
 syswrap-linux.c |   11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

--- NEW FILE valgrind-3.5.0-openat.patch ---
Testcase:
#define _GNU_SOURCE
#include <fcntl.h>
#include <unistd.h>

int
main (void)
{
  int dfd = open ("/tmp", O_RDONLY);
  int fd1 = openat (dfd, "abc", O_RDONLY);
  int fd2 = openat (0x12345678, "/tmp/abc", O_RDONLY);
  int fd3 = openat (AT_FDCWD, "abc", O_RDONLY);
  /* This is the only one that should warn.  */
  int fd4 = openat (0x12345678, "abc", O_RDONLY);
  return 0;
}

--- valgrind-3.3.0/coregrind/m_syswrap/syswrap-linux.c.jj	2007-12-11 00:18:43.000000000 +0100
+++ valgrind-3.3.0/coregrind/m_syswrap/syswrap-linux.c	2008-03-03 11:35:15.000000000 +0100
@@ -2455,10 +2455,15 @@ PRE(sys_openat)
                     int, dfd, const char *, filename, int, flags);
    }
 
-   if (ARG1 != VKI_AT_FDCWD && !ML_(fd_allowed)(ARG1, "openat", tid, False))
+   PRE_MEM_RASCIIZ( "openat(filename)", ARG2 );
+
+   /* For absolute filenames, dfd is ignored.  If dfd is AT_FDCWD,
+      filename is relative to cwd.  */
+   if (ML_(safe_to_deref)( (void*)ARG2, 1 )
+       && *(Char *)ARG2 != '/'
+       && ARG1 != VKI_AT_FDCWD
+       && !ML_(fd_allowed)(ARG1, "openat", tid, False))
       SET_STATUS_Failure( VKI_EBADF );
-   else
-      PRE_MEM_RASCIIZ( "openat(filename)", ARG2 );
 
    /* Handle the case where the open is of /proc/self/cmdline or
       /proc/<pid>/cmdline, and just give it a copy of the fd for the


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/valgrind/devel/.cvsignore,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -p -r1.15 -r1.16
--- .cvsignore	9 Mar 2009 12:50:44 -0000	1.15
+++ .cvsignore	21 Aug 2009 14:48:25 -0000	1.16
@@ -1 +1 @@
-valgrind-3.4.1.tar.bz2
+valgrind-3.5.0.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/valgrind/devel/sources,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -p -r1.15 -r1.16
--- sources	9 Mar 2009 12:50:44 -0000	1.15
+++ sources	21 Aug 2009 14:48:25 -0000	1.16
@@ -1 +1 @@
-b5f039dd2271aaf9ae570ab4116f87c7  valgrind-3.4.1.tar.bz2
+f03522a4687cf76c676c9494fcc0a517  valgrind-3.5.0.tar.bz2


Index: valgrind.spec
===================================================================
RCS file: /cvs/pkgs/rpms/valgrind/devel/valgrind.spec,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -p -r1.66 -r1.67
--- valgrind.spec	28 Jul 2009 10:47:08 -0000	1.66
+++ valgrind.spec	21 Aug 2009 14:48:26 -0000	1.67
@@ -1,17 +1,12 @@
 Summary: Tool for finding memory management bugs in programs
 Name: valgrind
-Version: 3.4.1
-Release: 7
+Version: 3.5.0
+Release: 1
 Epoch: 1
 Source0: http://www.valgrind.org/downloads/valgrind-%{version}.tar.bz2
-Patch1: valgrind-3.4.1-cachegrind-improvements.patch
-Patch2: valgrind-3.4.1-openat.patch
-Patch3: valgrind-3.4.1-x86_64-ldso-strlen.patch
-Patch4: valgrind-3.4.1-glibc-2.10.1.patch
-Patch5: valgrind-3.4.1-dwarf3.patch
-Patch6: valgrind-3.4.1-dwarf-cfa-remember-state1.patch
-Patch7: valgrind-3.4.1-dwarf-cfa-remember-state2.patch
-Patch8: valgrind-3.4.1-futex.patch
+Patch1: valgrind-3.5.0-cachegrind-improvements.patch
+Patch2: valgrind-3.5.0-openat.patch
+Patch3: valgrind-3.5.0-glibc-2.10.1.patch
 License: GPLv2
 URL: http://www.valgrind.org/
 Group: Development/Debuggers
@@ -68,11 +63,6 @@ or valgrind plugins.
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
-%patch4 -p1
-%patch5 -p1
-%patch6 -p1
-%patch7 -p1
-%patch8 -p1
 
 %build
 %ifarch x86_64 ppc64
@@ -112,6 +102,9 @@ for i in `find . -type f \( -name *-amd6
   esac
 done
 
+# XXX pth_cancel2 hangs on x86_64
+echo 'int main (void) { return 0; }' > none/tests/pth_cancel2.c
+
 # test
 make check || :
 echo ===============TESTING===================
@@ -127,12 +120,17 @@ mv $RPM_BUILD_ROOT%{_datadir}/doc/valgri
 rm -f docs.installed/*.ps
 
 %if "%{valsecarch}" != ""
+pushd $RPM_BUILD_ROOT%{_libdir}/valgrind/
+rm -f *-%{valsecarch}-* || :
+for i in *-%{valarch}-*; do
+  j=`echo $i | sed 's/-%{valarch}-/-%{valsecarch}-/'`
 %ifarch ppc
-ln -sf ../../lib64/valgrind/%{valsecarch}-linux $RPM_BUILD_ROOT%{_libdir}/valgrind/%{valsecarch}-linux
+  ln -sf ../../lib64/valgrind/$j $j
 %else
-rm -rf $RPM_BUILD_ROOT%{_libdir}/valgrind/%{valsecarch}-linux || :
-ln -sf ../../lib/valgrind/%{valsecarch}-linux $RPM_BUILD_ROOT%{_libdir}/valgrind/%{valsecarch}-linux
+  ln -sf ../../lib/valgrind/$j $j
 %endif
+done
+popd
 %endif
 
 rm -f $RPM_BUILD_ROOT%{_libdir}/valgrind/*.supp.in
@@ -142,27 +140,24 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root)
-%doc ACKNOWLEDGEMENTS COPYING NEWS README_*
+%doc COPYING NEWS README_*
 %doc docs.installed/html docs.installed/*.pdf
 %{_bindir}/*
 %dir %{_libdir}/valgrind
-%dir %{_libdir}/valgrind/%{valarch}-linux
-%if "%{valsecarch}" != ""
-%{_libdir}/valgrind/%{valsecarch}-linux
-%endif
-%{_libdir}/valgrind/%{valarch}-linux/*[^a]
-%{_libdir}/valgrind/*.supp
-%{_mandir}/man1/valgrind*
+%{_libdir}/valgrind/*[^a]
+%{_mandir}/man1/*
 
 %files devel
 %defattr(-,root,root)
 %{_includedir}/valgrind
 %dir %{_libdir}/valgrind
-%dir %{_libdir}/valgrind/%{valarch}-linux
-%{_libdir}/valgrind/%{valarch}-linux/*.a
+%{_libdir}/valgrind/*.a
 %{_libdir}/pkgconfig/*
 
 %changelog
+* Fri Aug 21 2009 Jakub Jelinek <jakub at redhat.com> 3.5.0-1
+- update to 3.5.0
+
 * Tue Jul 28 2009 Jakub Jelinek <jakub at redhat.com> 3.4.1-7
 - handle futex ops newly added during last 4 years (#512121)
 


--- valgrind-3.4.1-cachegrind-improvements.patch DELETED ---


--- valgrind-3.4.1-dwarf-cfa-remember-state1.patch DELETED ---


--- valgrind-3.4.1-dwarf-cfa-remember-state2.patch DELETED ---


--- valgrind-3.4.1-dwarf3.patch DELETED ---


--- valgrind-3.4.1-futex.patch DELETED ---


--- valgrind-3.4.1-glibc-2.10.1.patch DELETED ---


--- valgrind-3.4.1-openat.patch DELETED ---


--- valgrind-3.4.1-x86_64-ldso-strlen.patch DELETED ---




More information about the fedora-extras-commits mailing list