-
Notifications
You must be signed in to change notification settings - Fork 58
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
panic: unresolve external: runtime.writeBarrier
#32
Comments
@jimil749 , i can't find your loader code, could you give me more infomations? |
Hi, sorry about that! This is the link to loader code: https://github.com/jimil749/reva-plugin-benchmark/blob/2dd5c5a9ad0a54dbfca8ce1bd87db121b442ffa5/main.go. And this is the code that I am trying to load: https://github.com/jimil749/reva-plugin-benchmark/blob/2dd5c5a9ad0a54dbfca8ce1bd87db121b442ffa5/pkg/plugins/goloader/json.go And this is the dependency(the code that is being loaded is dependent on this interface): https://github.com/jimil749/reva-plugin-benchmark/blob/2dd5c5a9ad0a54dbfca8ce1bd87db121b442ffa5/pkg/plugins/goloader/manager/manager.go |
@jimil749, the loader looks ok, Did you strip the code on compile? if you strip it, the loader could not find symbol tables for runtime symbol. |
I did not. I just followed this: https://github.com/pkujhd/goloader#examples (4th example) for compiling and loading. |
i test your code, it runs ok on macosx/amd64. if you are not, please give me your runtime env, e.g. os version, golang version. in addition, you need call main.New replace json.New. if you do not set package name, "main" is default |
Ahh ok. I'll test it out once again. Still I'll provide the runtime env: os: Ubuntu 20.04 |
i don't repeated your error
|
Hi @pkujhd! Thanks for the quick response. I tested this out again locally. Seems to be working. I think the problem occurs when I directly do |
not support this used. when used
|
I have following "plugin" code that I am trying to load using goloader: Link to code. It has a dependency on another package (link). On compiling the code, and loading using goloader (as explained in the example, link), it throws following error:
Any clue how to solve this?
The text was updated successfully, but these errors were encountered: