Bug 201477
Summary: | perf record causes segmentation fault | ||
---|---|---|---|
Product: | Tracing/Profiling | Reporter: | Yongxin Liu (yongxin.liu) |
Component: | Perf tool | Assignee: | Arnaldo Carvalho de Melo (acme) |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | irogers, jolsa, leeadamrobert |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 4.19.0-rc8 | Subsystem: | |
Regression: | Yes | Bisected commit-id: |
Description
Yongxin Liu
2018-10-19 08:08:21 UTC
Reproduced, looking into it. From commit 0aa802a79469a86ebe143019144cd4df8ae852e4, removing the following addition in util/evsel.c resolved the bug: ``` if (perf_evsel__is_clock(evsel)) { /* * The evsel->unit points to static alias->unit * so it's ok to use static string in here. */ static const char *unit = "msec"; evsel->unit = unit; evsel->scale = 1e-6; } ``` Cheers, Adam This appears to have been fixed for a while - doesn't reproduce with a 5.10 or 5.16 perf command. |