-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chrash in hotspot in handling perfparser output #578
Comments
It seems that is handled in other places: if (type < 0) {
qCWarning(LOG_PERFPARSER) << "Unexpected attribute id:" << sampleCost.attributeId << "Only know about"
<< attributeIdsToCostIds.size() << "attributes so far";
return;
} So I'll do something similar. |
@the8472 please check the appimage from https://github.com/KDAB/hotspot/actions/runs/7291612961 - but I'd guess that fixes the crash. |
It does |
This let me figure out what the issue was with |
if you can reproduce the crash and the perf recording is not huge - feel free to upload perf.data.gz (less than 50MB) here and I may be able to have another look. |
It's several GB in size. Also it's a whole-system profile, I'd rather not share that. |
When using this flag, it is most reasonable to limit the trigger of the record to some seconds and record with a small frequency.
|
I'm rerunning my steps from #394 (comment) only modifying the record command:
perf record --call-graph dwarf -F97 -e "{cycles,instructions}:S" ./x test ui --stage 1 --force-rerun
perf.data.gz
It crashes both
hotspot-v1.4.1-263-ga8d1440-x86_64.AppImage
andhotspot-v1.3.0-277-g2bcd36d-x86_64.AppImage
with a segfaultOriginally posted by @the8472 in #394 (comment)
I can reproduce the crash on the gitpod environment but get a
instead, so I'm having a look at analyzing that next
Checking with GDB that's the backtrace:
the reason seems to be that the QPERFSTREAM that hotspot reads from hotspot-perparser has unexpected content.
That can be acquired by
/workspace/hotspot/build/lib/x86_64-linux-gnu/libexec/hotspot-perfparser --input perf.data --max-frames 1024 > perfparser.out
, if needed.The text was updated successfully, but these errors were encountered: