Home | History | Annotate | Download | only in memcheck
      1 # There are three kinds of suppressions in this file:
      2 # 1. Third party stuff we have no control over.
      3 #
      4 # 2. Intentional unit test errors, stuff that is somehow a false positive
      5 # in our own code, or stuff that is so trivial it's not worth fixing.
      6 #
      7 # 3. Suppressions for real chromium bugs that are not yet fixed.
      8 # These should all be in chromium's bug tracking system.
      9 # Periodically we should sweep this file and the bug tracker clean by
     10 # running overnight and removing outdated bugs/suppressions.
     11 #-----------------------------------------------------------------------
     12 
     13 # 1. Third party stuff we have no control over.
     14 {
     15    FIXME mac kevent libevent probably needs valgrind hooks
     16    Memcheck:Param
     17    kevent(changelist)
     18    fun:kevent
     19    fun:event_base_new
     20 }
     21 {
     22    # CoreAudio leak.  See http://crbug.com/9351
     23    bug_9351
     24    Memcheck:Leak
     25    ...
     26    fun:_ZN12HALCADClient19AddPropertyListenerEmPK26AudioObjectPropertyAddressPFlmmS2_PvES3_
     27    ...
     28    fun:_ZN9HALSystem16CheckOutInstanceEv
     29    ...
     30 }
     31 {
     32    bug_18215
     33    Memcheck:Uninitialized
     34    fun:_DPSNextEvent
     35    fun:-[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
     36    fun:-[NSApplication run]
     37 }
     38 {
     39    # Also filed with Apple as rdar://7255382
     40    bug_20459b
     41    Memcheck:Leak
     42    fun:malloc_zone_malloc
     43    fun:_CFRuntimeCreateInstance
     44    fun:__CFArrayInit
     45    fun:CFArrayCreateMutableCopy
     46    ...
     47    fun:_ZN8Security12KeychainCore5Trust8evaluate*
     48 }
     49 {
     50    # See also http://openradar.appspot.com/radar?id=1169404
     51    bug_79533b
     52    Memcheck:Uninitialized
     53    ...
     54    fun:_Z*19cssm_DataAbortQuery17cssm_dl_db_handlel
     55    fun:CSSM_DL_DataAbortQuery
     56    fun:_ZN11SSDLSession14DataAbortQueryEll
     57    fun:_Z*19cssm_DataAbortQuery17cssm_dl_db_handlel
     58    fun:CSSM_DL_DataAbortQuery
     59    fun:tpDbFindIssuerCrl
     60    fun:tpVerifyCertGroupWithCrls
     61 }
     62 {
     63    # QTKit leak. See http://crbug.com/100772 and rdar://10319535.
     64    bug_100772
     65    Memcheck:Leak
     66    fun:calloc
     67    fun:QTMLCreateMutex
     68    fun:WarholCreateGlobals
     69    fun:INIT_QuickTimeLibInternal
     70    fun:pthread_once
     71    fun:INIT_QuickTimeLib
     72    fun:EnterMovies_priv
     73    fun:EnterMovies
     74    fun:TundraUnitInputFromTSFileEntry
     75    fun:TundraUnitVDIGInputEntry
     76    fun:TundraUnitCreateFromDescription
     77    fun:+[QTCaptureVDIGDevice _refreshDevices]
     78    fun:+[QTCaptureVDIGDevice devicesWithIOType:]
     79    fun:+[QTCaptureDevice devicesWithIOType:]
     80    fun:+[QTCaptureDevice inputDevices]
     81    fun:+[QTCaptureDevice inputDevicesWithMediaType:]
     82    ...
     83 }
     84 {
     85    # See http://crbug.com/385604
     86    bug_385604_a
     87    Memcheck:Leak
     88    fun:_Znw*
     89    fun:_ZNK11AEEventImpl9duplicateEv
     90    fun:AESendMessage
     91    fun:_ZL35HIToolboxLSNotificationCallbackFunc18LSNotificationCodedPKvPK7__LSASNS1_11LSSessionIDS1_
     92    fun:_ZL48LSScheduleNotificationReceiveMessageCallbackFuncP12__CFMachPortPvlS1_
     93    fun:__CFMachPortPerform
     94    fun:__CFRunLoopRun
     95    ...
     96 }
     97 # Intentional leaks in AppKit, for an OS-level cache. Only appear on the first
     98 # run of each reboot.  See also issues 105525, 257276, 340847.
     99 {
    100    bug_257276_b
    101    Memcheck:Leak
    102    fun:malloc_zone_malloc
    103    ...
    104    fun:setCursorFromBundle
    105    fun:CoreCursorSet
    106    fun:-[NSCursor set]
    107 }
    108 
    109 # 2. Intentional unit test errors, stuff that is somehow a false positive
    110 # in our own code, or stuff that is so trivial it's not worth fixing.
    111 {
    112    # Mac Sandbox test cases are registered in a global map.  This code is only
    113    # used in the unit test binary.
    114    Mac_Sandbox_Intentional_Leak1
    115    Memcheck:Leak
    116    fun:_Znw*
    117    fun:_ZN7content8internal19RegisterSandboxTestINS_*
    118    ...
    119    fun:_ZN16ImageLoaderMachO18doModInitFunctionsERKN11ImageLoader11LinkContextE
    120    fun:_ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEj
    121    fun:_ZN11ImageLoader15runInitializersERKNS_11LinkContextE
    122    fun:_ZN4dyld24initializeMainExecutableEv
    123 }
    124 {
    125    # __cxa_get_globals leaks a structure when called for the first time
    126    __cxa_get_globals one-time leak
    127    Memcheck:Leak
    128    ...
    129    fun:__cxa_get_globals
    130 }
    131 
    132 # 3. Suppressions for real chromium bugs that are not yet fixed.
    133 {
    134    bug_87629
    135    Memcheck:Leak
    136    ...
    137    fun:realloc
    138    fun:new_sem_from_pool
    139 }
    140 {
    141    bug_93932_a
    142    Memcheck:Overlap
    143    fun:memcpy
    144    fun:vp8_decode_update_thread_context
    145    fun:update_context_from_thread
    146    ...
    147    fun:ff_thread_decode_frame
    148    fun:avcodec_decode_video2
    149    fun:_ZN5media23FFmpegVideoDecodeEngine6DecodeERK13scoped_refptrINS_6BufferEEPS1_INS_10VideoFrameEE
    150    fun:_ZN5media18FFmpegVideoDecoder14DoDecodeBufferERK13scoped_refptrINS_6BufferEE
    151 }
    152 {
    153    bug_93932_b
    154    Memcheck:Overlap
    155    fun:memcpy
    156    fun:vp8_decode_update_thread_context
    157    fun:update_context_from_thread
    158    fun:frame_thread_free
    159    fun:avcodec_close
    160    ...
    161    fun:_ZN5media23FFmpegVideoDecodeEngineD0Ev
    162    fun:_ZN10scoped_ptrIN5media23FFmpegVideoDecodeEngineEE5resetEPS1_
    163    fun:_ZN5media27FFmpegVideoDecodeEngineTestD2Ev
    164    fun:_ZN5media51FFmpegVideoDecodeEngineTest_DecodeFrame_Normal_TestD0Ev
    165 }
    166 {
    167    bug_159190
    168    Memcheck:Uninitialized
    169    ...
    170    fun:_ZNK19TConcreteFontScaler15CopyGlyphBitmapEtjP6CGRectPm
    171    ...
    172    fun:_ZN9Offscreen5getCGERK19SkScalerContext_MacRK7SkGlyphtPmb
    173    fun:_ZN19SkScalerContext_Mac13generateImageERK7SkGlyph
    174 }
    175 {
    176    bug_173779
    177    Memcheck:Uninitialized
    178    ...
    179    fun:img_data_lock
    180    fun:CGSImageDataLock
    181    fun:ripc_AcquireImage
    182    fun:ripc_DrawImage*
    183    fun:CGContextDrawImage*
    184    ...
    185    fun:_ZN11CUIRenderer4DrawE6CGRectP9CGContextPK14__CFDictionaryPS5_
    186 }
    187 {
    188   bug_340726
    189   Memcheck:Leak
    190   fun:_Znw*
    191   fun:_ZN4base17LoadNativeLibrary*
    192   fun:_ZN3gfx26InitializeStaticGLBindings*
    193   fun:_ZN3gfx9GLSurface30InitializeOneOffImplementation*
    194   fun:_ZN3gfx9GLSurface24InitializeOneOffForTestsEv
    195 }
    196 {
    197    bug_380568
    198    Memcheck:Leak
    199    fun:calloc
    200    fun:_internal_class_createInstanceFromZone
    201    fun:_internal_class_createInstance
    202    fun:NSAllocateObject
    203    fun:+[NSObject(NSObject) alloc]
    204    fun:-[VideoCaptureDeviceQTKit initWithFrameReceiver:]
    205    fun:_ZN5media21VideoCaptureDeviceMac4InitENS_18VideoCaptureDevice4Name14CaptureApiTypeE
    206    fun:_ZN5media28VideoCaptureDeviceFactoryMac6CreateERKNS_18VideoCaptureDevice4NameE
    207    fun:_ZN5media45VideoCaptureDeviceTest_OpenInvalidDevice_Test8TestBodyEv
    208 }
    209 {
    210    bug_385604_b
    211    Memcheck:Leak
    212    fun:calloc
    213    fun:_ZN18hb_object_header_t6createEj
    214    fun:_ZL16hb_object_createI9hb_face_tEPT_v
    215    fun:hb_face_create_for_tables
    216    fun:_ZN3gfx12_GLOBAL__N_118CreateHarfBuzzFaceEP10SkTypeface
    217    fun:_ZN3gfx12_GLOBAL__N_118CreateHarfBuzzFontEP10SkTypefacei
    218    fun:_ZN3gfx18RenderTextHarfBuzz8ShapeRunEPNS_8internal15TextRunHarfBuzzE
    219    fun:_ZN3gfx18RenderTextHarfBuzz12EnsureLayoutEv
    220    fun:_ZN3gfx41RenderTextTest_HarfBuzz_RunDirection_Test8TestBodyEv
    221 }
    222 {
    223    bug_416957
    224    Memcheck:Leak
    225    fun:_Znw*
    226    fun:_ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIKPKN15tracked_objects6BirthsENS3_9DeathDataEEEE8allocateEmPKv
    227    fun:_ZNSt8_Rb_treeIPKN15tracked_objects6BirthsESt4pairIKS3_NS0_9DeathDataEESt10_Select1stIS7_ESt4lessIS3_ESaIS7_EE11_M_get_nodeEv
    228    fun:_ZNSt8_Rb_treeIPKN15tracked_objects6BirthsESt4pairIKS3_NS0_9DeathDataEESt10_Select1stIS7_ESt4lessIS3_ESaIS7_EE14_M_create_nodeERKS7_
    229    fun:_ZNSt8_Rb_treeIPKN15tracked_objects6BirthsESt4pairIKS3_NS0_9DeathDataEESt10_Select1stIS7_ESt4lessIS3_ESaIS7_EE9_M_insertEPSt18_Rb_tree_node_baseSF_RKS7_
    230    fun:_ZNSt8_Rb_treeIPKN15tracked_objects6BirthsESt4pairIKS3_NS0_9DeathDataEESt10_Select1stIS7_ESt4lessIS3_ESaIS7_EE16_M_insert_uniqueESt17_Rb_tree_iteratorIS7_ERKS7_
    231    fun:_ZNSt3mapIPKN15tracked_objects6BirthsENS0_9DeathDataESt4lessIS3_ESaISt4pairIKS3_S4_EEE6insertESt17_Rb_tree_iteratorIS9_ERKS9_
    232    fun:_ZNSt3mapIPKN15tracked_objects6BirthsENS0_9DeathDataESt4lessIS3_ESaISt4pairIKS3_S4_EEEixERS8_
    233    fun:_ZN15tracked_objects10ThreadData11TallyADeathERKNS_6BirthsEiRKNS_13TaskStopwatchE
    234    fun:_ZN15tracked_objects10ThreadData31TallyRunOnNamedThreadIfTrackingERKN4base12TrackingInfoERKNS_13TaskStopwatchE
    235    fun:_ZN4base5debug13TaskAnnotator7RunTaskEPKcS3_RKNS_11PendingTaskE
    236    fun:_ZN4base11MessageLoop7RunTaskERKNS_11PendingTaskE
    237    fun:_ZN4base11MessageLoop21DeferOrRunPendingTaskERKNS_11PendingTaskE
    238    fun:_ZN4base11MessageLoop6DoWorkEv
    239 }
    240 
    241