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

go.tools/ssa: Package.Build panics for some packages when using a binary importer #7028

Closed
axw opened this issue Dec 30, 2013 · 2 comments
Closed

Comments

@axw
Copy link
Contributor

axw commented Dec 30, 2013

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. Run http://play.golang.org/p/JF29YmJKun

This also occurs when building archive/zip and archive/tar, among several others in the
standard library.

What is the expected output?

No output, zero return code

What do you see instead?

panic: no concrete method: func (*math/big.Int).SetInt64(x int64) *math/big.Int

goroutine 1 [running]:
runtime.panic(0x5dd740, 0xc21007b660)
    /home/andrew/prog/go/root/src/pkg/runtime/panic.c:266 +0xb6
code.google.com/p/go.tools/ssa.(*Program).declaredFunc(0xc2100514e0, 0xc21008abc0,
0xc21005f380)
    /media/msata/code/src/code.google.com/p/go.tools/ssa/promote.go:166 +0xff
code.google.com/p/go.tools/ssa.(*builder).setCallFunc(0x7f5aa726fb3f, 0xc2100ff000,
0xc210069900, 0xc21011b1c0)
    /media/msata/code/src/code.google.com/p/go.tools/ssa/builder.go:817 +0x2e6
code.google.com/p/go.tools/ssa.(*builder).setCall(0x7f5aa726fb3f, 0xc2100ff000,
0xc210069900, 0xc21011b1c0)
    /media/msata/code/src/code.google.com/p/go.tools/ssa/builder.go:910 +0x59
code.google.com/p/go.tools/ssa.(*builder).expr0(0x7f5aa726fb3f, 0xc2100ff000,
0x7f5aa740f788, 0xc210069900, 0x0, ...)
    /media/msata/code/src/code.google.com/p/go.tools/ssa/builder.go:541 +0x18c4
code.google.com/p/go.tools/ssa.(*builder).expr(0x7f5aa726fb3f, 0xc2100ff000,
0x7f5aa740f788, 0xc210069900, 0x200409400, ...)
    /media/msata/code/src/code.google.com/p/go.tools/ssa/builder.go:474 +0x1a8
code.google.com/p/go.tools/ssa.(*builder).exprInPlace(0x7f5aa726fb3f, 0xc2100ff000,
0x7f5aa7414878, 0xc2101177e0, 0x7f5aa740f788, ...)
    /media/msata/code/src/code.google.com/p/go.tools/ssa/builder.go:462 +0x246
code.google.com/p/go.tools/ssa.(*Package).Build(0xc21005ae70)
    /media/msata/code/src/code.google.com/p/go.tools/ssa/builder.go:2236 +0xa85
main.buildSSA(0xc21001daf0, 0x69d930, 0xc, 0x7f5aa740f0e0, 0x960d80)
    /tmp/bug/bug.go:52 +0x3aa
main.main()
    /tmp/bug/bug.go:63 +0x79


Which compiler are you using (5g, 6g, 8g, gccgo)?

6g

Which operating system are you using?

GNU/Linux (Ubuntu 13.10)

Which version are you using?  (run 'go version')

go version go1.2 linux/amd64
@adonovan
Copy link
Member

adonovan commented Jan 7, 2014

Comment 1:

Owner changed to @adonovan.

@adonovan
Copy link
Member

adonovan commented Jan 9, 2014

Comment 2:

This issue was closed by revision golang/tools@3d82e7e.

Status changed to Fixed.

@axw axw added the fixed label Jan 9, 2014
@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants