Could you provide guidance on how to resolve an error I encounter when trying to use an AOT-compiled function that returns a jitclass? Specifically, what steps should I take to fix this error?
/home/mic/miniconda3/envs/py385/bin/python3 /home/mic/.local/share/JetBrains/Toolbox/apps/PyCharm-P/ch-0/222.4167.33/plugins/python/helpers/pydev/pydevd.py --cmd-line --multiprocess --qt-support=auto --client 127.0.0.1 --port 43505 --file /home/mic/code_options/options_lib/run/core/test_c2.py
inside test function
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
#!/usr/bin/env python3
from numba.pycc import CC
import numpy as np
from numba import njit
from numba.experimental.jitclass.decorators import jitclass
from numba import typeofcc = CC(‘test_sofile’)
@jitclass()
class OptionsTest():def __init__(self, ): pass def start(self): pass
@cc.export(‘test’, f’(i4,i4)')
def test_ori(a, b):
print(‘inside test function’)
return OptionsTest()if name == ‘main’:
# cc.compile() # print('DONE COMPILE') import test_sofile result = test_sofile.test(1, 2) print(result)