Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=120f2df478a6348b009bc607ea75627c742d3ce1

commit 120f2df478a6348b009bc607ea75627c742d3ce1
Author: James Buren <r...@frugalware.org>
Date:   Mon Feb 18 21:55:17 2013 -0600

import a valgrind suppression for suppressing newt internal
memory that is never deallocated

diff --git a/new/create-rootfs b/new/create-rootfs
index a4308dc..f103445 100755
--- a/new/create-rootfs
+++ b/new/create-rootfs
@@ -32,6 +32,7 @@ pacman-g2 --root $ROOT --noprogressbar --noconfirm --config 
pacman-g2.conf -Sy b
# Install fwsetup.
install -m 0755 -o 0 -g 0 src/fwsetup $ROOT/sbin/fwsetup
install -m 0755 -o 0 -g 0 src/fwsetup-valgrind $ROOT/sbin/fwsetup-valgrind
+install -m 0644 -o 0 -g 0 src/fwsetup.supp $ROOT/usr/lib/valgrind/fwsetup.supp

# System locale.conf setup.
cat > $ROOT/etc/locale.conf << EOF
diff --git a/new/src/fwsetup-valgrind b/new/src/fwsetup-valgrind
index 2c3e64a..3f840ca 100755
--- a/new/src/fwsetup-valgrind
+++ b/new/src/fwsetup-valgrind
@@ -1,3 +1,3 @@
#!/bin/sh

-exec valgrind --log-file=/var/log/fwsetup-valgrind.log --leak-check=full 
--show-reachable=yes fwsetup
+exec valgrind --log-file=/var/log/fwsetup-valgrind.log --leak-check=full 
--show-reachable=yes --suppressions=/usr/lib/valgrind/fwsetup.supp fwsetup
diff --git a/new/src/fwsetup.supp b/new/src/fwsetup.supp
new file mode 100644
index 0000000..c1ff8a7
--- /dev/null
+++ b/new/src/fwsetup.supp
@@ -0,0 +1,22 @@
+{
+  slang initialize suppression 1
+  Memcheck:Leak
+  fun:malloc
+  fun:SLmalloc
+  fun:read_terminfo_section
+  fun:_pSLtt_tigetent
+  fun:SLtt_initialize
+  fun:SLtt_get_terminfo
+  fun:newtInit
+}
+
+{
+  slang initialize suppression 2
+  Memcheck:Leak
+  fun:malloc
+  fun:SLmalloc
+  fun:_pSLtt_tigetent
+  fun:SLtt_initialize
+  fun:SLtt_get_terminfo
+  fun:newtInit
+}
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to