1

The polkadot project builds with no problems on my m1 chip macbook, but when I try to execute the executatble, I get the following error

❯ ./target/release/polkadot --chain=polkadot

<jemalloc>: Error allocating TSD
[1]    87791 abort      ./target/release/polkadot --chain=polkadot

How do I workaround this?

1

1 Answer 1

1

This doesn't solve the original problem, but a workaround was to change the allocator in parity-util-mem dependency of the Cargo.toml before compiling polkadot.

I changed it from jemalloc-global to mimalloc-global

ie

parity-util-mem = { version = "0.11.0", default-features = false, features = ["jemalloc-global"] }

to

parity-util-mem = { version = "0.11.0", default-features = false, features = ["mimalloc-global"] }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.