Hi Nick,
These comments were helpful. Our CentOS shippes with 3.2.1 which produces
this suppression:
{
<insert a suppression name here>
Memcheck:Leak
fun:_vgrZU_libstdcZpZpZa__Znwm
fun:_ZN7log4cpp8Appender12_addAppenderEPS0_
fun:_ZN7log4cpp8AppenderC2ERKSs
fun:_ZN7log4cpp16AppenderSkeletonC2ERKSs
fun:_ZN7log4cpp14LayoutAppenderC2ERKSs
fun:_ZN7log4cpp15OstreamAppenderC1ERKSsPSo
fun:_ZN4mi3c6Logger17setDefaultLoggingESs
fun:main
}
[ble...@mi3bld04 MI3CLibNightly-linux86-gcc]$ /usr/bin/valgrind --version
valgrind-3.2.1
But I installed 3.4.1 in /usr/local
{
<insert a suppression name here>
Memcheck:Leak
fun:_Znwm
fun:_ZN7log4cpp8Appender12_addAppenderEPS0_
fun:_ZN7log4cpp8AppenderC2ERKSs
fun:_ZN7log4cpp16AppenderSkeletonC2ERKSs
fun:_ZN7log4cpp14LayoutAppenderC2ERKSs
fun:_ZN7log4cpp15OstreamAppenderC1ERKSsPSo
fun:_ZN4mi3c6Logger17setDefaultLoggingESs
fun:main
}
[ble...@mi3bld04 MI3CLibNightly-linux86-gcc]$ /usr/local/bin/valgrind
--version
valgrind-3.4.1
Notice the difference:
3.2.1: fun:_vgrZU_libstdcZpZpZa__Znwm
3.4.1: fun:_Znwm
Using the 3.4.1 suppression in 3.2.1 worked just fine. I don't know if this
is a bug, but it's not something I would have figured out on my own... In
any case, I have a fix and am happy.
Thanks much,
-dan
On 6/3/09 7:20 PM, "Nicholas Nethercote" <[email protected]> wrote:
> On Thu, Jun 4, 2009 at 1:27 AM, Tom Hughes <[email protected]> wrote:
>> Daniel Blezek wrote:
>>
>>> Perhaps someone can give me some help...
>>>
>>> I¹d like to suppress a ³still reachable² warning, but perhaps I don¹t
>>> understand Valgrind¹s behavior.
>>
>> I don't think you can - it's not really a warning, it's more of an
>> informational message that you only get if you ask for it.
>
> No, still reachable warnings can be suppressed. I just tried it with
> a trivial C example and it worked, so it looks like Daniel's
> suppression isn't matching for some reason.
>
> Daniel, try removing lines one at a time from the bottom of the
> suppression (starting at "fun:main" and see if you can get it to match
> that way. It's possible there's a problem with the suppression
> matching.
>
> Nick
--
Daniel Blezek, PhD
Medical Imaging Informatics Innovation Center
P 127 or (77) 8 8886
T 507 538 8886
E [email protected]
Mayo Clinic
200 First St. S.W.
Harwick SL-44
Rochester, MN 55905
mayoclinic.org
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users