[Insight-developers] how to attack memory leaks
Kent Williams
norman-k-williams at uiowa.edu
Wed Jun 15 12:08:07 EDT 2005
Here's my suppression file; it just deals with GL libraries, which --
yes -- are a problem. I think there may be a few 'valgrind foolers' in
ITK itself, so it wouldn't be a bad thing to have them suppressed...
Mathieu Malaterre wrote:
>>
>> 4. As good as valgrind is, it can be fooled, and regularly reports
>> leaks where I suspect none is occuring. Something as basic as an
>> assignement to a std::string can generate a leak report.
>>
>
> I believe this is answered in the FAQ of valgrind. You have to use
> GLIBCPP_NEW = 1 (or GLIBCXX_NEW=1 if you use gcc > 3.4.0)
>
> As for the suppressions file, could you share it with us ? We do it in
> ParaView, therefore people could have at least a good start, and would
> only had a few. As a side note the only annoying suppression I had to
> deal with is the one generated by the libGL.so (ATI or NVidia) since
> they are doing some crazy things.
>
> So what about a : Insight/CMake/ITKValgrindSuppressions.supp ?
>
> HTH
> Mathieu
>
-------------- next part --------------
{
BUG-0
Addrcheck,Memcheck:Param
ioctl(generic)
fun:ioctl
obj:/usr/lib/libGL.so.1.0.7167
}
{
BUG-9
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-9-X
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:_nv000027gl
}
{
BUG-10
Addrcheck,Memcheck:Param
ioctl(generic)
fun:ioctl
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-11
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-12
Addrcheck,Memcheck:Param
ioctl(generic)
fun:ioctl
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-13
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-14
Addrcheck,Memcheck:Param
ioctl(generic)
fun:ioctl
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-15
Addrcheck,Memcheck:Param
ioctl(generic)
fun:ioctl
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-16
Addrcheck,Memcheck:Param
ioctl(generic)
fun:ioctl
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-17
Addrcheck,Memcheck:Param
ioctl(generic)
fun:ioctl
obj:/usr/lib/libGL.so.1.0.7167
}
{
BUG-18
Addrcheck,Memcheck:Param
ioctl(generic)
fun:ioctl
obj:/usr/lib/libGL.so.1.0.7167
}
{
BUG-19
Addrcheck,Memcheck:Param
ioctl(generic)
fun:ioctl
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-20
Addrcheck,Memcheck:Param
ioctl(generic)
fun:ioctl
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-21
Addrcheck,Memcheck:Param
ioctl(generic)
fun:ioctl
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-22
Addrcheck,Memcheck:Param
ioctl(generic)
fun:ioctl
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-23
Addrcheck,Memcheck:Param
ioctl(generic)
fun:ioctl
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-24
Addrcheck,Memcheck:Param
ioctl(generic)
fun:ioctl
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-25
Addrcheck,Memcheck:Param
ioctl(generic)
fun:ioctl
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-26
Addrcheck,Memcheck:Param
ioctl(generic)
fun:ioctl
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-27
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-28
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-29
Addrcheck,Memcheck:Param
ioctl(generic)
fun:ioctl
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-30
Addrcheck,Memcheck:Cond
fun:_nv000026gl
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-31
Addrcheck,Memcheck:Cond
fun:_nv000026gl
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-32
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-33
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-34
Addrcheck,Memcheck:Value4
fun:memset
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-35
Addrcheck,Memcheck:Value4
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-36
Addrcheck,Memcheck:Param
ioctl(generic)
fun:ioctl
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-37
Addrcheck,Memcheck:Param
ioctl(generic)
fun:ioctl
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-38
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-39
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-40
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-41
Addrcheck,Memcheck:Param
ioctl(generic)
fun:ioctl
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-42
Addrcheck,Memcheck:Cond
fun:_nv000027gl
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-43
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-44
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-45
Addrcheck,Memcheck:Param
ioctl(generic)
fun:ioctl
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-46
Addrcheck,Memcheck:Cond
fun:_nv000027gl
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-47
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-48
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-49
Addrcheck,Memcheck:Param
ioctl(generic)
fun:ioctl
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-50
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-51
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-52
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-53
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-54
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-55
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-56
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-57
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-58
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-59
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-60
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-61
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-62
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-63
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-64
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-65
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-66
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-67
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-68
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-69
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-70
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-71
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-72
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-73
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-74
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-75
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-76
Addrcheck,Memcheck:Value4
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-77
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-78
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-79
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
fun:*
}
{
BUG-80
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-81
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-82
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-83
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-84
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-85
Addrcheck,Memcheck:Param
ioctl(generic)
fun:ioctl
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-86
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-87
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-88
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-89
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-90
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-91
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-92
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-93
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-94
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-95
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-96
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-97
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-98
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-99
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-100
Addrcheck,Memcheck:Value4
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-101
Addrcheck,Memcheck:Value4
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-102
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-103
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-104
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-105
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-106
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-107
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-108
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-109
Addrcheck,Memcheck:Param
ioctl(generic)
fun:ioctl
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-110
Addrcheck,Memcheck:Cond
fun:strcat
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-111
Addrcheck,Memcheck:Cond
fun:strcat
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-112
Addrcheck,Memcheck:Cond
fun:strcat
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-113
Addrcheck,Memcheck:Cond
fun:strcat
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-114
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-115
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-116
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-117
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-118
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-119
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-120
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-121
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-122
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-123
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-124
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-125
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-126
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-127
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-128
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-129
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-130
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-131
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-132
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-133
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-134
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-135
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-136
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-137
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-138
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-139
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-140
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-141
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-142
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-143
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-144
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-145
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-146
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-147
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-148
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-149
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-150
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-151
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-152
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-153
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-154
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-155
Addrcheck,Memcheck:Cond
obj:/usr/lib/libGLcore.so.1.0.7167
}
{
BUG-156
Addrcheck,Memcheck:Cond
fun:_nv000848gl
fun:*
}
{
BUG-157
Addrcheck,Memcheck:Cond
fun:_nv000848gl
fun:*
}
{
BUG-158
Addrcheck,Memcheck:Cond
fun:_nv000848gl
fun:*
}
{
BUG-159
Addrcheck,Memcheck:Cond
fun:_nv000848gl
fun:*
}
{
BUG-160
Addrcheck,Memcheck:Param
fun:_X11TransWrite
fun:*
}
More information about the Insight-developers
mailing list