Comments (5)
Just want to link some details here too:
alexcrichton/dlmalloc-rs#41 (comment)
alexcrichton/dlmalloc-rs#41 (comment)
In summary, after 1.78 enabled debug assertions in dlmalloc
, allocating and deallocating with a different size (this is UB) is caught instead of "silently working" (because of how dlmalloc
works, specifically, other allocators will often crash as they actually rely on the safety contract).
from wasm-pack.
This issue seems to be resolved in latest main and 0.2.92 version, will paste my comment on the issue I opened in dlmalloc: alexcrichton/dlmalloc-rs#41
For anyone landing on this issue, it seems that in the latest revision on main
this issue has been fixed.
In the changelog on wasm-bindgen
I see this bugfix related to UB in String deallocation, since we were using an older version of wasm-bindgen (because last time we tried to upgrade it was breaking our app again :D )
Fixed UB when freeing strings received from JS if not using the default allocator. rustwasm/wasm-bindgen#3808
https://github.com/rustwasm/wasm-bindgen/blob/0.2.92/CHANGELOG.md#fixed-1
OR
Take alignment into consideration during (de/re)allocation. rustwasm/wasm-bindgen#3463
https://github.com/rustwasm/wasm-bindgen/blob/0.2.92/CHANGELOG.md#0287
from wasm-pack.
Happy to help debug/investigate further with some pointers for where to look to generate more info
from wasm-pack.
We're seeing it here too, but doesn't seem to help to downgrade to rust 1.77.1.
The bug appeared a few days ago. Is it one of the dependencies to wasm-pack that has changed?
from wasm-pack.
Just For anyone who is still stuck, I solved this by downgrading back to 1.76
.
from wasm-pack.
Related Issues (20)
- Unable to pack/publish when out-dir option is used for build
- 'wasm-pack build' fails because of 'error: could not compile `crossterm` (lib)' HOT 1
- `build --release` should generate JS without white-space HOT 1
- --verbose should print cargo command
- Please update the npm package HOT 1
- yarn build-wasm errors with `Unknown system error -86`
- Bump `wasm-opt` to alleviate CPU idle in optimization phase
- crate compiled by rustc 1.76.0, please recompile that crate using compiler rustc 1.76.0
- build error: 'failed to build archive: wasm32.o: section too large' HOT 1
- Parallel builds fail on CI
- How do I import a host function
- Support for OpenBSD/adJ
- Broken link in docs HOT 1
- CI is not working
- wasm-opt is not used for linux aarch64
- Support for splitting into multiple lazily-loaded modules
- Optimize the display of the path
- wasm-pack test --node fails to compile due to use of sys in errno dependency. HOT 2
- 503 when downloading wasm-pack tar
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wasm-pack.