bug-gmp
[Top][All Lists]
Advanced

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

Re: bug in mpz_init


From: Michael de Mare
Subject: Re: bug in mpz_init
Date: Sun, 01 Jun 2003 18:36:32 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225


I attached the testcase and included information about my system below. When it built, it used Pentium 4 assembler code, if that helps. There were no compilation issues. This seems to be a memory allocation problem.

-Mike

address@hidden factoringtools]$ uname -a
Linux miked-srvr 2.4.20-13.9 #1 Mon May 12 10:55:37 EDT 2003 i686 i686 i386 GNU/Linux

gmp-4.1.2


Torbjorn Granlund wrote:

Michael de Mare <address@hidden> writes:

 I initialize three seperate variables separately:
mpz_init(X1);
        mpz_init(X2);
        mpz_init(J);
        mpz_init(T);
after initialization, the variables all point to the same data: 4: T = {{_mp_alloc = 1, _mp_size = 0, _mp_d = 0x804b6d0}}
 3: X2 = {{_mp_alloc = 1, _mp_size = 0, _mp_d = 0x804b6d0}}
 2: X1 = {{_mp_alloc = 1, _mp_size = 0, _mp_d = 0x804b6d0}}
 1: X0 = {{_mp_alloc = 1, _mp_size = -1, _mp_d = 0x804b6e0}}
This is almost certainly a user error.

If you want to get our help rate, you first need to read the
manual again, in particular you need to reread the section
on how to report GMP bugs.


Attachment: bug.tgz
Description: GNU Zip compressed data


reply via email to

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