diff --git a/valgrind-3.10.1-di_notify_mmap.patch b/valgrind-3.10.1-di_notify_mmap.patch new file mode 100644 index 0000000..f6aa612 --- /dev/null +++ b/valgrind-3.10.1-di_notify_mmap.patch @@ -0,0 +1,11 @@ +--- valgrind-3.10.1/coregrind/m_debuginfo/debuginfo.c.orig 2015-07-06 00:21:14.252904153 +0200 ++++ valgrind-3.10.1/coregrind/m_debuginfo/debuginfo.c 2015-07-06 00:22:30.975591973 +0200 +@@ -925,7 +925,7 @@ + + /* Note the details about the mapping. */ + struct _DebugInfoMapping map; +- map.avma = a; ++ map.avma = seg->start; + map.size = seg->end + 1 - seg->start; + map.foff = seg->offset; + map.rx = is_rx_map; diff --git a/valgrind.spec b/valgrind.spec index 270fc9b..2a2317d 100644 --- a/valgrind.spec +++ b/valgrind.spec @@ -104,6 +104,9 @@ Patch17: valgrind-3.10.1-cfi-redzone.patch # KDE#344499 Fix compilation for Linux kernel >= 4. Patch18: valgrind-3.10.1-kernel-4.0.patch +# KDE#349941 VG_(di_notify_mmap) might create DebugInfoMapping with wrong segment start/size +Patch19: valgrind-3.10.1-di_notify_mmap.patch + %if %{build_multilib} # Ensure glibc{,-devel} is installed for both multilib arches BuildRequires: /lib/libc.so.6 /usr/lib/libc.so /lib64/libc.so.6 /usr/lib64/libc.so @@ -220,6 +223,7 @@ Valgrind User Manual for details. %patch16 -p1 %patch17 -p1 %patch18 -p1 +%patch19 -p1 %build # We need to use the software collection compiler and binutils if available. @@ -375,6 +379,9 @@ echo ===============END TESTING=============== %endif %changelog +* Mon Jul 06 2015 Mark Wielaard +- Add valgrind-3.10.1-di_notify_mmap.patch + * Fri Jun 19 2015 Mark Wielaard - 3.10.1-12 - Add valgrind-3.10.1-kernel-4.0.patch.