2014-11-11 14:26 GMT+01:00 Thomas D. <whi...@whissi.de>:

> Hi,
>
> can't you write something like
>
> > # libdbi
> > {
> >    Leak from dbi/dlopen
> >    Memcheck:Leak
> >    fun:calloc
> >    obj:/lib/libdl-*.so
> >    fun:dlopen
> >    fun:dbi_initialize
> > }
>
> which should match multiple libdbi versions?
>
>
I gave it a try, doesn't seem to be so simple.

I let valgrind generate the suppressions to get started. This is for
Ubuntu14.04:

{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: definite
   fun:calloc
   obj:*
   obj:*
   obj:*
   obj:*
   obj:*
   obj:*
   fun:dbi_conn_connect
   fun:initConn
   fun:beginTransaction
   fun:actionPrepare
   fun:processMsgMain
}


This is for CentOS 7:


{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: definite
   fun:malloc
   obj:*
   obj:*
   obj:*
   obj:*
   obj:*
   fun:dbi_conn_connect
   fun:initConn
   fun:beginTransaction
   fun:actionPrepare
   fun:processMsgMain
   fun:doSubmitToActionQ
}
{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: definite
   fun:malloc
   obj:*
   obj:*
   obj:*
   obj:*
   obj:*
   obj:*
   fun:dbi_conn_connect
   fun:initConn
   fun:beginTransaction
   fun:actionPrepare
   fun:processMsgMain
}{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: definite
   fun:calloc
   obj:*
   obj:*
   obj:*
   obj:*
   obj:*
   obj:*
   fun:dbi_conn_connect
   fun:initConn
   fun:beginTransaction
   fun:actionPrepare
   fun:processMsgMain
}
{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: definite
   fun:malloc
   obj:*
   obj:*
   obj:*
   fun:pthread_once
   obj:*
   obj:*
   obj:*
   obj:*
   fun:dbi_conn_connect
   fun:initConn
   fun:beginTransaction
}

[I missed one violation here, but that doesn't really matter for the
context].

So it's quite different. I now thought I check if I misunderstood the
format and I can skip some of the contents. So on CentOS I changed

{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: definite
   fun:malloc
   obj:*
   obj:*
   obj:*
   fun:pthread_once
   obj:*
   obj:*
   obj:*
   obj:*
   fun:dbi_conn_connect
   fun:initConn
   fun:beginTransaction
}

to

{
   <insert_a_suppression_name_here>
   Memcheck:Leak
   match-leak-kinds: definite
   fun:malloc
   obj:*
   obj:*
   obj:*
   fun:pthread_once
   obj:*
   fun:dbi_conn_connect
   fun:initConn
   fun:beginTransaction
}

... and the error shows up again.

Anything that I should change?

Rainer


> -Thomas
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com/professional-services/
> What's up with rsyslog? Follow https://twitter.com/rgerhards
> NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad
> of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you
> DON'T LIKE THAT.
>
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to