age icon indicating copy to clipboard operation
age copied to clipboard

Latest release spins CPU

Open notramo opened this issue 2 years ago • 4 comments

On Void Linux musl, age 1.1.1 infinitely spins CPU when using password encryption.

notramo avatar Jan 31 '23 18:01 notramo

Can confirm this. Decrypting a small textfile with one line takes up to 5 minutes. I traced this down to this: https://github.com/FiloSottile/age/blob/8e3f74c283b2e9b3cd0ec661fa4008504e536d20/scrypt.go#L163

rumpelsepp avatar Feb 06 '23 10:02 rumpelsepp

Interesting, I don't think we changed anything related to scrypt in this release. Did you maybe update the Go version at the same time? What happens if you build age v1.1.1 with an older version of Go?

FiloSottile avatar Feb 07 '23 13:02 FiloSottile

I did a few tests yesterday, I downgraded the crypto package a few times. The problem stayed the same and was reproducible. Currently, I am not suffering from this problem any more, because I did a sysupgrade and rebooted my system. :open_mouth: I will try a different go version once it reappears.

rumpelsepp avatar Feb 07 '23 13:02 rumpelsepp

because I did a sysupgrade and rebooted my system

Huh!

If anyone else can reproduce it, I would love to get the binary and uname -a output, so I can try to track it down.

FiloSottile avatar Feb 07 '23 13:02 FiloSottile