jruizgit / rules

Durable Rules Engine
MIT License
1.16k stars 206 forks source link

segmentation fault in Alpine Python All cases #109

Open docjoel opened 7 years ago

docjoel commented 7 years ago

Hello, I have been running into a segmentation fault in a containerized alpine Linux with Python, When I run the tutorial, I get the server running at localhost:5000, then I immediately get a segmentation fault. It also occurs in my own code. here is the trace:

The same code works perfectly, however, in OSX.

jruizgit commented 7 years ago

Hi, thanks for reporting this issue. Would you be able to capture a stack trace?

docjoel commented 7 years ago

Unsure, when I run the code this is what I get:

I am running your example code on docker with the container alpine-python I have both c compilers. I also get the same results here is the gdb results:

_(gdb) run /jace/test.py Starting program: /usr/bin/python3 /jace/test.py warning: Error disabling address space randomization: Operation not permitted

from durable.lang import *

with ruleset('animal'):

this code with the Kermit the frog.

..... run_all([{'host': 'docker.for.mac.localhost', 'port': 32768}]);

docjoel commented 7 years ago

Little update, I got it to work on the official python build on docker. alpine python still does not work, perhaps it is missing dependencies that are normally standard? Status: working on OSX, and Debian 4.9.2-10, Not working on Alpine Linux