zmwangx / miller-rabin

Fast, deterministic* Miller-Rabin primality test for Python
MIT License
6 stars 2 forks source link

Program cores on Illegal Instruction #2

Open yaaroo opened 4 years ago

yaaroo commented 4 years ago

I'm running the regular miller_rabin function with big numbers, and the process core-dumps. I have Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz

core dump is attached

core.gz

zmwangx commented 4 years ago

Interesting. Without knowing the exact python3 you're using (distro, version, so that I can get the debug symbols) I can't debug the core dump though. Also, to be honest I never debugged a SIGILL ever, so maybe I can't debug this even with debug symbols.

Did you install from a prebuilt wheel? What if you install from the source package? i.e., try this:

pip install --no-cache --no-binary :all: miller-rabin

A reproduction would also be valuable. Distro, Python version, and a short script to trigger this. Best if you can reproduce this inside Docker.