Possible segfault in chan_sip with Asterisk 13.24.1

We’ve been chasing down a bug relating to a segfault we’re seeing every 5 - 7 days. It appears to be always related to a TLS registration event from the backtrace. I have a feeling a client may be sending a bad contact through, but I can’t confirm this - but either way we shouldn’t have a segfault.

What’s the best way to diagnose this further?

core-dump.txt (7.6 KB)
Thread 1 core dump attached…