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: Open panics depending on order of imports #24442
Comments
Hello @eraac, thank you for reporting this and for providing as much information. I'll page some runtime and plugin wizards /cc @crawshaw @ianlancetaylor @aclements |
Can you try tip? I think https://go-review.googlesource.com/c/go/+/100739 will fix this issue for you. |
Thank, but unfortunately i have new errors After compile my program, when plugin are loaded I have So I have re-compiled my plugin and I have And after I compile with
I use this commit for my go bin ae10914 EDIT: I have no idea if this is linked with my bug, but when i compile my plugin for linux from macos, I get this
|
Is this still reproducible? #23369 was closed recently. |
@hirochachacha its seems to work correctly now, thanks ! |
Seems fixed. Closing. |
What version of Go are you using (
go version
)?go version go1.10 darwin/amd64
Does this issue reproduce with the latest release?
Yes, fresh install of go 1.10
What operating system and processor architecture are you using (
go env
)?MacOS 10.13.3 (17D102)
go env
What did you do?
Depending on order of my import, plugin.Open() crash or not for the same .so file
All code are available here https://github.com/friendly-bot/api/tree/bug-plugin, sorry i can't give smaller code, due of the nature of the bug and when this happens. All dependencies are push too, and a dump of the database is also available.
Three things can change behaviors of this bug
feature
columnis_active
(0 or 1) or just comment https://github.com/friendly-bot/api/blob/bug-plugin/main.go#L51cron
columnis_active
(0 or 1) or just comment https://github.com/friendly-bot/api/blob/bug-plugin/main.go#L56If you have any questions, feel free to ask. I probably don't use plugin very well, i actually experiment with it
Actually some issues like this are already posted, but i hope with this detailed example, i can help
What did you expect to see?
plugin.Open() should load plugin correctly or return error if something is wrong with the .so file
What did you see instead?
The text was updated successfully, but these errors were encountered: