summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-10 12:49:51 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-10 12:49:51 (GMT)
commit9a37a543ac3f1208101954b3a3a3cc5bbb35349f (patch)
treeb06266eb5f0b71c2d8da0989b6a0d3ab2a511e78
parent8b1cd86d7f57723d4102a685149364672acb6b0e (diff)
Clifford Wolf:
Added little CGAL patch to allow running with valgrind Added valgind suppressions file git-svn-id: http://svn.clifford.at/openscad/trunk@259 b57f626f-c46c-0410-a088-ec61d464b74c
-rw-r--r--CGAL-Valgrind-Enable-Hack.patch16
-rw-r--r--valgrind.supp41
2 files changed, 57 insertions, 0 deletions
diff --git a/CGAL-Valgrind-Enable-Hack.patch b/CGAL-Valgrind-Enable-Hack.patch
new file mode 100644
index 0000000..90733fc
--- /dev/null
+++ b/CGAL-Valgrind-Enable-Hack.patch
@@ -0,0 +1,16 @@
+--- CGAL-3.4/include/CGAL/Interval_nt.h
++++ CGAL-3.4/include/CGAL/Interval_nt.h
+@@ -149,11 +149,13 @@
+ // The macros CGAL_IA_MUL and CGAL_IA_DIV stop constant propagation only
+ // on the second argument, so if -fno-rounding-math, the compiler optimizes
+ // the 2 negations and we get wrong rounding.
++#if 0
+ typename Interval_nt<>::Internal_protector P;
+ CGAL_assertion_msg(-CGAL_IA_MUL(-1.1, 10.1) != CGAL_IA_MUL(1.1, 10.1),
+ "Wrong rounding: did you forget the -frounding-math option if you use GCC?");
+ CGAL_assertion_msg(-CGAL_IA_DIV(-1, 10) != CGAL_IA_DIV(1, 10),
+ "Wrong rounding: did you forget the -frounding-math option if you use GCC?");
++#endif
+ }
+ };
+
diff --git a/valgrind.supp b/valgrind.supp
new file mode 100644
index 0000000..e6aaa59
--- /dev/null
+++ b/valgrind.supp
@@ -0,0 +1,41 @@
+
+{
+ Conditional jump or move depends on uninitialised value(s) in Nvidia GL driver
+ Memcheck:Cond
+ obj:/usr/lib/libGLcore.so.190.29
+}
+
+{
+ Use of uninitialised value of size 4 in Nvidia GL driver
+ Memcheck:Value4
+ obj:/usr/lib/libGLcore.so.190.29
+}
+
+{
+ <insert a suppression name here>
+ Memcheck:Addr4
+ obj:/lib/ld-2.7.so
+ obj:/lib/libc-2.7.so
+ obj:/lib/ld-2.7.so
+ obj:/lib/libc-2.7.so
+ fun:__libc_dlopen_mode
+ fun:__nss_lookup_function
+ obj:/lib/libc-2.7.so
+ fun:__nss_passwd_lookup
+ fun:getpwuid_r
+ fun:_ZL22sm_performSaveYourselfP22QSessionManagerPrivate
+ fun:_ZL23sm_saveYourselfCallbackP8_SmcConnPviiii
+ fun:_SmcProcessMessage
+}
+
+{
+ <insert a suppression name here>
+ Memcheck:Free
+ fun:free
+ obj:/lib/libc-2.7.so
+ obj:/lib/libc-2.7.so
+ fun:_vgnU_freeres
+ fun:exit
+ fun:(below main)
+}
+
contact: Jan Huwald // Impressum