WebAssembly/decompressor-prototype

~std::vector causing runtime crashes?

KarlSchimpf opened this issue · 0 comments

For reasons I don't understand, I'm am getting runtime crashes (free of bad pointer) when std::~vector is being called.

It occurs in vectors in classes SymbolTable and CounterWriter. It is very consistent.

Before fixing the std::vector's in these classes to be a (heap allocated) pointer that is not deleted, the code consistently died on:

build/debug/bin/compress-int -i test/test-sources/toy./wasm -l 4

(any number greater than 3 for -l did this).