Fatal: (SIGSEGV) Bad handle or reference at the definition of coverpoint

This looks like a run time error - there should be more information in the error message, like a call stack trace. Most likely you failed to construct the covergroup before calling sample().