Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pop miner cli crashes because of invalid memory address or nil pointer dereference #266

Open
1 task done
Leonardiae opened this issue Sep 30, 2024 · 0 comments
Open
1 task done
Assignees
Labels
area: popm This is a change to popm (PoP Miner) type: bug This is a bug

Comments

@Leonardiae
Copy link
Contributor

Confirmation

  • I have checked for similar issues.

Describe the bug

The PoP miner CLI crashed because of this error. This happened for a second time. First time happened when running 0.4.0. After upgrading to 0.4.3 it happened again. Before installing 0.4.0 this did not happen before.

2024-09-27 14:35:12 INFO popm popm.go:358 Mining an L2 keystone at height 1611125...
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0xf8 pc=0x744f48]

goroutine 32708 [running]:
github.com/coder/websocket.(*Conn).writer(...)
        github.com/coder/[email protected]/write.go:97
github.com/coder/websocket.(*Conn).write(0x0, {0xabbd80, 0xc000f51ab0}, 0xc000130000?, {0xc0003f6d80, 0x4c, 0x480})
        github.com/coder/[email protected]/write.go:105 +0x68
github.com/coder/websocket.(*Conn).Write(0x879fc0?, {0xabbd80?, 0xc000f51ab0?}, 0x9312c0?, {0xc0003f6d80?, 0x879fc0?, 0xc000132500?})
        github.com/coder/[email protected]/write.go:45 +0x25
github.com/coder/websocket/wsjson.write.func1({0xc0003f6d80?, 0x4c, 0xc000f979c0?})
        github.com/coder/[email protected]/wsjson/wsjson.go:58 +0x45
github.com/coder/websocket/internal/util.WriterFunc.Write(0x0?, {0xc0003f6d80?, 0xc000132500?, 0x20?})
        github.com/coder/[email protected]/internal/util/util.go:7 +0x24
encoding/json.(*Encoder).Encode(0xc000f97ae0, {0x879fc0, 0xc000132500})
        encoding/json/stream.go:231 +0x1ee
github.com/coder/websocket/wsjson.write({0xabbd80, 0xc000f51ab0}, 0x0, {0x879fc0, 0xc000132500})
        github.com/coder/[email protected]/wsjson/wsjson.go:63 +0x145
github.com/coder/websocket/wsjson.Write(...)
        github.com/coder/[email protected]/wsjson/wsjson.go:49
github.com/hemilabs/heminetwork/api/protocol.(*Conn).WriteJSON(0xc000c07c70, {0xabbd80, 0xc000f51ab0}, {0x879fc0, 0xc000132500})
        github.com/hemilabs/heminetwork/api/protocol/protocol.go:550 +0xe6
github.com/hemilabs/heminetwork/api/protocol.Write({0xabbd80, 0xc000f51ab0}, {0xab9890, 0xc000c07c70}, {0xab7c40?, 0xdeeaa0?}, {0xc0003a4812, 0x2}, {0x879a40, 0xdeeaa0})
        github.com/hemilabs/heminetwork/api/protocol/protocol.go:189 +0x21b
github.com/hemilabs/heminetwork/api/protocol.(*Conn).Write(...)
        github.com/hemilabs/heminetwork/api/protocol/protocol.go:650
github.com/hemilabs/heminetwork/api/protocol.(*Conn).Call(0xc000c07c70, {0xabbd80, 0xc000f51ab0}, {0xab7c40, 0xdeeaa0}, {0x879a40, 0xdeeaa0})
        github.com/hemilabs/heminetwork/api/protocol/protocol.go:594 +0x29f
github.com/hemilabs/heminetwork/api/bfgapi.Call({0xabbd80?, 0xc000f51ab0?}, 0x1?, {0x879a40?, 0xdeeaa0?})
        github.com/hemilabs/heminetwork/api/bfgapi/bfgapi.go:247 +0x4a
github.com/hemilabs/heminetwork/service/popm.(*Miner).handleBFGCallCompletion(0xc0000b60e0, {0xabbd10, 0xc000c2ab90}, 0xc000c07c70, {{0x879a40?, 0xdeeaa0?}, 0xc000f765b0?})
        github.com/hemilabs/heminetwork/service/popm/popm.go:753 +0x1de
created by github.com/hemilabs/heminetwork/service/popm.(*Miner).handleBFGWebsocketCall in goroutine 32405
        github.com/hemilabs/heminetwork/service/popm/popm.go:827 +0x10c

Expected behaviour

.

Environment

Version:
Operating System:
Architecture:

Additional Information

No response

@Leonardiae Leonardiae added status: triage This is awaiting review. Maintainers should this label once triaged type: bug This is a bug labels Sep 30, 2024
@joshuasing joshuasing removed the status: triage This is awaiting review. Maintainers should this label once triaged label Sep 30, 2024
@joshuasing joshuasing self-assigned this Sep 30, 2024
@joshuasing joshuasing added the area: popm This is a change to popm (PoP Miner) label Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: popm This is a change to popm (PoP Miner) type: bug This is a bug
Projects
None yet
Development

No branches or pull requests

2 participants