bug-gmp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GCD bug?


From: Ken Kahn
Subject: GCD bug?
Date: Sat, 29 Mar 2003 18:46:31 -0800

Greetings.
 
When I run

mpq_t x;

mpq_init(x);

mpz_set_str(mpq_numref(x),"365ac38sb1npj741mf8nan2cfqk7ttkna0lcnm6jm1o8u084cil2cm8k7k0uldvo2d5midj6reacp3vo4a9nd099iu30goljpfje916ue8krch2e44e2i1ert2bf9ubvsivp8dabdgrmk5i76smqahpkgaeh4e25jh5df59qmv2kf2skmb7qo1re8tdvju981pm33bmpdhk0fos8eme0od3fpcf3drj1586nocb0gk39ic4rugck2qa70vnapslciljfc9lg3fak2emv8acgoccmmsic754nika7qj5svmeidei204inha81hddune8gehjuu5bvdhqapvfh6vv63ochu38fp8t0cet47r9tkrvsbe9ttfclohv5f4te9lg8bu6jsfp47ilovp3mp70pheqrnhlio4f54hrs81gp7hdmukpjpat0aa72rhpajuh5gcita95m8crpvtv8ghslk9sou9tor",32);

mpz_set_str(mpq_denref(x),"k0122mllosei6bp8jpglnoj1198l3kgr27qcbomtm6ttan6aecmpj8eag26vii0fkp0t7clfa40oc0f6c5opsfd44pfkt0jpqhbr0gvegk8u12kn0ad4165lvmo512acea6223leb80cu9gueutsqqgcd82lelsmef62p1obpukbhe5k3q9e6b1gvd9vcrc23nrdl4k2fv8ef1viueaccgduh0kn560h0ivg50ifbgcqjgvectqu11cjajdacavk1v64l5lm3811p9s1j0lv3v0io9v6l132894v7jvvmdbg10rj716a27uq5c723sibq8t1efdu01784ctbg6ciio6bt7jn6i96jje38dkq237plh4p6391vq217fli423qmrb93f1esk767e1qr07l6gelsrrgf739pfj4a41f8kbl6k89mr6p7mmt2r8eu8na8mjtb7f9l0e036ho06bt7rkg6hm600000000",32);

mpq_canonicalize(x);

I get an access violation from __gmpn_submul_1()+0x56

I'm on Windows XP and have 4.1.1 compiled by Visual Studio 7 (the .net version). This code runs fine with just the first 4 digits of each number. This is the first problem I've discovered since compiling this in December.

Thanks for your work on this really nice piece of software.

Best,

-ken

P.S. I hope the mailer didn't break the strings above - they should be 480 and 487 characters long.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]