bug-gmp
[Top][All Lists]
Advanced

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

Re: GCD bug?


From: Kevin Ryde
Subject: Re: GCD bug?
Date: Wed, 02 Apr 2003 08:10:06 +1000
User-agent: Gnus/5.090017 (Oort Gnus v0.17) Emacs/21.2 (gnu/linux)

"Ken Kahn" <address@hidden> writes:
>
> that it crashes when usize=-1

Well that's definitely wrong, but it's not obvious how that would
arise.  The gcd loop is supposed to maintain usize>=vsize, and to go
to the binary finish-up when vsize<=2.

Some of the assertions might help narrow it down.  Edit or add to
config.h,

        #define WANT_ASSERT 1

and recompile everything.  See if you can get the C versions of the
low level routines too, not the assembler versions, since the latter
don't have checking.  (Should be as easy as compiling submul_1.c
instead of submul_1.asm.)

What you'll hope to see is some assertion go off at a nice early
stage.  It'll do an abort(), which you can catch in the debugger and
go from there.

-- 
All followups to address@hidden please.




reply via email to

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