Thanks for the bug report. Upon inspection, it seems the problem is caused by some serious memory leaks: >> executipthread_create:: Cannot allocate memory >> FAIL self_test.test (exit status: 139)
Building with '-fsanitize=leak' seems to confirm it: > make[1]: Leaving directory '/home/alexvong1995/c/mlucas' > > Mlucas 14.2 > > http://hogranch.com/mayer/README.html > > INFO: testing qfloat routines... > CPU Family = x86_64, OS = Linux, 64-bit Version, compiled with Gnu C [or > other compatible], Version 6.3.0. > INFO: Build uses SSE2 instruction set. > INFO: Using inline-macro form of MUL_LOHI64. > INFO: MLUCAS_PATH is set to "" > INFO: using 64-bit-significand form of floating-double rounding constant for > scalar-mode DNINT emulation. > INFO: testing IMUL routines... > INFO: System has 2 available processor cores. > INFO: testing FFT radix tables... > > Mlucas selftest running..... > > > **** You will need to manually verify that the Res64s output > **** for this user-set p match for all FFT radix combinations!! > > > /****************************************************************************/ > > INFO: Unable to find/open mlucas.cfg file in r+ mode ... creating from > scratch. > looking for number of threads to use in nthreads.ini file... > Using NTHREADS = #CPUs = 2. > M20000047: using FFT length 1024K = 1048576 8-byte floats. > this gives an average 19.073531150817871 bits per digit > Using complex FFT radices 1024 16 32 > executing worker thread id 0, syscall_id = 18883 > syscall_id = 18883, setaffinity[0] = 0, ISSET[0] = 1 > executing worker thread id 1, syscall_id = 18884 > syscall_id = 18884, setaffinity[1] = 0, ISSET[1] = 1 > Mers_mod_square: Init threadpool of 2 threads > radix16_dif_dit_pass pfetch_dist = 8 > executing worker thread id 0, syscall_id = 18885 > syscall_id = 18885, setaffinity[0] = 0, ISSET[0] = 1 > executing worker thread id 1, syscall_id = 18886 > Using 2 threads in carry step > syscall_id = 18886, setaffinity[1] = 0, ISSET[1] = 1 > 100 iterations of M20000047 with FFT length 1048576 = 1024 K > Res64: DD61B3E031F1E0BA. AvgMaxErr = 0.265625000. MaxErr = 0.265625000. > Program: E14.2 > Res mod 2^36 = 837935290 > Res mod 2^35 - 1 = 6238131189 > Res mod 2^36 - 1 = 41735145962 > Clocks = 00:00:03.193 > > NTHREADS = 2 > M20000047: using FFT length 1024K = 1048576 8-byte floats. > this gives an average 19.073531150817871 bits per digit > Using complex FFT radices 1024 32 16 > executing worker thread id 0, syscall_id = 18887 > syscall_id = 18887, setaffinity[0] = 0, ISSET[0] = 1 > executing worker thread id 1, syscall_id = 18888 > Mers_mod_square: Init threadpool of 2 threads > syscall_id = 18888, setaffinity[1] = 0, ISSET[1] = 1 > ERROR: at line 1197 of file ./src/radix1024_ditN_cy_dif1.c > Assertion failed: thread-local memcheck fail! > > ================================================================= > ==18881==ERROR: LeakSanitizer: detected memory leaks > > Direct leak of 4100 byte(s) in 1 object(s) allocated from: > #0 0x7f839d4af26e in __interceptor_calloc > (/gnu/store/lambsaqkzrvpa1j5h2rr615sm4y1z0xc-gcc-6.3.0-lib/lib/liblsan.so.0+0xd26e) > #1 0x562c4b in mers_mod_square src/mers_mod_square.c:1143 > > Direct leak of 4096 byte(s) in 1 object(s) allocated from: > #0 0x7f839d4af26e in __interceptor_calloc > (/gnu/store/lambsaqkzrvpa1j5h2rr615sm4y1z0xc-gcc-6.3.0-lib/lib/liblsan.so.0+0xd26e) > #1 0x562f95 in mers_mod_square src/mers_mod_square.c:1268 > > Direct leak of 4096 byte(s) in 1 object(s) allocated from: > #0 0x7f839d4af26e in __interceptor_calloc > (/gnu/store/lambsaqkzrvpa1j5h2rr615sm4y1z0xc-gcc-6.3.0-lib/lib/liblsan.so.0+0xd26e) > #1 0x562f74 in mers_mod_square src/mers_mod_square.c:1267 > > Direct leak of 4096 byte(s) in 1 object(s) allocated from: > #0 0x7f839d4af26e in __interceptor_calloc > (/gnu/store/lambsaqkzrvpa1j5h2rr615sm4y1z0xc-gcc-6.3.0-lib/lib/liblsan.so.0+0xd26e) > #1 0x562f32 in mers_mod_square src/mers_mod_square.c:1265 > > Direct leak of 4096 byte(s) in 1 object(s) allocated from: > #0 0x7f839d4af26e in __interceptor_calloc > (/gnu/store/lambsaqkzrvpa1j5h2rr615sm4y1z0xc-gcc-6.3.0-lib/lib/liblsan.so.0+0xd26e) > #1 0x562f11 in mers_mod_square src/mers_mod_square.c:1264 > > Direct leak of 4096 byte(s) in 1 object(s) allocated from: > #0 0x7f839d4af26e in __interceptor_calloc > (/gnu/store/lambsaqkzrvpa1j5h2rr615sm4y1z0xc-gcc-6.3.0-lib/lib/liblsan.so.0+0xd26e) > #1 0x562ef0 in mers_mod_square src/mers_mod_square.c:1263 > > Direct leak of 4096 byte(s) in 1 object(s) allocated from: > #0 0x7f839d4af26e in __interceptor_calloc > (/gnu/store/lambsaqkzrvpa1j5h2rr615sm4y1z0xc-gcc-6.3.0-lib/lib/liblsan.so.0+0xd26e) > #1 0x562fb6 in mers_mod_square src/mers_mod_square.c:1269 > > Direct leak of 4096 byte(s) in 1 object(s) allocated from: > #0 0x7f839d4af26e in __interceptor_calloc > (/gnu/store/lambsaqkzrvpa1j5h2rr615sm4y1z0xc-gcc-6.3.0-lib/lib/liblsan.so.0+0xd26e) > #1 0x562fd7 in mers_mod_square src/mers_mod_square.c:1270 > > SUMMARY: LeakSanitizer: 32772 byte(s) leaked in 8 allocation(s).
signature.asc
Description: PGP signature