If the NMS doesn’t include a ReportSubscribe TLV in the registration response (when the device gave ReportSubscribe { interval = 0 } ), csmp-agent-lib (or at least the sample app) crashes, when it tries to do random() % imin with imin=0. Easy enough to work around – have the NMS implementation always include it.