score-p / otf2_cli_profile

Generate profiling information based on an OTF2 trace file recorded by Score-P
BSD 3-Clause "New" or "Revised" License
10 stars 2 forks source link

otf-profiler fails in mappingOTF2MetricMode #26

Open jgphpc opened 4 years ago

jgphpc commented 4 years ago

Hi,

I can't quite understand exactly why but while this is running fine:

otf-profiler -i scorep-1metric/traces.otf2 --json

i will get a segfault with:

otf-profiler -i scorep-2metrics/traces.otf2 --json

The only difference is in the way i set SCOREP_METRIC_RUSAGE:

SCOREP_METRIC_RUSAGE='ru_maxrss'
SCOREP_METRIC_RUSAGE='ru_maxrss,ru_utime'

The traces are in ftp://ftp.cscs.ch/out/jgp/hpc/otf2/eff.tgz The debugger shows that there may be an issue in:

main (otf-profiler.cpp:108)
  OTF2Reader::readDefinitions (OTF2Reader.cpp:1059)
    OTF2_Reader_ReadAllGlobalDefinitions
      OTF2_GlobalDefReader_ReadDefinitions
        otf2_global_def_reader_read
          otf2_global_def_reader_read_metric_member
            OTF2Reader::handle_def_metrics (OTF2Reader.cpp:109)
              mappingOTF2MetricMode (OTF2Reader.cpp:78)

and the error message is:

Memory error detected in mappingOTF2MetricMode ​(OTF2Reader.cpp:78)​:
null pointer dereference or unaligned memory access.

Do you get the same issue with scorep-2metrics ?

jgphpc commented 4 years ago

My PE is: gcc/8.3, OTF2/2.2, CubeLib/4.4.4

dhinf commented 4 years ago

i will look into it next week.