Compiling a program using perfstat API.



I have a C program that uses perfstat API. It is compiled on a
PowerPC_POWER4 and runs on both POWER4 and POWER5 machines. Both on
version 5.3. The POWER4 machine is dedicated capped partition. The
POWER5 machine is uncapped shared SMT. The C compiler is only on the
POWER4.

I have compiled the program on the POWER4 and have run it on the
POWER5 without issues in the past. I recently recompiled the program,
but when it runs on the POWER5 the program dumps due to segmentation
fault in malloc which is called from perfstat_partition_total. (It
runs fine on the POWER4.) The source code has not changed so I'm
suspecting the problem might be with perfstat API. I need help
figuring out what the problem is and determining a solution. I'm only
slightly familiar with AIX so I'm not sure what and where to look.
.