Git Product home page Git Product logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 6, 2024
Can't reproduce on the equipment at my disposal (which is 32-bit, not 64-bit) 
and more modern releases of 
gmpy (1.02 and up).  Passing to Case who, I believe, does have 64-bit machines 
to try this out; most likely this is 
a bug fixed in some release after 1.01 and the remedy will be for you to 
upgrade your gmpy installation.


Original comment by [email protected] on 18 Oct 2008 at 5:47

from gmpy.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 6, 2024
should be s = str(p) not s = str(s) that causes the problem.

Original comment by [email protected] on 18 Oct 2008 at 6:21

from gmpy.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 6, 2024
also, I have just downloaded the gmpy-1.03 version from the downloads page and 
the
error is reproduced.

sam@sam-laptop:~/gentoo/gmpy-1.03$ python
Python 2.5.2 (r252:60911, Jul 31 2008, 17:31:22) 
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from gmpy import *
>>> e = mpz(8)
>>> p = e**(e**e)
>>> s = str(p)
Segmentation fault
sam@sam-laptop:~/gentoo/gmpy-1.03$ 

Original comment by [email protected] on 18 Oct 2008 at 6:25

from gmpy.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 6, 2024
I've fixed this bug in svn. The fix may cause a slight slowdown for mpz->string
conversions. If the slowdown is noticeable, I'll work on a more sophisticate 
patch.

casevh

Original comment by casevh on 19 Oct 2008 at 12:40

  • Changed state: Started

from gmpy.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 6, 2024
Fixed by changing memory allocation for temporary objects.

Thanks for the bug report.

Case

Original comment by casevh on 3 Jan 2009 at 11:44

  • Changed state: Fixed

from gmpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.