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

Segfault in raft code #7860

Closed
apollo13 opened this issue May 4, 2020 · 3 comments
Closed

Segfault in raft code #7860

apollo13 opened this issue May 4, 2020 · 3 comments
Labels
Milestone

Comments

@apollo13
Copy link
Contributor

apollo13 commented May 4, 2020

Nomad version

Nomad v0.11.0 (5f8fe0a)

Operating system and Environment details

Debian 10

Issue

Segfault during start of a single node:

May 04 18:17:18 nomad01 nomad[13433]: WARNING: keyring exists but -encrypt given, using keyring
May 04 18:17:18 nomad01 nomad[13433]: ==> WARNING: Bootstrap mode enabled! Potentially unsafe operation.
May 04 18:17:18 nomad01 nomad[13433]: ==> Loaded configuration from /opt/paas/etc/nomad/nomad.d/40_general.hcl, /opt/paas/etc/nomad/nomad.d/50_client.hcl, /opt/paas/etc/nomad/nomad.d/50_server.hcl
May 04 18:17:18 nomad01 nomad[13433]: ==> Starting Nomad agent...
May 04 18:17:20 nomad01 consul[523]:     2020-05-04T18:17:20.542Z [INFO]  agent: Synced check: check=_nomad-check-3fd6bef8a509de45c066ae463c50ceba82630433
May 04 18:17:20 nomad01 nomad[13433]: panic: runtime error: invalid memory address or nil pointer dereference
May 04 18:17:20 nomad01 nomad[13433]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0x17f190b]
May 04 18:17:20 nomad01 nomad[13433]: goroutine 15 [running]:
May 04 18:17:20 nomad01 nomad[13433]: github.com/hashicorp/nomad/nomad/state.(*StateStore).deleteJobFromPlugin(0xc00072b710, 0x5457, 0xc000aa2300, 0xc000f78d20, 0xc000b9bec0, 0x0)
May 04 18:17:20 nomad01 nomad[13433]:         github.com/hashicorp/nomad/nomad/state/state_store.go:1192 +0x37b
May 04 18:17:20 nomad01 nomad[13433]: github.com/hashicorp/nomad/nomad/state.(*StateStore).DeleteJobTxn(0xc00072b710, 0x5457, 0xc000abaa96, 0x7, 0xc000abaa66, 0x7, 0xc000aa2300, 0x38061e0, 0xc000b9b760)
May 04 18:17:20 nomad01 nomad[13433]:         github.com/hashicorp/nomad/nomad/state/state_store.go:1502 +0xafb
May 04 18:17:20 nomad01 nomad[13433]: github.com/hashicorp/nomad/nomad.(*nomadFSM).handleJobDeregister(0xc0003409a0, 0x5457, 0xc000abaa66, 0x7, 0xc000abaa96, 0x7, 0x1, 0xc000aa2300, 0xc000a55a38, 0x17dbfc1)
May 04 18:17:20 nomad01 nomad[13433]:         github.com/hashicorp/nomad/nomad/fsm.go:618 +0x1f6
May 04 18:17:20 nomad01 nomad[13433]: github.com/hashicorp/nomad/nomad.(*nomadFSM).applyDeregisterJob.func1(0xc000aa2300, 0x3142c01, 0xc000aa2300)
May 04 18:17:20 nomad01 nomad[13433]:         github.com/hashicorp/nomad/nomad/fsm.go:565 +0x78
May 04 18:17:20 nomad01 nomad[13433]: github.com/hashicorp/nomad/nomad/state.(*StateStore).WithWriteTransaction(0xc00072b710, 0xc000a55b10, 0x0, 0x0)
May 04 18:17:20 nomad01 nomad[13433]:         github.com/hashicorp/nomad/nomad/state/state_store.go:4873 +0x7b
May 04 18:17:20 nomad01 nomad[13433]: github.com/hashicorp/nomad/nomad.(*nomadFSM).applyDeregisterJob(0xc0003409a0, 0xc0000b4301, 0x72, 0x72, 0x5457, 0x0, 0x0)
May 04 18:17:20 nomad01 nomad[13433]:         github.com/hashicorp/nomad/nomad/fsm.go:564 +0x1f2
May 04 18:17:20 nomad01 nomad[13433]: github.com/hashicorp/nomad/nomad.(*nomadFSM).Apply(0xc0003409a0, 0xc000536c30, 0x577acc0, 0xbfa434ec263f1609)
May 04 18:17:20 nomad01 nomad[13433]:         github.com/hashicorp/nomad/nomad/fsm.go:208 +0x42d
May 04 18:17:20 nomad01 nomad[13433]: github.com/hashicorp/nomad/vendor/github.com/hashicorp/raft.(*Raft).runFSM.func1(0xc000ad1350)
May 04 18:17:20 nomad01 nomad[13433]:         github.com/hashicorp/nomad/vendor/github.com/hashicorp/raft/fsm.go:90 +0x2c1
May 04 18:17:20 nomad01 nomad[13433]: github.com/hashicorp/nomad/vendor/github.com/hashicorp/raft.(*Raft).runFSM.func2(0xc000dd7200, 0x3b, 0x40)
May 04 18:17:20 nomad01 nomad[13433]:         github.com/hashicorp/nomad/vendor/github.com/hashicorp/raft/fsm.go:113 +0x75
May 04 18:17:20 nomad01 nomad[13433]: github.com/hashicorp/nomad/vendor/github.com/hashicorp/raft.(*Raft).runFSM(0xc00054a300)
May 04 18:17:20 nomad01 nomad[13433]:         github.com/hashicorp/nomad/vendor/github.com/hashicorp/raft/fsm.go:219 +0x42f
May 04 18:17:20 nomad01 nomad[13433]: github.com/hashicorp/nomad/vendor/github.com/hashicorp/raft.(*raftState).goFunc.func1(0xc00054a300, 0xc0002cc8e0)
May 04 18:17:20 nomad01 nomad[13433]:         github.com/hashicorp/nomad/vendor/github.com/hashicorp/raft/state.go:146 +0x55
May 04 18:17:20 nomad01 nomad[13433]: created by github.com/hashicorp/nomad/vendor/github.com/hashicorp/raft.(*raftState).goFunc
May 04 18:17:20 nomad01 nomad[13433]:         github.com/hashicorp/nomad/vendor/github.com/hashicorp/raft/state.go:144 +0x66

Reproduction steps

No idea

@tgross
Copy link
Member

tgross commented May 4, 2020

Hi @apollo13! Sorry about this. It was fixed by #7758 and released in 0.11.1. If you upgrade to that, this should be fixed for you.

@tgross tgross closed this as completed May 4, 2020
@tgross tgross added the type/bug label May 4, 2020
@tgross tgross added this to the 0.11.1 milestone May 4, 2020
@apollo13
Copy link
Contributor Author

apollo13 commented May 4, 2020

Thank you, sorry I tried searching the issues but apparently didn't know what to search for.

@github-actions
Copy link

github-actions bot commented Nov 8, 2022

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants