Hi Mihai,
Did you install a new version of GCC to compile Flexus?
I've seen this problem before when Flexus was compiled by a version of
GCC that wasn't installed as the main compiler for the system. When the
program is run, it tries to load the wrong version of the standard
library and this results in a segfault.
The easiest way to resolve this problem is to modify the Makefile in the
stat-manager folder and add "-static" to the compilation command for
these programs. Alternately, I believe you can simply modify
LD_LIBRARY_PATH when trying to run these programs so that the proper
libraries are loaded. (If you chose this option, you should be able to
write a simple wrapper script that always sets LD_LIBRARY_PATH before
running the program.)
Regards,
Jason
On 10-03-25 9:24 AM, mihai pricopi wrote:
Hi,
After going through all the steps recommended by Flexus Getting
Started Guie I stucked at the Aggregating and Examining Sampled
Results. The sample-results script is not working. The script is:
#!/bin/bash
WD=`pwd`
SCRIPT_DIR=$WD/`dirname $0`
FLEXUS_ROOT="$SCRIPT_DIR/.."
for FILE in */exec/stats_db.out */exec/stats_db.out.gz ; do
$FLEXUS_ROOT/stat-manager/stat-collapse 100000 149999 $FILE
$FILE.selected
done
$FLEXUS_ROOT/stat-manager/stat-sample stats_db.out.gz */exec/*.selected
This is in the /flexus-test-app/ folder.
I am using:
- Simics-3.0.31,
- boost_1_33_1,
- flexus-3.0.0
After running the timing scripts I get to have the folders in
flexus-test-app/runs/ folder. I noticed that the sample-results script
is calling the stat-collapse and stat-sample scripts.
I tried to manually call stat-collapse over one data base which is
stats_db.out.gz in one of the folders. The command is:
flexus-test-app/runs/mihai-timing-25Mar10-210920/flexpoint_000$
stat-collapse 100000 149999 exec/stats_db.out.gz stats_db.out.gz.selected
When I run this the output is simple: Segmentation fault. I run
through the stats code and I noticed that when the database is loaded
by the boost classes then this error occurs.
Anyone any idea ?
Thanks