mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2020-12-24, 00:39   #1
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

794510 Posts
Post Weird segfault and "fix"?

We have used the same binary for Msieve for a very long time. We think we compiled it with a Debian system a long time ago.

It has always worked perfectly.

It worked today, on a big job, on our Debian 10 Asus "NUC".

But today, trying that big job on our Fedora 33 system, it segfaulted.
Code:
$ uname -a 
Linux vi 5.9.15-200.fc33.x86_64 #1 SMP Wed Dec 16 19:14:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Code:
$ ./msieve -nc -p -t 1 -v 
 
Msieve v. 1.54 (SVN 1030) 
Wed Dec 23 18:03:00 2020 
random seeds: bd3abf07 7d0d8f6d 
factoring 146994713613685430462560633054030708553424988945059235528485114251973128261237846710634754720664533019191816640360086976564413805312241389512020336099540339919422287150716423619360302926533658867136193404152798094989961139809454759339483042766147 (246 digits) 
no P-1/P+1/ECM available, skipping 
commencing number field sieve (246-digit input) 
R0: 135637000670178176410246734932581577148578721 
R1: -511324276025564512546607 
A0: 201770283 
A1: 0 
A2: 0 
A3: 0 
A4: 0 
A5: 0 
A6: 1 
skew 24.22, size 9.679e-14, alpha 0.121, combined = 2.205e-14 rroots = 0 
 
commencing relation filtering 
estimated available RAM is 32080.8 MB 
commencing duplicate removal, pass 1 
Segmentation fault (core dumped)
Strangely, it would work for a simple factorization.
Code:
$ ./msieve -v 115367564564210182766242534110944507919869313713243756429 
 
Msieve v. 1.54 (SVN 1030) 
Wed Dec 23 18:06:25 2020 
random seeds: e6d43db7 503bfdc1 
factoring 115367564564210182766242534110944507919869313713243756429 (57 digits) 
p7 factor: 3387679 
p50 factor: 34055046113935288073705488067477617542827792631251 
elapsed time 00:00:00
So we recompiled it using the development tools on the Fedora system and now it works.
Code:
$ ./msieve -nc -p -t 1 -v 
 
Msieve v. 1.54 (SVN 1035M/VBITS=64/Xyzzy) 
Wed Dec 23 18:00:45 2020 
random seeds: 7a64fe17 6d8eca8e 
factoring 146994713613685430462560633054030708553424988945059235528485114251973128261237846710634754720664533019191816640360086976564413805312241389512020336099540339919422287150716423619360302926533658867136193404152798094989961139809454759339483042766147 (246 digits) 
no P-1/P+1/ECM available, skipping 
commencing number field sieve (246-digit input) 
R0: 135637000670178176410246734932581577148578721 
R1: -511324276025564512546607 
A0: 201770283 
A1: 0 
A2: 0 
A3: 0 
A4: 0 
A5: 0 
A6: 1 
skew 24.22, size 9.679e-14, alpha 0.121, combined = 2.205e-14 rroots = 0 
 
commencing relation filtering 
estimated available RAM is 32080.8 MB 
commencing duplicate removal, pass 1 
^C 
received signal 2; shutting down
Why?

Here is all we could find WRT errors:
Code:
[  161.774741] msieve[3252]: segfault at 7fd580928500 ip 000055a6fcfb4dbd sp 00007ffd946d2ee0 error 7 in msieve[55a6fcf9c000+a9000] 
[  161.774749] Code: 56 4c 8d b9 98 00 00 00 41 55 41 54 49 89 cd 55 53 48 89 fd 48 83 ec 08 48 85 f6 8b 19 0f 88 b2 00 00 00 48 8b 81 a0 00 00 00 <48> 89 30 0f 95 c0 0f b6 c0 89 81 9c 00 00 00 4d 8d a5 a8 00 00 00
FWIW, the msieve.dat file (42GB) is not compressed and all duplicates and bad relations have been removed from it.

Attached Files
File Type: gz msieve-old.gz (342.0 KB, 9 views)
File Type: gz msieve-new.gz (324.3 KB, 6 views)
Xyzzy is offline   Reply With Quote
Old 2020-12-24, 00:53   #2
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

2·32·197 Posts
Default

It might be because there was some Msieve code that didn't play 100% with GMP-6.2.0. Jasonp has since fixed that, so the latest code should be fine. Which GMP is on which machine?
EdH is offline   Reply With Quote
Old 2020-12-24, 01:30   #3
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

5×7×227 Posts
Default

Is this the right information?

Debian 10
libgmp-dev
libgmp-dev_6.1.2+dfsg-4_amd64.deb


Fedora 33
gmp-devel.x86_64
gmp-6.2.0-5.fc33.src.rpm
Xyzzy is offline   Reply With Quote
Old 2020-12-24, 03:40   #4
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

2×32×197 Posts
Default

Quote:
Originally Posted by Xyzzy View Post
Is this the right information?

Debian 10
libgmp-dev
libgmp-dev_6.1.2+dfsg-4_amd64.deb


Fedora 33
gmp-devel.x86_64
gmp-6.2.0-5.fc33.src.rpm
I would think it was the new GMP-6.2.0 and it looks like you have a later checkout (1035) for Msieve now. You should be good.

If you want to see some details, you can look at (and around) this post in my YAFU "How I ..." thread
EdH is offline   Reply With Quote
Old 2020-12-24, 13:38   #5
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

5×7×227 Posts
Default

Xyzzy is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is "mung" or "munged" a negative word in a moral sense? Uncwilly Lounge 15 2020-04-14 18:35
Stockfish game: "Move 8 poll", not "move 3.14159 discussion" MooMoo2 Other Chess Games 5 2016-10-22 01:55
"Honey, I think our son's autistic." "Okay, I'll buy him some crayons." jasong jasong 10 2015-12-14 06:38
Aouessare-El Haddouchi-Essaaidi "test": "if Mp has no factor, it is prime!" wildrabbitt Miscellaneous Math 11 2015-03-06 08:17
Would Minimizing "iterations between results file" may reveal "is not prime" earlier? nitai1999 Software 7 2004-08-26 18:12

All times are UTC. The time now is 23:50.

Sat Jan 23 23:50:20 UTC 2021 up 51 days, 20:01, 0 users, load averages: 2.73, 2.69, 2.46

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.