bbuhrow / yafu

Automated integer factorization
212 stars 30 forks source link

SEGFAULT on example from README #38

Closed gilcu3 closed 5 months ago

gilcu3 commented 6 months ago

I am getting

YAFU Version 2.11
Built with GCC 13
Using GMP-ECM 7.0.5, Powered by GMP 6.3.0
Detected Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
Detected L1 = 32768 bytes, L2 = 8388608 bytes, CL = 64 bytes
CPU features enabled:
Using 1 random witness for Rabin-Miller PRP checks
Cached 664579 primes; max prime is 9999991
Parsed yafu.ini from /home/username/opt/yafu/yafu

===============================================================
======= Welcome to YAFU (Yet Another Factoring Utility) =======
=======             bbuhrow@gmail.com                   =======
=======     Type help at any time, or quit to quit      =======
===============================================================

>> factor(2056802480868100646375721251575555494408897387375737955882170045672576386016591560879707933101909539325829251496440620798637813)
fac: factoring 2056802480868100646375721251575555494408897387375737955882170045672576386016591560879707933101909539325829251496440620798637813
fac: using pretesting plan: normal
fac: no tune info: using qs/gnfs crossover of 100 digits
fac: no tune info: using qs/snfs crossover of 75 digits
div: primes less than 10000
fmt: 1000000 iterations
rho: x^2 + 3, starting 1000 iterations on C127
rho: x^2 + 3, starting 1000 iterations on C121
rho: x^2 + 3, starting 1000 iterations on C112
rho: x^2 + 2, starting 1000 iterations on C112
rho: x^2 + 1, starting 1000 iterations on C112

Program received signal SIGILL, Illegal instruction.
0x00005555555c56b4 in snfs_init (poly=0x5555578b6af0) at factor/nfs/snfs.c:29
29              memset(poly, 0, sizeof(snfs_t));

Using all dependencies in the latest version and yafu from master.

PS: noticed that reverting to 86f038b fixes the issue

gilcu3 commented 5 months ago

Cannot reproduce after fixing #39, therefore closing.