Hello,
I think there is a segmentation fault error when pyswip is used in a thread. Here is a simple code to reproduce the error:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import threading
import pyswip
class MyThread(threading.Thread):
def __init__(self):
threading.Thread.__init__(self)
def run(self):
p = pyswip.Prolog()
p.assertz('animal(dog)')
p.query('animal(X)')
t = MyThread()
t.start()
t.join()
When I debug the program, the segmentation fault error occurs at this line (prolog.py, line 91):
swipl_fid = PL_open_foreign_frame()
Regards,
Bartholomew.
Hello,
I think there is a segmentation fault error when pyswip is used in a thread. Here is a simple code to reproduce the error:
When I debug the program, the segmentation fault error occurs at this line (prolog.py, line 91):
swipl_fid = PL_open_foreign_frame()Regards,
Bartholomew.