What are the commands you used to generate each intermediate step?
In your .wast file, there should be a segments section which, among other
things, initializes the stack pointer. Since that is not there, it's being
initialized to 0, and then the translation of alloca yields a negative
address.
Are you using WebAssembly at all? What system are you running on?
WebAssembly has a mode on Linux x64 that uses signal handlers to do faster
bounds checks. This requires V8 to reserve a much larger region of memory
to use as guard regions, and sometimes we've made mistakes in accounting
for thi