Opened 9 years ago

Last modified 8 years ago

## #11521 closed defect

# Memleak when resolving the action of Integers on an Elliptic Curve — at Initial Version

Reported by: | jpflori | Owned by: | rlm |
---|---|---|---|

Priority: | major | Milestone: | sage-5.5 |

Component: | coercion | Keywords: | sd35 |

Cc: | jpflori, nthiery | Merged in: | |

Authors: | Reviewers: | ||

Report Upstream: | N/A | Work issues: | |

Branch: | Commit: | ||

Dependencies: | Stopgaps: |

### Description

The following piece of code leaks memory.

sage: K = GF(1<<55,'t')

sage: a = K.random_element()

sage: while 1:

....: E = EllipticCurve(j=a); P = E.random_point(); 2*P;

The problem seems to occur while resolving the action of ZZ on E.

It does not happen if:

- one does not change the curve in the loop

- does P+P instead of a multiplication

**Note:**See TracTickets for help on using tickets.