Skip to content

github-release resource gets nil pointer dereference panic when latest version is a Draft #153

Closed

Description

@Amit-PivotalLabs

You can see the concourse build here:

https://mega.ci.cf-app.com/pipelines/release/jobs/announce-rc/builds/11

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x45da4e]

goroutine 1 [running]:
github.com/concourse/github-release-resource.(*InCommand).Run(0xc20800a4e0, 0x7ffe1ed07f81, 0xe, 0xc20802a910, 0xc, 0xc20802a900, 0xa, 0x0, 0x0, 0xc20800ccf0, ...)
    /tmp/build/1478dca3-fe5c-417b-4b39-c9dad7fa50a8/gopath/src/github.com/concourse/github-release-resource/in_command.go:44 +0xc8e
main.main()
    /tmp/build/1478dca3-fe5c-417b-4b39-c9dad7fa50a8/gopath/src/github.com/concourse/github-release-resource/cmd/in/in.go:27 +0x34b

goroutine 9 [runnable]:
net/http.(*persistConn).readLoop(0xc20807a160)
    /usr/src/go/src/net/http/transport.go:928 +0x9ce
created by net/http.(*Transport).dialConn
    /usr/src/go/src/net/http/transport.go:660 +0xc9f

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
    /usr/src/go/src/runtime/asm_amd64.s:2232 +0x1

goroutine 10 [select]:
net/http.(*persistConn).writeLoop(0xc20807a160)
    /usr/src/go/src/net/http/transport.go:945 +0x41d
created by net/http.(*Transport).dialConn
    /usr/src/go/src/net/http/transport.go:661 +0xcbc

I had cf-release v218 still in Draft mode, triggered this build, and saw this error. Tried this two more times. Then I published the release so it was in Published mode rather than Draft, triggered again, and it was fine.

Activity

  1. concourse-bot commented on Sep 28, 2015

    @concourse-bot

    Hi there!

    We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created.

    The current status is as follows:

    • #105040168 Github release resource should support fetching and producing draft release versions

    This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.

  2. concourse-bot commented on Oct 27, 2015

    @concourse-bot

    Hello again!

    All stories related to this issue have been accepted, so I'm going to automatically close this issue.

    At the time of writing, the following stories have been accepted:

    • #105040168 Github release resource should support fetching and producing draft release versions

    If you feel there is still more to be done, or if you have any questions, leave a comment and we'll reopen if necessary!

  3. added a commit that references this issue on Jan 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions