1# Pass this file to Valgrind with "--suppressions=tools/valgrind.supp" 2 3# Intentional thread / memory leak in DM and nanbench. 4{ 5 nanobench_and_dm_keepalive_thread_leak 6 Memcheck:Leak 7 match-leak-kinds: possible,definite 8 ... 9 fun:_ZN8SkThreadC1EPFvPvES0_ 10 ... 11 fun:main 12 ... 13} 14 15# Third party lib, driver issues. 16{ 17 ati_driver_bug_1 18 Memcheck:Param 19 ioctl(generic) 20 fun:ioctl 21 ... 22 obj:/usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so 23} 24{ 25 ati_driver_bug_2 26 Memcheck:Cond 27 obj:/usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so 28} 29{ 30 ati_driver_bug_3 31 Memcheck:Addr8 32 ... 33 obj:/usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so 34} 35{ 36 ati_driver_bug_4 37 Memcheck:Addr4 38 ... 39 obj:/usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so 40} 41{ 42 ati_driver_bug_5 43 Memcheck:Addr2 44 ... 45 obj:/usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so 46} 47{ 48 ati_driver_bug_6 49 Memcheck:Addr1 50 ... 51 obj:/usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so 52} 53{ 54 ati_driver_bug_7 55 Memcheck:Leak 56 fun:malloc 57 obj:/usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so 58} 59{ 60 driver_bug_8 61 Memcheck:Overlap 62 fun:strcpy 63 obj:/usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so 64} 65{ 66 ati_driver_bug_9 67 Memcheck:Leak 68 fun:calloc 69 obj:/usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so 70} 71{ 72 ati_driver_bug_10 73 Memcheck:Leak 74 fun:malloc 75 obj:/usr/lib/fglrx/fglrx-libGL.so.1.2 76} 77{ 78 nv_driver_bug_1 79 Memcheck:Param 80 write(buf) 81 ... 82 obj:*/libnvidia-glcore.so* 83} 84{ 85 nv_driver_bug_2 86 Memcheck:Cond 87 ... 88 obj:*/libnvidia-glcore.so* 89} 90{ 91 nv_driver_bug_3 92 Memcheck:Leak 93 fun:calloc 94 obj:/usr/lib*/libGL.so* 95} 96{ 97 nv_driver_bug_4 98 Memcheck:Param 99 sendmsg(msg.msg_iov[0]) 100 fun:sendmsg 101 obj:*/libGLX_nvidia.so* 102} 103{ 104 #Fixed by FontConfig 2.9.0 105 #http://cgit.freedesktop.org/fontconfig/commit/?id=1c475d5c8cb265ac939d6b9e097666e300162511 106 font_config_bug_1 107 Memcheck:Addr4 108 fun:FcConfigFileExists 109} 110{ 111 #https://bugs.freedesktop.org/show_bug.cgi?id=8215 112 #https://bugs.freedesktop.org/show_bug.cgi?id=8428 113 #FcPattern uses 'intptr_t elts_offset' instead of 'FcPatternEltPtr elts', 114 #which confuses valgrind. 115 font_config_bug_2 116 Memcheck:Leak 117 fun:*alloc 118 ... 119 fun:Fc*Add* 120} 121{ 122 #Same root cause as font_config_bug_2. 123 #The 'leak' here is a copy of rule values, as opposed to new values. 124 font_config_bug_3 125 Memcheck:Leak 126 fun:*alloc 127 ... 128 fun:FcConfigValues 129 fun:FcConfigSubstituteWithPat 130 fun:FcFontRenderPrepare 131} 132{ 133 #Same root cause as font_config_bug_2. 134 #The 'leak' is copies of font or pattern values into returned pattern values. 135 font_config_bug_4 136 Memcheck:Leak 137 fun:*alloc 138 ... 139 fun:FcValue* 140 fun:FcFontRenderPrepare 141} 142{ 143 font_config_bug_5 144 Memcheck:Leak 145 fun:malloc 146 obj:*/libfontconfig.so.1.8.0 147 fun:FcConfigSubstituteWithPat 148} 149{ 150 font_config_bug_6 151 Memcheck:Leak 152 fun:*alloc 153 ... 154 obj:*/libfontconfig.so.1.8.0 155 fun:FcFont* 156} 157{ 158 zlib_bug_1 159 Memcheck:Cond 160 fun:inflateReset2 161 fun:inflateInit2_ 162 fun:png_create_read_struct_2 163 fun:png_create_read_struct 164} 165{ 166 zlib_bug_2 167 Memcheck:Cond 168 fun:inflateReset2 169 fun:inflateInit2_ 170 fun:_ZN12_GLOBAL__N_17doFlateEbP8SkStreamP9SkWStream 171 fun:_ZN7SkFlate7InflateEP8SkStreamP9SkWStream 172} 173 174# Why is it OK to suppress this? 175{ 176 SkRTConfRegistry_bug_1 177 Memcheck:Leak 178 fun:_Znwm 179 fun:_ZN16SkRTConfRegistry12registerConfEP12SkRTConfBase 180} 181 182# The gpu_issue_* suppressions suppress issues that cannot be reproduced locally. These appear to be 183# due to valgrind not knowing about memory mapped by the ATI driver via glMapBuffer. 184{ 185 gpu_issue_1 186 Memcheck:Addr2 187 fun:_ZNK5GrGpu18getQuadIndexBufferEv 188} 189{ 190 gpu_issue_2 191 Memcheck:Addr2 192 fun:_ZN24GrAAHairLinePathRenderer6CreateEP9GrContext 193} 194{ 195 gpu_issue_3 196 Memcheck:Addr2 197 fun:_ZN16GrAARectRenderer21aaFillRectIndexBufferEP5GrGpu 198} 199{ 200 gpu_issue_4 201 Memcheck:Addr8 202 fun:_ZN24GrAAHairLinePathRenderer14createLineGeomERK6SkPathP12GrDrawTargetRK8SkTArrayI7SkPointLb1EEiPNS3_19AutoReleaseGeometryEP6SkRect 203} 204{ 205 gpu_issue_5 206 Memcheck:Addr8 207 fun:_ZN21GrDefaultPathRenderer10createGeomERK6SkPathRK11SkStrokeRecfP12GrDrawTargetP15GrPrimitiveTypePiSA_PNS6_19AutoReleaseGeometryE 208} 209{ 210 gpu_issue_6 211 Memcheck:Addr8 212 fun:_ZN22GrAAConvexPathRenderer10onDrawPathERK11SkStrokeRecP12GrDrawTargetb 213} 214{ 215 gpu_issue_7 216 Memcheck:Addr4 217 fun:_ZNK7SkPoint24distanceToLineBetweenSqdERKS_S1_PNS_4SideE 218 fun:_ZN22GrAAConvexPathRenderer10onDrawPathERK11SkStrokeRecP12GrDrawTargetb 219} 220{ 221 gpu_issue_8 222 Memcheck:Addr4 223 fun:_ZN24GrAAHairLinePathRenderer14createLineGeomERK6SkPathP12GrDrawTargetRK8SkTArrayI7SkPointLb1EEiPNS3_19AutoReleaseGeometryEP6SkRect 224} 225{ 226 gpu_issue_9 227 Memcheck:Addr2 228 fun:_ZN21GrDefaultPathRenderer10createGeomERK6SkPathRK11SkStrokeRecfP12GrDrawTargetP15GrPrimitiveTypePiSA_PNS6_19AutoReleaseGeometryE 229} 230{ 231 gpu_issue_10 232 Memcheck:Addr4 233 fun:_ZN22GrAAConvexPathRenderer10onDrawPathERK11SkStrokeRecP12GrDrawTargetb 234} 235{ 236 gpu_issue_11 237 Memcheck:Addr2 238 fun:_ZN22GrAAConvexPathRenderer10onDrawPathERK11SkStrokeRecP12GrDrawTargetb 239} 240{ 241 gpu_issue_12 242 Memcheck:Addr8 243 fun:_ZN22GrAAConvexPathRenderer10onDrawPathERK6SkPathRK11SkStrokeRecP12GrDrawTargetb 244} 245{ 246 gpu_issue_13 247 Memcheck:Addr4 248 fun:_ZNK7SkPoint24distanceToLineBetweenSqdERKS_S1_PNS_4SideE 249 fun:_ZN22GrAAConvexPathRenderer10onDrawPathERK6SkPathRK11SkStrokeRecP12GrDrawTargetb 250} 251{ 252 gpu_issue_14 253 Memcheck:Addr4 254 fun:_ZN22GrAAConvexPathRenderer10onDrawPathERK6SkPathRK11SkStrokeRecP12GrDrawTargetb 255} 256{ 257 gpu_issue_15 258 Memcheck:Addr2 259 fun:_ZN22GrAAConvexPathRenderer10onDrawPathERK6SkPathRK11SkStrokeRecP12GrDrawTargetb 260} 261{ 262 libjpeg_turbo_bug4550_1 263 Memcheck:Cond 264 fun:_Z26S32A_Opaque_BlitRow32_SSE4PjPKjij 265 fun:_ZN14Sprite_D32_S328blitRectEiiii 266} 267{ 268 libjpeg_turbo_bug4550_2 269 Memcheck:Cond 270 fun:_ZL15S32A_D565_BlendPtPKjijii 271 fun:_ZN26Sprite_D16_S32_BlitRowProc8blitRectEiiii 272} 273{ 274 libjpeg_turbo_bug4550_3 275 Memcheck:Cond 276 fun:_ZN12_GLOBAL__N_120ConvolveHorizontallyILb0EEEvPKhRK21SkConvolutionFilter1DPh 277 fun:_Z14BGRAConvolve2DPKhibRK21SkConvolutionFilter1DS3_iPhRK18SkConvolutionProcsb 278} 279