ringbuf: bug fix
parse-stack.sh: stack parse script