Closed raph521 closed 3 years ago
Ouf that was a tough one to find!
It was in Go libraries (golibs) I developed that I use across my projects as well, so quite useful to know.
Anyway, fun story, the bug was that it generates a random integer to use a random 'realistic' http user agent string to get your IP address (so we don't get blocked really) with the steps
int
for convenience... that's where the bug was! int
in Go is an 64 bit integer on 64 bit system but a 32 bit integer on 32 bit system (a.k.a. your Raspberry Pi!). Effectively, converting an enforced positive 64 bit integer to 32 bit would 50% chance give a negative 32 bit integer, hence crashing the whole thing.Wow, that is a fun one - thanks for the quick turnaround!
TLDR: Container crashes periodically every few hours, always in "ip getter"
Is this urgent?
What VPN service provider are you using?
What's the version of the program?
See the line at the top of your logs
Running version latest built on 2020-07-11T23:52:34Z (commit 8b096af)
What are you using to run the container?
Extra information
Logs:
Configuration file:
Host OS: Raspbian Buster