| Summary: | KCachegrind crashes after a profile gets loaded | ||
|---|---|---|---|
| Product: | [Developer tools] kcachegrind | Reporter: | Jānis Elmeris <janise> |
| Component: | general | Assignee: | Josef Weidendorfer <josef.weidendorfer> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | CC: | janise, luigi.toscano |
| Priority: | NOR | ||
| Version First Reported In: | 0.7.4kde | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Proposed patch | ||
|
Description
Jānis Elmeris
2016-09-13 14:48:25 UTC
Thanks. I assume this is an out-of-memory error (duplicate of Bug 232470). How large is the file you load? Which tool created the file? It's about 180 MB. Created by XDebug. 140 MB files opened all right. > Regarding "top": run it in a terminal nearby and observe the memory usage while KCachegrind is loading this huge file. What is the maximum number e.g. for resident size directly before KCachegrind crashes?
%MEM goes up to 4,8%.
RES goes up to about 348712.
Hmm... probably not out-of-memory then. Any chance for me to reproduce the bug, ie. can you make the file available to me (e.g. via sending me a link in private email)? Created attachment 101346 [details]
Proposed patch
After private conversation, the bug should be fixed with the proposed patch.
The code accesses one byte after the memory-mapped input file.
valgrind did not detect it, as it does not catch accesses beyound mapping of files (?).
The fix was pushed in revision 4e5f940b57ae1089db29e0700d30cc309cf27805, so it will be included in Applications/16.12 (maybe it could have been applied to 16.08 too?). Could this bug be closed? I wanted to wait for a confirmation from the bug reporter as I could not reproduce the bug. With more effort, I just could force the original bug to appear, and I can confirm now that the fix actually works. So, closing. Backported to 16.08 in dff74b. |