kaspanet / rusty-kaspa

Kaspa full-node and related libraries in the Rust programming language. This is a stable version at the initial rollout phases.
ISC License
359 stars 109 forks source link

'pointer being freed was not allocated' when run cargo run --release --bin kaspad #390

Closed taokeqin closed 4 months ago

taokeqin commented 4 months ago

Describe the bug Failed to run release build. error as bellow: ➜ rusty-kaspa git:(master) ✗ cargo run --release --bin kaspad Finished release [optimized] target(s) in 2.24s Running target/release/kaspad 2024-01-12 21:01:35.040+08:00 [INFO ] kaspad v0.13.3 2024-01-12 21:01:35.040+08:00 [INFO ] Application directory: /Users/xxx/.rusty-kaspa 2024-01-12 21:01:35.040+08:00 [INFO ] Data directory: /Users/xxx/.rusty-kaspa/kaspa-mainnet/datadir 2024-01-12 21:01:35.040+08:00 [INFO ] Logs directory: /Users/xx/.rusty-kaspa/kaspa-mainnet/logs kaspad(52408,0x7ff84dc10680) malloc: error for object 0x50bea081040: pointer being freed was not allocated kaspad(52408,0x7ff84dc10680) malloc: set a breakpoint in malloc_error_break to debug [1] 52408 abort cargo run --release --bin kaspad

To Reproduce Steps to reproduce the behavior:

  1. run cargo run --release --bin kaspad

Expected behavior start release version of node successfully.

Screenshots N/A

Desktop (please complete the following information):

Additional context debug version works.

coderofstuff commented 4 months ago

@taokeqin can you try it after https://github.com/kaspanet/rusty-kaspa/commit/63523beeb06f7bedd3bef53e9b24aaf414671934 ?

taokeqin commented 4 months ago

@coderofstuff Just gave d4ddaf3cd75d002859403f164e3fc9a513940c0b a spin, and it's working perfectly. Appreciate your work!