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

x/tools/cmd/eg: panic #10483

Open
alandonovan opened this issue Apr 16, 2015 · 1 comment
Open

x/tools/cmd/eg: panic #10483

alandonovan opened this issue Apr 16, 2015 · 1 comment
Labels
Refactoring Issues related to refactoring tools Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@alandonovan
Copy link
Contributor

% cd $GOROOT/src/cmd

% cat t.go
package template

func before() string {
        return "foo"
}
func after() string {
        return "bar"
}

% eg -t t.go cmd/internal/gc
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x4c7a9d]

goroutine 1 [running]:
golang.org/x/tools/refactor/eg.(*Transformer).matchExpr(0xc20e579000, 0x7f7ce0da9b28, 0xc210222a60, 0x7f7ce0da9b28, 0x0, 0xc2080f3f30)
        /usr/local/google/home/adonovan/got3/src/golang.org/x/tools/refactor/eg/match.go:68 +0x17fd
golang.org/x/tools/refactor/eg.(*Transformer).Transform.func1(0x6a7c80, 0xc2080f3f30, 0xd6, 0x0, 0x0, 0x0)
...
@alandonovan alandonovan self-assigned this Apr 16, 2015
@ianlancetaylor ianlancetaylor added this to the Unreleased milestone Jun 3, 2015
@gopherbot
Copy link

CL https://golang.org/cl/34640 mentions this issue.

@gopherbot gopherbot added the Tools This label describes issues relating to any tools in the x/tools repository. label Sep 12, 2019
@adonovan adonovan added the Refactoring Issues related to refactoring tools label Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactoring Issues related to refactoring tools Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

4 participants