Summary: | Created file is not compatible with heaptrack | ||
---|---|---|---|
Product: | [Applications] Heaptrack | Reporter: | Jasem Mutlaq <mutlaqja> |
Component: | general | Assignee: | Milian Wolff <mail> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | heaptrack cat |
Description
Jasem Mutlaq
2018-03-29 13:43:12 UTC
Probably a bug I introduced with the addition of zstd support. What shell do you use? Can you paste the contents of `cat $(which heaptrack)` please - I want to double-check what it generated. To workaround this, install zstd development headers, it should both fix this and make heaptrack faster too :) I think I solved this via commit 7ae3f595a0ea49abd4b8ecd8a7be2b362e0fa916 Author: Milian Wolff <milian.wolff@kdab.com> Date: Tue Apr 3 15:30:56 2018 +0200 Make heaptrack.sh file compatible with dash Don't use the bashism == to compare strings, use = instead. BUG: 392487 Created attachment 112029 [details]
heaptrack cat
Nope, I just git pulled and built with zstd support and exactly the same problem on 16.04. I attached the output as you require but it's exactly same error message. do you still see this error: /usr/bin/heaptrack: 174: [: FALSE: unexpected operator ? What does this give you in your shell: echo $SHELL if [ "TRUE" = "TRUE" ] && [ ! -z "$(which zstd)" ]; then echo "works"; fi Oh and one more question: Can you actually attach via GDB? E.g. this part of the message makes me wonder: Could not attach to process. If your uid matches the uid of the target process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf Try to run `gdb --pid ...` and see if that works for you. I installed zstd on 16.04 machine but now getting compile errors: https://paste.kde.org/plj20ityd Ok it appears I need to run: sudo apt-get install zstd which would install the correct libraries (I used libzstd-dev before which installed older version). At any rate, now it creates zst file. It now finally works! |