mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Information & Answers (https://www.mersenneforum.org/forumdisplay.php?f=38)
-   -   Want to crash PFGW? (https://www.mersenneforum.org/showthread.php?t=21784)

carpetpool 2016-11-30 06:32

Want to crash PFGW?
 
I've noticed an issue with PFGW's ABC and ABC2 files which will cause pfgw 3.8.1 to crash. For some reason, the expression (b^n-1)/(b-1) (with a fixed value of n) will cause pfgw to stop working if evaluated in a ABC or ABC2 sieve file. Thanks to anyone who has pfgw 3.8.1 and is willing to try this.

input.txt:

---------
ABC2 ($a^73-1)/($a-1)
a: from 1 to 10
---------

or an ABC file:

---------
ABC ($a^73-1)/($a-1)
1
2
3
4
5
6
7
8
9
10
---------

Note: (You may replace the 73 with any exponent, just using it as an example.)

and run with

pfgw64.exe input.txt

and pfgw 3.8.1 will stop working.

Batalov 2016-11-30 06:34

Dividing by zero is hard! :rolleyes:

carpetpool 2016-11-30 06:36

[QUOTE=Batalov;448065]Dividing by zero is hard! :rolleyes:[/QUOTE]

Good point. I didn't see that there.


All times are UTC. The time now is 17:34.

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