Bug 381027 - Crash when directory size is zero
Summary: Crash when directory size is zero
Status: RESOLVED DOWNSTREAM
Alias: None
Product: filelight
Classification: Applications
Component: general (other bugs)
Version First Reported In: 1.21
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Martin Sandsmark
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-09 19:00 UTC by asl97
Modified: 2017-06-10 08:00 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description asl97 2017-06-09 19:00:44 UTC
Filelight crash when directory size is zero.

Test case:
```
mkdir -p /tmp/bugs/this/is/a/test
touch /tmp/bugs/this/is/a/test/file
filelight /tmp/bugs/this/is/a/test
```

Result in `Floating point exception (core dumped)`
Comment 1 Burkhard Lück 2017-06-10 06:21:14 UTC
Ubuntu 16.10
$ filelight --version
filelight 1.21

filelight master build from sources
KDE Frameworks 5.35.0
Qt 5.7.0 (built against 5.7.0)

I can not reproduce the crash, the directory is properly opened by filelight
Comment 2 asl97 2017-06-10 08:00:07 UTC
Seem to have been fixed by https://cgit.kde.org/filelight.git/commit/?id=ffe38edcff1094a617f6cb00da0610b5834e6208

Which isn't part of the Applications/16.12 branch (which is also 1.21).

branch commit log: https://cgit.kde.org/filelight.git/log/?h=Applications/16.12