Bug 1729401 - Upgrade valgrind to 3.17.0. r=firefox-build-system-reviewers,mhentges

Differential Revision: https://phabricator.services.mozilla.com/D124736
This commit is contained in:
Mike Hommey 2021-09-08 00:34:54 +00:00
Родитель 51fb9213d5
Коммит 3f7b2e461d
2 изменённых файлов: 2 добавлений и 48 удалений

Просмотреть файл

@ -1,45 +0,0 @@
diff -Nru valgrind-3.16.1/debian/changelog valgrind-3.16.1/debian/changelog
--- valgrind-3.16.1/debian/changelog 2020-06-29 02:49:18.000000000 +0900
+++ valgrind-3.16.1/debian/changelog 2021-02-25 08:11:31.000000000 +0900
@@ -1,3 +1,9 @@
+valgrind (1:3.16.1-1.deb11moz1) bullseye; urgency=medium
+
+ * coregrind/m_syswrap/syswrap-linux.c: Apply patch from https://bugs.kde.org/show_bug.cgi?id=433641
+
+ -- Mike Hommey <glandium@mozilla.com> Thu, 25 Feb 2021 08:11:31 +0900
+
valgrind (1:3.16.1-1) unstable; urgency=medium
* New upstream release
diff -Nru valgrind-3.16.1/debian/patches/15_fstatat_workaround.patch valgrind-3.16.1/debian/patches/15_fstatat_workaround.patch
--- valgrind-3.16.1/debian/patches/15_fstatat_workaround.patch 1970-01-01 09:00:00.000000000 +0900
+++ valgrind-3.16.1/debian/patches/15_fstatat_workaround.patch 2021-02-25 08:11:31.000000000 +0900
@@ -0,0 +1,20 @@
+Index: valgrind-3.16.1/coregrind/m_syswrap/syswrap-linux.c
+===================================================================
+--- valgrind-3.16.1.orig/coregrind/m_syswrap/syswrap-linux.c
++++ valgrind-3.16.1/coregrind/m_syswrap/syswrap-linux.c
+@@ -5815,8 +5815,13 @@ PRE(sys_newfstatat)
+ SARG1, ARG2, (HChar*)(Addr)ARG2, ARG3);
+ PRE_REG_READ3(long, "fstatat",
+ int, dfd, char *, file_name, struct stat *, buf);
+- PRE_MEM_RASCIIZ( "fstatat(file_name)", ARG2 );
+- PRE_MEM_WRITE( "fstatat(buf)", ARG3, sizeof(struct vki_stat) );
++ // See the comment about Rust in PRE(sys_statx). When glibc does support statx
++ // rust uses that instead of the system call, but glibc's statx is implemented
++ // in terms of fstatat, so the filename being NULL is transferred here.
++ if (ARG2 != 0) {
++ PRE_MEM_RASCIIZ( "fstatat(file_name)", ARG2 );
++ PRE_MEM_WRITE( "fstatat(buf)", ARG3, sizeof(struct vki_stat) );
++ }
+ }
+
+ POST(sys_newfstatat)
diff -Nru valgrind-3.16.1/debian/patches/series valgrind-3.16.1/debian/patches/series
--- valgrind-3.16.1/debian/patches/series 2020-06-29 02:49:18.000000000 +0900
+++ valgrind-3.16.1/debian/patches/series 2021-02-25 08:11:31.000000000 +0900
@@ -8,3 +8,4 @@
12_drop-MPI-1-support.patch
13_fix-path-to-vgdb.patch
14_fix-debuginfo-section-duplicates-a-section-in-the-main-ELF-file.patch
+15_fstatat_workaround.patch

Просмотреть файл

@ -56,9 +56,8 @@ deb11-valgrind:
run:
dist: bullseye
dsc:
url: http://snapshot.debian.org/archive/debian/20200628T204444Z/pool/main/v/valgrind/valgrind_3.16.1-1.dsc
sha256: bd9b1bf5454da3d93d2dfab8de44df0c3aebe0371022c4f00aef6850aa0b4e07
patch: valgrind-bullseye.diff
url: http://snapshot.debian.org/archive/debian/20210904T143545Z/pool/main/v/valgrind/valgrind_3.17.0-1.dsc
sha256: e56ee4356fd873b402e0795610d0db7f3d14bedee3c775ded61f82647b841231
deb10-python-zstandard:
description: "python-zstandard for Debian buster"