Turns out that you should only use alloca() for small amounts of memory, or it costs you a lot of debugging time. Low level coding is fun!