Skip to content

Small timeout hangout  #127

@osogi

Description

@osogi

If you have a small timeout when running a test in the execute_test() function in the src/analyzers/collectors/perfCollector.py and src/analyzers/collectors/sshCollector.py modules. There is a chance that the binary will hang.

For perfCollector, the working process can be continued by pressing "Enter" and you will get next error message:

[-]: Some error occurred during launching '/tmp/tmp1w6xss0i/bins/test_52.c.out 0':
        Can't read value of 'missed_branches'
        Can't read value of 'cache_BPU'
        Can't read value of 'cpu_clock'
        Can't read value of 'instructions'

Reproducing:

git checkout ce69b9b31e54ce4a43f49a5d10614ed483f284d5  # last commit
echo '{"profiler": "perf", "out_dir": "/tmp/del_me", "timeout": 0.01, "max_test_launches": 50}' > /tmp/err.json
python cha.py analyze --config-file /tmp/err.json --test-dir tests-benchmark-example --log-level=DEBUG

You may need to run the analyze several times to get the error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions