I pushed the patch to master, 5.2 and 5.1 branches -- the issue was when trying to lookup the INVITE when processing the ACK to retrieve the routing information, no record was found and an unitialized field was used.
If this is not solving it, reopen.