debug_backtrace was throwing out-of-bounds