Home | History | Annotate | Download | only in main
      1 
      2 # Suppressions for Darwin 11.x / Mac OS X 10.7 Lion
      3 
      4 ##----------------------------------------------------------------------##
      5 # Memcheck
      6 ##----------------------------------------------------------------------##
      7 
      8 # Dunno where this is a real bug, or due to borked 10.7-specific syscall
      9 # wrappers.  64-bit mode; not sure if occurs in 32-bit mode. 
     10 # Anyway, for the tine being:
     11 #
     12 # Conditional jump or move depends on uninitialised value(s)
     13 #    at 0x1973E6: __mtx_droplock (in /usr/lib/system/libsystem_c.dylib)
     14 #    by 0x1976AA: pthread_mutex_unlock (in /usr/lib/system/libsystem_c.dylib)
     15 #    by 0x100B3D: unlock_node (in /usr/lib/system/libkeymgr.dylib)
     16 {
     17    OSX107:__mtx_droplock
     18    Memcheck:Cond
     19    fun:__mtx_droplock
     20    fun:pthread_mutex_unlock
     21    fun:unlock_node
     22 }
     23 
     24 # Conditional jump or move depends on uninitialised value(s)
     25 #    at 0x2EB883: ??? (in /usr/lib/system/libxpc.dylib)
     26 #    by 0x237C6: ??? (in /usr/lib/libSystem.B.dylib)
     27 #    by 0x8FE1115A: ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) (in /usr/lib/dyld)
     28 {
     29    <insert_a_suppression_name_here>
     30    Memcheck:Cond
     31    obj:/usr/lib/system/libxpc.dylib
     32    obj:/usr/lib/libSystem.B.dylib
     33    fun:_ZN16ImageLoaderMachO18doModInitFunctionsERKN11ImageLoader11LinkContextE
     34 }
     35 
     36 # ZLib stuff.  How come this wasn't necessary in 10.6 ?
     37 {
     38    OSX107:zlib-C
     39    Memcheck:Cond
     40    obj:/usr/lib/libz.*dylib
     41    obj:/usr/lib/libz.*dylib
     42 }
     43 {
     44    OSX107:zlib-8
     45    Memcheck:Value8
     46    obj:/usr/lib/libz.*dylib
     47    obj:/usr/lib/libz.*dylib
     48 }
     49 
     50 # Really a bug?  I don't know.
     51 # Conditional jump or move depends on uninitialised value(s)
     52 #    at 0x3A322FE: __mtx_droplock (in /usr/lib/system/libsystem_c.dylib)
     53 #    by 0x3A326AA: pthread_mutex_unlock (in /usr/lib/system/libsystem_c.dylib)
     54 #    by 0x26382: load_images (in /usr/lib/libobjc.A.dylib)
     55 {
     56    OSX107:blah
     57    Memcheck:Cond
     58    fun:__mtx_droplock
     59    fun:pthread_mutex_unlock
     60 }
     61 
     62 {
     63    OSX107:blah
     64    Memcheck:Cond
     65    fun:pthread_mutex_lock
     66 }
     67 
     68 ################
     69 # More OSX 10.7.2 supps from startup of Firefox, for reports
     70 # that look like they are in the OSX system libraries
     71 
     72 # Conditional jump or move depends on uninitialised value(s)
     73 #    at 0x65ADC41: TParsingContext::BuildMacEncTable()
     74 #    by 0x65AD98B: TParsingContext::GetEncHash(char const*)
     75 #  Uninitialised value was created by a heap allocation
     76 #    at 0xC743: malloc (vg_replace_malloc.c:266)
     77 #    by 0x65ADADA: TParsingContext::BuildMacEncTable()
     78 {
     79    OSX107:more1
     80    Memcheck:Cond
     81    fun:*TParsingContext16BuildMacEncTable*
     82    fun:*TParsingContext10GetEncHash*
     83 }
     84 
     85 # Conditional jump or move depends on uninitialised value(s)
     86 #    at 0x49ABC48: CGColorSpaceAdjustColor
     87 #    by 0x4A9AEE8: CGGradientCreateWithColorComponents
     88 #  Uninitialised value was created by a heap allocation
     89 #    at 0xC743: malloc (vg_replace_malloc.c:266)
     90 #    by 0x4A9AEC4: CGGradientCreateWithColorComponents
     91 #    by 0x4A9AC49: CGGradientCreateWithColors
     92 {
     93    OSX107:more2
     94    Memcheck:Cond
     95    fun:CGColorSpaceAdjustColor
     96    fun:CGGradientCreateWithColorComponents
     97 }
     98 
     99 
    100 # Conditional jump or move depends on uninitialised value(s)
    101 #    at 0x2119CCA8: BitSetNextSetBit
    102 #    by 0x211A4BA5: BuildInterferenceSets
    103 #  Uninitialised value was created by a heap allocation
    104 #    at 0xC743: malloc (vg_replace_malloc.c:266)
    105 #    by 0x2119CB98: BitSetNew
    106 #    by 0x2119D06F: BuildGenKill
    107 {
    108    OSX107:more3
    109    Memcheck:Cond
    110    fun:BitSetNextSetBit
    111    fun:BuildInterferenceSets
    112 }
    113 
    114 # and similar
    115 {
    116    OSX107:more4
    117    Memcheck:Cond
    118    fun:BitSetNextSetBit
    119    fun:RegistersReInterfere
    120 }
    121 
    122 
    123 # Conditional jump or move depends on uninitialised value(s)
    124 #    at 0x33E4160: CUIRenderer::CreateImage
    125 #    by 0x33C14A4: CUIRenderer::DrawMenuBar
    126 #  Uninitialised value was created by a stack allocation
    127 #    at 0x33C12FC: CUIRenderer::DrawMenuBar
    128 {
    129    OSX107:more5
    130    Memcheck:Cond
    131    fun:*CUIRenderer*CreateImage*
    132    fun:*CUIRenderer*DrawMenu*
    133 }
    134 
    135 # and similar
    136 {
    137    OSX107:more6
    138    Memcheck:Cond
    139    fun:floor$fenv_access_off
    140    fun:*CUIRenderer*CreateImage*
    141    fun:*CUIRenderer*DrawMenu*
    142 }
    143 
    144 # This appears a lot, and the origins seem either missing or
    145 # from system libs.
    146 # Use of uninitialised value of size 8
    147 #    at 0x39CC164: aes_encrypt_xmm_no_save
    148 {
    149    OSX107:more7
    150    Memcheck:Value8
    151    fun:aes_encrypt_xmm_no_save
    152 }
    153 
    154 
    155 # Conditional jump or move depends on uninitialised value(s)
    156 #    at 0xD6D193: -[NSPersistentUIManager writeWindowSnapshot:length:...
    157 #    by 0xD71A03: __-[NSPersistentUIManager _updateSnapshotForWindowN...
    158 {
    159    OSX107:more8
    160    Memcheck:Cond
    161    fun:-[NSPersistentUIManager?writeWindowSnapshot*
    162    fun:__-[NSPersistentUIManager?_updateSnapshotForWindowNumber*
    163 }
    164 
    165 
    166 ##########################################################################
    167 ### The ones below are from darwin10.supp (for Snow Leopard).  I don't
    168 ### know whether they are still necessary.
    169 
    170 # afaict this is legit.  Might be caused by setenv("VAR=")
    171 # where the value string is empty (not sure)
    172 {
    173    macos-Cond-7
    174    Memcheck:Cond
    175    fun:__setenv
    176 }
    177 
    178 # From Jesse Ruderman.
    179 #{
    180 #   Mac OS X 10.6.4. rdar://8145289. "new[]" paired with "delete" in the DesktopServicesPriv framework.
    181 #   Memcheck:Free
    182 #   fun:_ZdlPv
    183 #   fun:_ZN5TChar18RemovePtrReferenceEv
    184 # }
    185 
    186 # From Jesse Ruderman.
    187 #{
    188 #   Mac OS X 10.6.4. rdar://8145318. Uninitialized memory from HIMenuBarView::MeasureAppMenus is used in HIMenuBarView::SetAdjustTextTitleBoundsAtIndex.
    189 #   Memcheck:Cond
    190 #   fun:_ZN13HIMenuBarView31SetAdjustTextTitleBoundsAtIndexEih
    191 #   fun:_ZN13HIMenuBarView15MeasureAppMenusEv
    192 #}
    193 
    194 #{
    195 #   TFontFeatures::TFontFeatures(CGFont*) (in CoreText.framework)
    196 #   Memcheck:Cond
    197 #   fun:_ZN13TFontFeaturesC2EP6CGFont
    198 #   fun:_ZNK9TBaseFont12CopyFeaturesEv
    199 #}
    200 
    201 # See https://bugs.kde.org/show_bug.cgi?id=188572 about this;  it's
    202 # unavoidable due to BSD setenv() semantics.
    203 {
    204    macos-__setenv-leak-see-our-bug-188572
    205    Memcheck:Leak
    206    fun:malloc_zone_malloc
    207    fun:__setenv
    208 }
    209 
    210 #{
    211 #   libSystem-keymgr-leak-at-exit
    212 #   Memcheck:Leak
    213 #   fun:malloc
    214 #   fun:get_or_create_key_element
    215 #   fun:_keymgr_get_and_lock_processwide_ptr_2
    216 #   fun:__keymgr_initializer
    217 #   fun:libSystem_initializer
    218 #}
    219 
    220 # From Gary Kwong
    221 {
    222    macos-malloc_set_zone_name-see-our-bug-307557
    223    Memcheck:Leak
    224    fun:malloc_zone_malloc
    225    ...
    226    fun:malloc_set_zone_name
    227    ...
    228    fun:init__zone0
    229 }
    230