1 | initial version |
Just found out the cause of the seqgfault and fixed it. I do not know why it only segfaulted with maxima and not with fricas, but it is now fixed.
I was using Python multiprocessing to set a timeout on the integration by spawning a process to do the integration and then using join(time_out) on it. Passing the integral and getting the result back through a Python Queue.
It turned out that I had to use new Queue each time I spawn process, because when terminating a spawned process (when it times out) can end up corrupting the active Queue. This causes the next process which wants to use the same queue to segfault.
The fix was simple. Changed the code to create new Queue and then delete at end of integration step. So a new Queue is now used for each process, instead of the same Queue as before.
Now sage no longer segfaults. Again, I do not know why it worked OK with fricas and not with maxima.
Case resolved.
Thank you
--Nasser