Duplicate imports break annotation code generation
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 52/100
Research direction
Start with the WasmModuleInterface code responsible for emitting functions from imports, using the linked Go compiled module with two fd_write imports as the reproduction case. Check how duplicate names are handled and verify that valid duplicate imports no longer produce colliding functions; wasm-opt --duplicate-function-elimination is the current workaround.
Written by the indexing model from the issue text.
Description
In this example, the Go compiled module has 2 imports fd_write.
This is legal Wasm and the engine works great but the WasmModuleInterface breaks as it is emitting two colliding functions in the same class.
Since this is allowed, we need a way to gracefully handle this case.
As a viable workaround, is possible, today to use wasm-opt:
wasm-opt --duplicate-function-elimination
- Dominant language
- Java
- Stars
- 301
- Forks
- 21
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 34
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bytecodealliance/endive
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
bytecodealliance/endive#181 · 2 comments · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
bytecodealliance/endive#175 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
bytecodealliance/endive#170 · 7 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
bytecodealliance/endive#102 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
bytecodealliance/endive#99 · 1 comment ·
All issues in bytecodealliance/endive
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
[BUG]茶杯方块在取茶时会引发崩溃 Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
1.0.0-alpha2 Type/Improvement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
wso2/dpdp-accelerator#272 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
area/frontend
Difficulty 2/5 1-3 hours Newbie friendliness 65/100