mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Factoring (https://www.mersenneforum.org/forumdisplay.php?f=19)
-   -   Running GGNFS (https://www.mersenneforum.org/showthread.php?t=9645)

Andi47 2009-05-07 06:48

[QUOTE=Andi47;172573]the windows binary for ggnfs found [URL="http://gilchrist.ca/jeff/factoring/"]here[/URL] won't run on my office PC (Pentium 4, Win XP pro), it crashes immediately with an unknown software exception (0xc0000094) at position 0x00418b8d.[/QUOTE]

*grrrr* - why doesn't ggnfs give more precise error messages? I just found out, that the inputfile was missing the "n: <number>" line, now, after adding this line, it is running.

smh 2009-05-07 07:10

[QUOTE=Andi47;172676]*grrrr* - why doesn't ggnfs give more precise error messages? I just found out, that the inputfile was missing the "n: <number>" line, now, after adding this line, it is running.[/QUOTE]The message you're getting is not a GGNFS error. It's a Microsoft error. I've said this before. Just disable the error reporting.

jrk 2009-05-07 07:23

[QUOTE=smh;172679]The message you're getting is not a GGNFS error. It's a Microsoft error. I've said this before. Just disable the error reporting.[/QUOTE]

It is not a microsoft error. It is a division by zero exception.

(I'm trying to rebuild the program with debug symbols to pin it down.)

jrk 2009-05-07 07:26

Here's a gdb backtrace.

[code]#0 0x00007f851d119bb4 in __gmp_exception (error_bit=2) at errno.c:44
#1 0x00007f851d119be2 in __gmp_divide_by_zero () at errno.c:60
#2 0x00007f851d14ec01 in __gmpz_tdiv_r (rem=0x7fff25410cf0,
num=0x7fff25410cf0, den=0x62bad0) at tdiv_r.c:41
#3 0x00007f851d1432a9 in __gmpz_mod (rem=0x7fff25410cf0,
dividend=0x7fff25410cf0, divisor=0x62bad0) at mod.c:45
#4 0x000000000040b961 in input_poly (N=0x62bad0, A=0x62bb30, adeg=0x6b9c90,
B=0x62bb38, bdeg=0x6b9c94, m=0x62bac0, fp=0x2199370) at input-poly.c:211
#5 0x00000000004056a3 in main (argc=<value optimized out>,
argv=0x7fff25411958) at gnfs-lasieve4e.c:607
[/code]

jrk 2009-05-07 07:40

Oh that was with the "experimental" version of ggnfs, so the line numbers may be different if you're using a different version.

But basically input_poly is not sanity-checking.

I wouldn't worry about it. It's user error (sorry :razz:)

Andi47 2009-05-07 08:11

[QUOTE=jrk;172685]Oh that was with the "experimental" version of ggnfs, so the line numbers may be different if you're using a different version.

But basically input_poly is not sanity-checking.

I wouldn't worry about it. It's user error (sorry :razz:)[/QUOTE]

I know, that this is a user error - but when ggnfs would sanity-check the input and give a precise error message, it would be easier to detect the error. (not all input errors are THAT obvious)

jrk 2009-05-07 08:15

You are right.

henryzz 2009-05-10 15:18

[quote=jasonp;170971]If A(x) = A5 x^5 + A4 x^4 + ... + A0 is the algebraic polynomial, then pretend x = a/b, where these are the coordinates in the relation, so that A(a,b) = b^5 *A(a/b) is the homogeneous form of the polynomial. Basically you multiply the coefficient A_i by a^i * b^(5-i).[/quote]
I can't get this to work. I even tried coming back to it when i was less tired to try again which often works.
Could i bother you for an example?

joral 2009-05-10 20:55

[tex]f(x)=x^5+2x^4-2x^3+3x^2-4x+5[/tex]
[tex]F(a,b)=b^5*f(\frac{a}{b}) = b^5*(\frac{a^5}{b^5} +2\frac{a^4}{b^4}-2\frac{a^3}{b^3}+3\frac{a^2}{b^2}-4\frac{a}{b}+5)[/tex]
Now multiply all the terms by [tex]b^5[/tex]
[tex]F(a,b)=b^5*f(\frac{a}{b})=a^5+2{a^4}b-2{a^3}{b^2}+3{a^2}{b^3}-4a{b^4}+5b^5[/tex]

Hopefully this helps.

henryzz 2009-05-11 06:39

[quote=joral;173083][tex]f(x)=x^5+2x^4-2x^3+3x^2-4x+5[/tex]
[tex]F(a,b)=b^5*f(\frac{a}{b}) = b^5*(\frac{a^5}{b^5} +2\frac{a^4}{b^4}-2\frac{a^3}{b^3}+3\frac{a^2}{b^2}-4\frac{a}{b}+5)[/tex]
Now multiply all the terms by [tex]b^5[/tex]
[tex]F(a,b)=b^5*f(\frac{a}{b})=a^5+2{a^4}b-2{a^3}{b^2}+3{a^2}{b^3}-4a{b^4}+5b^5[/tex]

Hopefully this helps.[/quote]
thanks
now i understand it i cant see why i couldn't understand it with the previous explanation:smile:
:pancakebunny:

10metreh 2009-05-11 06:42

[quote=henryzz;173112]thanks
now i understand it i cant see why i couldn't understand it with the previous explanation:smile:
:pancakebunny:[/quote]

Welcome to the club!!! (Of people who don't understand things when they're first explained to them.)

When I was first taught how algebraic division worked I didn't understand :smile:


All times are UTC. The time now is 22:39.

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