Random SIGSEGV from SDK

I get a SIGSEGV occasionally from arsdk-ng when sending a PCMD. Here’s a screenshot of the debugger stack trace:

I am just sending PCMD at 50ms interval using my own pomp timer (as you can probably see in the stack trace. It was only running for about 1 minute. I am not sending any other commands at the same time.

It looks like something is wrong with the queue length? GDB here at arsdk_cmd_itf.c:389 shows queue->count and queue->tail = 4294967264 which looks close to the maximum 32 bit integer. This is probably what caused the segfault?