Fatal: (SIGSEGV) Bad handle or reference, Error

In reply to Neshagar:

The issue is that you are creating an instance of “my_env” in the top level module. You shouldn’t do this as the environment is contained within the test. Remove my_env env_h from the top() module and try it again.