Load error after several crashes. How to bug report?

I was trying to make a Z transaction on a node with 4Gb of RAM.

It crashed once with mining active (with “terminate called after throwing an instance of ‘std::bad_alloc’ what(): std::bad_alloc”), it succeeded with mining off but then crashed when mining restarted, and then it crashed again when mining with only one core.

Apparently crashing is unhealthy, since now i’m getting an error trying to start it, during the “activate the best chain” part: zcashd: wallet/wallet.cpp:605: void CWallet::IncrementNoteWitnesses(const CBlockIndex*, const CBlock*, ZCIncrementalMerkleTree): Assertion `nWitnessCacheSize >= nd->witnesses.size()’ failed.

I suspect that re-downloading the blockchain would fix this.

Is that some sort of a known problem?
Should i preserve the blockchain as i have it for someone to debug the issue?
Anywhere to report this?

Ok, found str4d on Slack, turns out it’s mostly a known issue.
Sadly, the issue corrupts the wallet, so there goes that node’s mining spoils. :frowning:

The github ticket for this is error on startup: Assertion `nWitnessCacheSize >= nd->witnesses.size()' failed. · Issue #1378 · zcash/zcash · GitHub . It will be fixed in beta 2.