[GH-ISSUE #162] 'attempt to subtract with overflow', src/display.rs:322:13 #71

Closed
opened 2026-06-08 11:25:33 +03:00 by zhus · 3 comments
Owner

Originally created by @DmitriK on GitHub (Jul 28, 2021).
Original GitHub issue: https://github.com/bootandy/dust/issues/162

Stumbled upon this when trying to run 'dust -f' on my music directory and ended up with this in release build:

memory allocation of 18446744073709551614 bytes failed
fish: Job 1, 'dust -f' terminated by signal SIGABRT (Abort)

Re-ran dust as a debug build and got the error in the title. I haven't dug further, but I'm guessing it's due to some rather long path/filenames that I have that's hitting this.

Originally created by @DmitriK on GitHub (Jul 28, 2021). Original GitHub issue: https://github.com/bootandy/dust/issues/162 Stumbled upon this when trying to run 'dust -f' on my music directory and ended up with this in release build: ``` memory allocation of 18446744073709551614 bytes failed fish: Job 1, 'dust -f' terminated by signal SIGABRT (Abort) ``` Re-ran dust as a debug build and got the error in the title. I haven't dug further, but I'm guessing it's due to some rather long path/filenames that I have that's hitting this.
zhus closed this issue 2026-06-08 11:25:33 +03:00
Author
Owner

@bootandy commented on GitHub (Jul 28, 2021):

Thanks.

I've been able to make it fail with the '-f' flag on one of my directories so I can reproduce it. I'll investigate and fix.

<!-- gh-comment-id:888391215 --> @bootandy commented on GitHub (Jul 28, 2021): Thanks. I've been able to make it fail with the '-f' flag on one of my directories so I can reproduce it. I'll investigate and fix.
Author
Owner

@bootandy commented on GitHub (Jul 28, 2021):

Seems to be a bug introduced with the v0.6.0. Installing the old version and it works: cargo install du-dust --version 0.5.4 .

I'll look into it.

<!-- gh-comment-id:888392713 --> @bootandy commented on GitHub (Jul 28, 2021): Seems to be a bug introduced with the v0.6.0. Installing the old version and it works: `cargo install du-dust --version 0.5.4 `. I'll look into it.
Author
Owner

@bootandy commented on GitHub (Jul 28, 2021):

Found the bug. Thanks for the report. It'll be fixed with v 0.6.2

<!-- gh-comment-id:888405659 --> @bootandy commented on GitHub (Jul 28, 2021): Found the bug. Thanks for the report. It'll be fixed with v 0.6.2
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#71