https://bugs.kde.org/show_bug.cgi?id=459709

            Bug ID: 459709
           Summary: heaptrack_print: Incompatible massif file format
    Classification: Applications
           Product: Heaptrack
           Version: 1.4.0
          Platform: OpenSUSE
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: general
          Assignee: m...@milianw.de
          Reporter: croemh...@outlook.com
  Target Milestone: ---

The generated massif file from heaptrack_print via its --print-massif / -M
option generates a malformed file. The reason is that the first three lines,
which usually are these:

desc: (none)
cmd: ./myprogram.o
time_unit: i

are placed at the end of the generated file.

STEPS TO REPRODUCE
1. Use heaptrack to generate data dump (e.g.: heaptrack.myprogram.12345.gz)
2. heaptrack_print heaptrack.myprogram.12345.gz -M massif.out.12345
3. Open massif.out.12345 in massif-visualizer tool

OBSERVED RESULT
Red box containing error message: 

Could not parse file file:///home/user/directory/massif.out.12345.
Parse error in line 2:
#-----------

If you open massif-visualizer via terminal and open the same file, the terminal
outputs:

invalid line 1 "#-----------"

EXPECTED RESULT
massif-visualizer should open file normally and display the graph.
By moving the last three lines to the top, the file opens normally.

SOFTWARE/OS VERSIONS
Running heaptrack 1.4.80 on OpenSUSE server (CLI only, self-built)
Running massif-visualizer 0.7 on Ubuntu 20.04.1

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to