Stephane Eranian wrote:
Phil, Will,

I took another look at your problem. There was indeed a serious
bug in libpfm.

In fact two bugs:
        - the way we sized pfmlib_regmask_t was bogus (ended up being 4 bytes 
instead of 40)
        - the kernel pmcs bitmask is bigger than that of libpfm causing buffer 
overruns in
          detect_unavail_pmcs()

I think the second bug explained the corruption you were seing.

I have updated CVS, just pull from it and the problem should go away.
As I anticipated, there were no compiler issues.

--
-Stephane

Hi Stephane,

I was able to compile the examples/self with mudflap for the older version of the libpfm examples. The output of the run definitely shows the problem with the older version of libpfm. I thought that you might be intersted in this. This was using gcc-4.1.1-9 on rawhide (fc6). The make.diff shows the changes I made to get this to work.

I tried the same on the cvs version of examples/self and I didn't see the problem.

-Will

*******
mudflap violation 1 (check/read): time=1153509877.204026 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
bounds=[0xbfb3573c,0xbfb3873b] size=12288 area=stack check=3r/1w liveness=4
alloc time=1153509877.200878 pc=0xb7e6e9dd
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
bounds=[0xbfb2bf10,0xbfb3573b] size=38956 area=stack check=3r/2w liveness=5
alloc time=1153509877.200868 pc=0xb7e6e9dd
number of nearby objects: 2
*******
mudflap violation 2 (check/write): time=1153509877.204872 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 3 (check/read): time=1153509877.205212 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 4 (check/write): time=1153509877.205541 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 5 (check/read): time=1153509877.205870 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 6 (check/write): time=1153509877.206198 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 7 (check/read): time=1153509877.206527 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 8 (check/write): time=1153509877.206923 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 9 (check/read): time=1153509877.207252 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 10 (check/write): time=1153509877.207581 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 11 (check/read): time=1153509877.207910 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 12 (check/write): time=1153509877.208239 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 13 (check/read): time=1153509877.208568 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 14 (check/write): time=1153509877.208957 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 15 (check/read): time=1153509877.209290 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 16 (check/write): time=1153509877.209619 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 17 (check/read): time=1153509877.209947 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 18 (check/write): time=1153509877.210276 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 19 (check/read): time=1153509877.210604 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 20 (check/write): time=1153509877.210933 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 21 (check/read): time=1153509877.211308 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 22 (check/write): time=1153509877.211638 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 23 (check/read): time=1153509877.211966 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 24 (check/write): time=1153509877.212295 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 25 (check/read): time=1153509877.212623 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 26 (check/write): time=1153509877.212961 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 27 (check/read): time=1153509877.213335 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 28 (check/write): time=1153509877.213665 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 29 (check/read): time=1153509877.213994 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 30 (check/write): time=1153509877.214322 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 31 (check/read): time=1153509877.214651 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 32 (check/write): time=1153509877.214979 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 33 (check/read): time=1153509877.215360 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 34 (check/write): time=1153509877.215696 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 35 (check/read): time=1153509877.216025 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 36 (check/write): time=1153509877.216354 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 37 (check/read): time=1153509877.216683 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 38 (check/write): time=1153509877.217019 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 39 (check/read): time=1153509877.217348 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 40 (check/write): time=1153509877.217724 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 41 (check/read): time=1153509877.218056 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 42 (check/write): time=1153509877.218384 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 43 (check/read): time=1153509877.218713 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 44 (check/write): time=1153509877.219041 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 45 (check/read): time=1153509877.219370 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 46 (check/write): time=1153509877.219747 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 47 (check/read): time=1153509877.220079 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 48 (check/write): time=1153509877.220408 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 49 (check/read): time=1153509877.220736 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 50 (check/write): time=1153509877.221079 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 51 (check/read): time=1153509877.221407 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 52 (check/write): time=1153509877.221736 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 53 (check/read): time=1153509877.222112 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 54 (check/write): time=1153509877.222441 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 55 (check/read): time=1153509877.222769 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 56 (check/write): time=1153509877.223098 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 57 (check/read): time=1153509877.223427 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 58 (check/write): time=1153509877.223756 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 59 (check/read): time=1153509877.224128 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 60 (check/write): time=1153509877.224459 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 61 (check/read): time=1153509877.224788 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 62 (check/write): time=1153509877.225131 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 63 (check/read): time=1153509877.225459 ptr=0xbfb35720 size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a3ae]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 64 (check/write): time=1153509877.225788 ptr=0xbfb35720 
size=32
pc=0xb7e6ef9d 
location=`/home/wcohen/rh-rpms/BUILD/libpfm-3.2-060621/examples/../include/perfmon/pfmlib.h:261
 (detect_unavail_pmcs)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self [0x804a36b]
      ./examples/self(main+0x3d7) [0x8048ec7]
Nearby object 1: checked region begins 28B before and ends 3B into
mudflap object 0x80d69c0: name=`self.c:81 (main) pc'
Nearby object 2: checked region begins 38928B into and ends 4B after
mudflap object 0x80d6888: name=`self.c:78 (main) inp'
number of nearby objects: 2
*******
mudflap violation 65 (check/read): time=1153509877.226310 ptr=0xb7d0589c size=4
pc=0xb7e6ef9d location=`self.c:217 (main)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      ./examples/self(main+0xedd) [0x80499cd]
      /lib/libc.so.6(__libc_start_main+0xdc) [0xb7d23214]
number of nearby objects: 0
*******
mudflap violation 66 (check/write): time=1153509877.226878 ptr=0xb7e3d560 
size=148
pc=0xb7e6ef9d location=`(vfprintf stream)'
      /usr/lib/libmudflap.so.0(__mf_check+0x3d) [0xb7e6ef9d]
      /usr/lib/libmudflap.so.0(__mfwrap_vfprintf+0xf5) [0xb7e75bc5]
      ./examples/self [0x8048ad7]
number of nearby objects: 0
pfm_write_pmcs error errno 22
[perfsel0=0x510079 emask=0x79 umask=0x0 os=0 usr=1 en=1 int=1 inv=0 edge=0 
cnt_mask=0] CPU_CLK_UNHALTED
[perfsel1=0x5100c0 emask=0xc0 umask=0x0 os=0 usr=1 en=1 int=1 inv=0 edge=0 
cnt_mask=0] INST_RETIRED
--- /home/wcohen/perfmon2/libpfm-3.2-060621/examples/Makefile	2006-05-15 09:40:28.000000000 -0400
+++ examples/Makefile	2006-07-21 15:22:25.000000000 -0400
@@ -39,8 +39,9 @@
 DIRS +=x86_64
 endif
 
-CFLAGS+= -pthread -D_GNU_SOURCE
-LDFLAGS+=-static 
+CFLAGS+= -pthread -D_GNU_SOURCE -fmudflap
+#LDFLAGS+=-static 
+LDFLAGS+=-lmudflap
 
 LIBS += -L$(PFMLIBDIR) -lpfm -lm
 
_______________________________________________
perfmon mailing list
[email protected]
http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/

Reply via email to