| Summary: | partition manager crashes while checking highly corrupted partition (memory leak) | ||
|---|---|---|---|
| Product: | [Applications] partitionmanager | Reporter: | Fayaz Yusuf Khan <fayaz.yusuf.khan> |
| Component: | general | Assignee: | Andrius Štikonas <andrius> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | CC: | fayaz.yusuf.khan |
| Priority: | NOR | ||
| Version First Reported In: | 1.2.1 | ||
| Target Milestone: | --- | ||
| Platform: | Kubuntu | ||
| OS: | Linux | ||
| Latest Commit: | https://commits.kde.org/kpmcore/687e3fc7d44c55e2529084518cb4780065dab2cb | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Fayaz Yusuf Khan
2016-09-12 05:44:51 UTC
I think what happens is that output from e2fsck is stored in a variable in KPM. e2fsck keeps producing more and more output and uses more and more memory. We can already do command timeout but that will probably not work because some normal file system checks sometimes take a long time to happen, I saw one lasting about 50 minutes. One way to fix this might be to add a limit to stored output and exit with error when that limit is reached. Git commit 687e3fc7d44c55e2529084518cb4780065dab2cb by Andrius Štikonas. Committed on 15/09/2017 at 13:59. Pushed by stikonas into branch 'master'. Do not store more than 10M characters in ExternalCommand output. M +6 -0 src/util/externalcommand.cpp https://commits.kde.org/kpmcore/687e3fc7d44c55e2529084518cb4780065dab2cb |