summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc/valgrind-suppress.txt
blob: 69b8b2aaa98d646c4643c2cbfe810e31e0d27ca5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# The error variable in end() is stuff.cc never gets freed since
# exit() is called before end() returns.  See above suppression for more
# notes
{
   end_error_leak
   Memcheck:Leak
   obj:*
   obj:*libstdc++*
   obj:*libstdc++*
   obj:*libstdc++*
   obj:*libstdc++*
   obj:*libstdc++*
   fun:*end*
}

# An SDL "conditional jump or move" error, with the unitialized value
# being supplied by Nvidia's OpenGL library.
{
   tiles_SDL_Nvida_GL_cond
   Memcheck:Cond
   fun:X11_SetKeyboardState
   fun:X11_DispatchEvent
   obj:*
}

# ncurses keep some structures even after endwin() to 1. make flipping back
# faster, and 2. to allow some functions to work even then.  It's an O(1)
# leak and thus harmless.
{
   ncurses_alloc_once_leak
   Memcheck:Leak
   fun:calloc
   fun:_nc_makenew
   fun:newwin
   fun:_nc_setupscreen
   fun:newterm
   fun:initscr
}

{
   ncurses_alloc_once_leak2
   Memcheck:Leak
   fun:calloc
   fun:newwin
   fun:_nc_setupscreen
   fun:newterm
   fun:initscr
}

# glibc has an O(1) memory leak in getpwuid() that's harmless since the
# memory is reused in subsequent calls.  Such kind of memory is supposed
# to be freed when ran under memory debuggers, but it currently isn't.
# Bug entry: http://sourceware.org/bugzilla/show_bug.cgi?id=2314
{
   libc_pwuid_once_leak
   Memcheck:Leak
   fun:malloc
   fun:nss_parse_service_list
   fun:__nss_database_lookup
   obj:*
   obj:*
   fun:getpwuid_r@@GLIBC_2.2.5
   fun:getpwuid
}

# Zlib examines the data past the end of the buffer by design to reduce
# the number of boundary checks.  This doesn't have any external effects.
# http://www.zlib.net/zlib_faq.html#faq36
# "Even though the code was correct, versions 1.2.4 and later was changed
# to not stimulate these checkers."
{
   zlib_lookhead_optimization
   Memcheck:Cond
   fun:longest_match
   fun:deflate_slow
   fun:deflate
}