Closed multikatt closed 1 year ago
Thank you for the stack trace! Can you try 646b44805e565e522b81d7e5dbb4c898e4d3d002 and report if it happens again?
Alright, i'll give it a try. I had no improvements with https://github.com/SiaFoundation/hostd/commit/e62eda3595bee9d9047868e115bdb374797b50ee, in fact i've had three crashes of the above type since updating. I've also had two of the following, but i dont know if they're related at all. I'll report back how https://github.com/SiaFoundation/hostd/commit/646b44805e565e522b81d7e5dbb4c898e4d3d002 works for me.
Jun 11 20:28:48 host hostd[264686]: panic: runtime error: invalid memory address or nil pointer dereference
Jun 11 20:28:48 host hostd[264686]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x68 pc=0xbc829e]
Jun 11 20:28:48 host hostd[264686]: goroutine 2316 [running]:
Jun 11 20:28:48 host hostd[264686]: go.sia.tech/hostd/host/contracts.(*ContractUpdater).SectorRoot(...)
Jun 11 20:28:48 host hostd[264686]: go.sia.tech/hostd/host/contracts/contracts.go:305
Jun 11 20:28:48 host hostd[264686]: go.sia.tech/hostd/rhp/v3.(*programExecutor).executeReadOffset(0xc000648000, 0xc00069a750)
Jun 11 20:28:48 host hostd[264686]: go.sia.tech/hostd/rhp/v3/execute.go:207 +0x35e
Jun 11 20:28:48 host hostd[264686]: go.sia.tech/hostd/rhp/v3.(*programExecutor).executeProgram.func1()
Jun 11 20:28:48 host hostd[264686]: go.sia.tech/hostd/rhp/v3/execute.go:529 +0x33a
Jun 11 20:28:48 host hostd[264686]: created by go.sia.tech/hostd/rhp/v3.(*programExecutor).executeProgram
Jun 11 20:28:48 host hostd[264686]: go.sia.tech/hostd/rhp/v3/execute.go:503 +0xc5
That's a different issue. Fixed in 885c3ac5fa24b93a71f2046a5b0b4ca8a6f3e312
It's been 10 hours since i started running https://github.com/SiaFoundation/hostd/commit/e62eda3595bee9d9047868e115bdb374797b50ee and about six since https://github.com/SiaFoundation/hostd/commit/885c3ac5fa24b93a71f2046a5b0b4ca8a6f3e312. I haven't seen any new instances of the errors since i did their respective updates. So things look really good so far!
Great! I’ll leave this open for a few more days in case you have any other random crashes.
Current Behavior
I've had hostd crash twice, both times when i've been away from the server and thus not been interacting with it.
Expected Behavior
-
Steps to Reproduce
No response
Version
Built from db8f71b4980885f8b6a1e7e7350d9febb86312cd
What operating system did the problem occur on (e.g. Ubuntu 22.04, macOS 12.0, Windows 11)?
Ubuntu 22.04
Anything else?
The build is a few days old, i've run a git pull and will run from e62eda3595bee9d9047868e115bdb374797b50ee now. I'll update if i see it happen again.