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

Re: Bug#324455: gmp: FTBFS on alpha



On Mon, Aug 22, 2005 at 08:56:23PM -0700, Steve Langasek wrote:

> Buggy division function in glibc 2.3.5.

> $ .libs/dive_ui
> mpz_divexact_ui wrong
>     a=15555198415671637283
>     d=15555198415671637283
>     q=1
>   got=0
> Aborted
> $ LD_LIBRARY_PATH=./libc6/lib/ ./libc6/lib/ld-linux.so.2 .libs/dive_ui && echo success
> success
> $

> Simple test case:

> int main() {
> 
> 	unsigned long a= 1UL << 63;
> 	unsigned long b= 1UL << 63;
> 
>         exit (a/b != 1);
> }

> Appears to be a bug in the implementation of __divqu.  Upgrading to 2.3.5-4,
> to confirm whether the bug still exists.

Yep, bug still present in 2.3.5-4.  Someone who speaks alpha assembly will
have to look at this, I think, to pinpoint the error.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
vorlon@debian.org                                   http://www.debian.org/

Attachment: signature.asc
Description: Digital signature


Reply to: