You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
If you have a question, prepend your issue with
[question]
or preferably use the nomad mailing list.If filing a bug please include the following:
Nomad version
Output from
nomad version
09:36 $ nomad version
Nomad v0.8.4
Operating system and Environment details
OSX 10.12.6
Issue
When running 'nomad job history -full -version bad-version job-name' using the CLI I get:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x100 pc=0x50d59a5]
goroutine 1 [running]:
github.com/hashicorp/nomad/command.(*JobHistoryCommand).formatJobVersion(0xc420514790, 0x0, 0x0, 0x0, 0x1, 0x0, 0x0)
/private/tmp/nomad-20180611-50613-t48b0m/nomad-0.8.4/src/github.com/hashicorp/nomad/command/job_history.go:252 +0x45
github.com/hashicorp/nomad/command.(*JobHistoryCommand).Run(0xc420514790, 0xc4200f0030, 0x4, 0x4, 0xc4202b6b40)
/private/tmp/nomad-20180611-50613-t48b0m/nomad-0.8.4/src/github.com/hashicorp/nomad/command/job_history.go:185 +0xc1d
github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc42012d2c0, 0xc42012d2c0, 0xc420511ca0, 0xc)
/private/tmp/nomad-20180611-50613-t48b0m/nomad-0.8.4/src/github.com/hashicorp/nomad/vendor/github.com/mitchellh/cli/cli.go:255 +0x1eb
main.RunCustom(0xc4200f0010, 0x6, 0x6, 0xc4204e9f68)
/private/tmp/nomad-20180611-50613-t48b0m/nomad-0.8.4/src/github.com/hashicorp/nomad/main.go:127 +0x4b4
main.Run(0xc4200f0010, 0x6, 0x6, 0xc4200c6058)
/private/tmp/nomad-20180611-50613-t48b0m/nomad-0.8.4/src/github.com/hashicorp/nomad/main.go:72 +0x3f
main.main()
/private/tmp/nomad-20180611-50613-t48b0m/nomad-0.8.4/src/github.com/hashicorp/nomad/main.go:68 +0x63
Reproduction steps
Execute 'nomad job history -full -version bad-version job-name' with a job version that doesn't exist.
Nomad Server logs (if appropriate)
NA
Nomad Client logs (if appropriate)
NA
Job file (if appropriate)
NA
The text was updated successfully, but these errors were encountered: