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

plugin: cannot load two packages with the same identifier #17579

Closed
rogpeppe opened this issue Oct 25, 2016 · 1 comment
Closed

plugin: cannot load two packages with the same identifier #17579

rogpeppe opened this issue Oct 25, 2016 · 1 comment
Milestone

Comments

@rogpeppe
Copy link
Contributor

go version devel +2113c9a Tue Oct 25 07:51:17 2016 +0000 linux/amd64

I defined two plugin packages, local/foo and local/foo/foo, each defining
a global symbol X.

I opened both with plugin.Open. On the second open, I see this panic:

panic: runtime error: slice bounds out of range

goroutine 1 [running]:
panic(0x530460, 0x7ae830)
    /home/rog/go/src/runtime/panic.go:531 +0x1a0
plugin.lastmoduleinit(0x54e11f)
    /home/rog/go/src/runtime/plugin.go:39 +0x16a
plugin.open(0x54e142, 0x3, 0x0, 0x0, 0x0)
    /home/rog/go/src/plugin/plugin_dlopen.go:76 +0x2d2
plugin.Open(0x54e11f, 0x29, 0xc420086000go: exit 2
, 0xc4200162c0, 0x21)
    /home/rog/go/src/plugin/plugin.go:30 +0x35
main.get(0x54e11f, 0x29, 0xc420051ef8, 0x2)
    /home/rog/src/tstplugin.go:20 +0x4d
main.main()
    /home/rog/src/tstplugin.go:15 +0x1b1
@rakyll rakyll added this to the Go1.8 milestone Oct 25, 2016
@gopherbot
Copy link

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

@golang golang locked and limited conversation to collaborators Oct 31, 2017
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