ergoplatform / ergoplatform/sigma-rust
Memory leak executing UnsignedTransaction.to_json()
Open
- Dominant language
- Rust
- Stars
- 78
- Forks
- 63
- Avg merge
- 22h 5m
- Merged PRs (30d)
- 3
Description
Trying to sign transactions in a loop, the UnsignedTransaction to_json method does not free the memory used.
Attaching a test case ran with nodejs.
[mem-leak.txt](https://github.com/ergoplatform/sigma-rust/files/9747017/mem-leak.txt)
Contributor guide
Research direction
Start by reproducing the attached mem-leak.txt case in Node.js, which repeatedly signs transactions and calls UnsignedTransaction.to_json(). Then locate the implementation and its binding path, and compare memory usage across iterations. Done means the provided loop no longer shows the reported memory growth.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, rust
- Domain
- blockchain, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100