#1 pfmon -e L2_LOCK:0x4F free() problem

open
nobody
None
5
2008-08-05
2008-08-05
Anonymous
No

FYI,

Hello there,

using
$ pfmon -e L2_LOCK:0x4F ls
brings forward a GLIBC error message (see below).
It goes away when using L2_LOCK:MESI:SELF instead of 0x4F (which should be the same I guess). It is more an annoyance but requires extra filtering when gathering data from scripts.
Tested on pfmon 3.4 with the patched 2.6.25-13 kernel.org on a Q6700.

Similar errors occur also with L2_REJECT_BUSQ and L2_IFETCH.

*** glibc detected *** pfmon: free(): invalid next size (fast): 0x000000000119a8a0 ***
======= Backtrace: =========
/lib64/libc.so.6[0x3880a6e890]
/lib64/libc.so.6(cfree+0x8c)[0x3880a71fac]
pfmon[0x4180b1]
pfmon[0x418377]
pfmon[0x40fc61]
pfmon[0x41161e]
pfmon[0x412790]
pfmon[0x413907]
pfmon[0x4051e3]
pfmon[0x4081ad]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x3880a1d8a4]
pfmon[0x403769]
======= Memory map: ========
00400000-00430000 r-xp 00000000 08:07 24756320 /opt-aaa/pfmon-3.4/bin/pfmon
0062f000-00632000 rw-p 0002f000 08:07 24756320 /opt-aaa/pfmon-3.4/bin/pfmon
00632000-00648000 rw-p 00632000 00:00 0
0116f000-016ca000 rw-p 0116f000 00:00 0 [heap]
30ff400000-30ff482000 r-xp 00000000 08:07 14123302 /lib64/libm-2.5.so
30ff482000-30ff681000 ---p 00082000 08:07 14123302 /lib64/libm-2.5.so
30ff681000-30ff682000 r--p 00081000 08:07 14123302 /lib64/libm-2.5.so
30ff682000-30ff683000 rw-p 00082000 08:07 14123302 /lib64/libm-2.5.so
3103000000-310300d000 r-xp 00000000 08:07 14123087 /lib64/libgcc_s-4.1.1-20070105.so.1
310300d000-310320c000 ---p 0000d000 08:07 14123087 /lib64/libgcc_s-4.1.1-20070105.so.1
310320c000-310320d000 rw-p 0000c000 08:07 14123087 /lib64/libgcc_s-4.1.1-20070105.so.1
3104000000-3104007000 r-xp 00000000 08:07 14123306 /lib64/librt-2.5.so
3104007000-3104207000 ---p 00007000 08:07 14123306 /lib64/librt-2.5.so
3104207000-3104208000 r--p 00007000 08:07 14123306 /lib64/librt-2.5.so
3104208000-3104209000 rw-p 00008000 08:07 14123306 /lib64/librt-2.5.so
387f400000-387f41a000 r-xp 00000000 08:07 14123081 /lib64/ld-linux-x86-64.so.2
387f619000-387f61a000 r--p 00019000 08:07 14123081 /lib64/ld-linux-x86-64.so.2
387f61a000-387f61b000 rw-p 0001a000 08:07 14123081 /lib64/ld-linux-x86-64.so.2
3880a00000-3880b44000 r-xp 00000000 08:07 14123094 /lib64/libc.so.6
3880b44000-3880d44000 ---p 00144000 08:07 14123094 /lib64/libc.so.6
3880d44000-3880d48000 r--p 00144000 08:07 14123094 /lib64/libc.so.6
3880d48000-3880d49000 rw-p 00148000 08:07 14123094 /lib64/libc.so.6
3880d49000-3880d4e000 rw-p 3880d49000 00:00 0
3881a00000-3881a15000 r-xp 00000000 08:07 14123141 /lib64/libpthread.so.0
3881a15000-3881c14000 ---p 00015000 08:07 14123141 /lib64/libpthread.so.0
3881c14000-3881c15000 r--p 00014000 08:07 14123141 /lib64/libpthread.so.0
3881c15000-3881c16000 rw-p 00015000 08:07 14123141 /lib64/libpthread.so.0
3881c16000-3881c1a000 rw-p 3881c16000 00:00 0
7f74cc000000-7f74cc021000 rw-p 7f74cc000000 00:00 0
7f74cc021000-7f74d0000000 ---p 7f74cc021000 00:00 0
7f74d1608000-7f74d1722000 rw-p 7f74d1608000 00:00 0
7f74d183c000-7f74d183f000 rw-p 7f74d183c000 00:00 0
7f74d183f000-7f74d1868000 r-xp 00000000 08:07 24756249 /opt-aaa/pfmon-3.4/lib/libpfm.so.3.4.0
7f74d1868000-7f74d1a67000 ---p 00029000 08:07 24756249 /opt-aaa/pfmon-3.4/lib/libpfm.so.3.4.0
7f74d1a67000-7f74d1a96000 rw-p 00028000 08:07 24756249 /opt-aaa/pfmon-3.4/lib/libpfm.so.3.4.0
7f74d1a96000-7f74d1a97000 rw-p 7f74d1a96000 00:00 0
7f74d1ac7000-7f74d1aca000 rw-p 7f74d1ac7000 00:00 0
7fffd9ab5000-7fffd9aca000 rw-p 7ffffffea000 00:00 0 [stack]
7fffd9bfe000-7fffd9c00000 r-xp 7fffd9bfe000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Aborted

Discussion