The Hashtbl.find_all function implementation is not tail recursive. Due to this, stack overflow occurs for a big set of the data.