Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memleak in multi_modular_MultiModularBasis_base exposed by ModularSymbols(n,sign=1).decomposition() #559

Closed
sagetrac-mabshoff mannequin opened this issue Sep 2, 2007 · 4 comments
Assignees
Milestone

Comments

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Sep 2, 2007

Hello folks,

for n in range(10,100): a=ModularSymbols(n,sign=1).decomposition(); print n, get_memory_usage()

causes (among other things) the following:

==5107== 1,056 bytes in 132 blocks are definitely lost in loss record 2,208 of 2,944
==5107==    at 0x4A05809: malloc (vg_replace_malloc.c:149)
==5107==    by 0x94A2697: __gmpz_init (in /tmp/Work2/sage-2.8.3.rc3/local/lib/libgmp.so.3.4.1)
==5107==    by 0x1F4BD6EF: __pyx_tp_new_13multi_modular_MultiModularBasis_base (multi_modular.c:2324)
==5107==    by 0x1F4B92A0: __pyx_tp_new_13multi_modular_MultiModularBasis (multi_modular.c:5836)
==5107==    by 0x45A272: type_call (typeobject.c:422)
==5107==    by 0x4156A2: PyObject_Call (abstract.c:1860)
==5107==    by 0x47DB71: PyEval_CallObjectWithKeywords (ceval.c:3433)
==5107==    by 0x2041FF67: __pyx_f_20matrix_integer_dense_20Matrix_integer_dense__multiply_multi_modular (matrix_integer_den
se.c:7503)
==5107==    by 0x4156A2: PyObject_Call (abstract.c:1860)
==5107==    by 0x47DB71: PyEval_CallObjectWithKeywords (ceval.c:3433)
==5107==    by 0x204237E0: __pyx_f_20matrix_integer_dense_20Matrix_integer_dense__matrix_times_matrix_c_impl (matrix_integer
_dense.c:5487)
==5107==    by 0xDFD6878: __pyx_f_7element_6Matrix__matrix_times_matrix_c (element.c:11483)

Cheers,

Michael

Component: memleak

Issue created by migration from https://trac.sagemath.org/ticket/559

@sagetrac-mabshoff sagetrac-mabshoff mannequin added this to the sage-2.8.4 milestone Sep 2, 2007
@sagetrac-mabshoff sagetrac-mabshoff mannequin added t: bug labels Sep 2, 2007
@sagetrac-mabshoff sagetrac-mabshoff mannequin self-assigned this Sep 2, 2007
@williamstein williamstein modified the milestones: sage-2.8.4, sage-2.9 Sep 7, 2007
@burcin
Copy link

burcin commented Sep 21, 2007

Attachment: multi_modular_memleak.patch.gz

@burcin
Copy link

burcin commented Sep 21, 2007

comment:3

The following code causes similar errors:

A = random_matrix(ZZ, 100, 200, density=.001)
B = random_matrix(ZZ, 200, 100, density=.001)
C = A*B
del A, B, C

The first chunk of the attached fixes these. The second chunk is useful for #561.

Unfortunately, this isn't enough to reduce all the noise MultiModularBasis makes while running

m = ModularSymbols(501,2).decomposition(3); del m; ModularSymbols_clear_cache();

@sagetrac-mabshoff
Copy link
Mannequin Author

sagetrac-mabshoff mannequin commented Oct 14, 2007

comment:4

Patch will be submitted by me as a mercurial patch.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin modified the milestones: sage-2.9, sage-2.8.8 Oct 14, 2007
@sagetrac-mabshoff
Copy link
Mannequin Author

sagetrac-mabshoff mannequin commented Oct 15, 2007

comment:5

As it turns out the part of the patch the fixed this ticket was wrong and coincidentally I already fixed this with another patch. The part of the patch that fixes #561 is valid. I will post that patch with credit to burcin there.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Oct 15, 2007
@sagetrac-mabshoff sagetrac-mabshoff mannequin modified the milestones: sage-2.8.8, sage-2.8.7 Oct 15, 2007
vbraun pushed a commit to vbraun/sage that referenced this issue Apr 11, 2024
….0.0 to 2.0.1

    
Bumps [myrotvorets/set-commit-status-
action](https://github.com/myrotvorets/set-commit-status-action) from
2.0.0 to 2.0.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/myrotvorets/set-commit-
status-action/releases">myrotvorets/set-commit-status-action's
releases</a>.</em></p>
<blockquote>
<h2>v2.0.1</h2>
<h2>What's Changed</h2>
<ul>
<li>chore(deps): update dependency <code>@​types/node</code> to v20.6.0
by <a href="https://github.com/renovate"><code>@​renovate</code></a> in
<a href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/440">myrotvorets/set-commit-status-action#440</a></li>
<li>chore(deps): lock file maintenance by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/441">myrotvorets/set-commit-status-action#441</a></li>
<li>chore(deps): update dependency <code>@​actions/core</code> to
v1.10.1 by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/442">myrotvorets/set-commit-status-action#442</a></li>
<li>chore(deps): update dependency <code>@​octokit/webhooks-types</code>
to v7.3.0 by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/443">myrotvorets/set-commit-status-action#443</a></li>
<li>chore(deps): update github/codeql-action digest to 701f152 by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/444">myrotvorets/set-commit-status-action#444</a></li>
<li>chore(deps): update github/codeql-action digest to 04daf01 by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/445">myrotvorets/set-commit-status-action#445</a></li>
<li>chore(deps): update dependency <code>@​types/node</code> to v20.6.1
by <a href="https://github.com/renovate"><code>@​renovate</code></a> in
<a href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/446">myrotvorets/set-commit-status-action#446</a></li>
<li>chore(deps): update dependency <code>@​types/node</code> to v20.6.2
by <a href="https://github.com/renovate"><code>@​renovate</code></a> in
<a href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/447">myrotvorets/set-commit-status-action#447</a></li>
<li>chore(deps): update dependency <code>@​octokit/webhooks-types</code>
to v7.3.1 by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/448">myrotvorets/set-commit-status-action#448</a></li>
<li>chore(deps): lock file maintenance by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/449">myrotvorets/set-commit-status-action#449</a></li>
<li>chore(deps): update github/codeql-action digest to 6a28655 by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/450">myrotvorets/set-commit-status-action#450</a></li>
<li>chore(deps): update dependency <code>@​types/node</code> to v20.6.3
by <a href="https://github.com/renovate"><code>@​renovate</code></a> in
<a href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/451">myrotvorets/set-commit-status-action#451</a></li>
<li>chore(deps): update actions/checkout digest to 8ade135 by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/452">myrotvorets/set-commit-status-action#452</a></li>
<li>chore(deps): update actions/checkout action to v4.1.0 by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/453">myrotvorets/set-commit-status-action#453</a></li>
<li>chore(deps): update dependency <code>@​types/node</code> to v20.6.4
by <a href="https://github.com/renovate"><code>@​renovate</code></a> in
<a href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/454">myrotvorets/set-commit-status-action#454</a></li>
<li>chore(deps): update dependency <code>@​types/node</code> to v20.6.5
by <a href="https://github.com/renovate"><code>@​renovate</code></a> in
<a href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/455">myrotvorets/set-commit-status-action#455</a></li>
<li>chore(deps): lock file maintenance by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/456">myrotvorets/set-commit-status-action#456</a></li>
<li>chore(deps): update dependency <code>@​types/node</code> to v20.7.0
by <a href="https://github.com/renovate"><code>@​renovate</code></a> in
<a href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/457">myrotvorets/set-commit-status-action#457</a></li>
<li>chore(deps): update github/codeql-action digest to ddccb87 by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/458">myrotvorets/set-commit-status-action#458</a></li>
<li>chore(deps): update dependency <code>@​types/node</code> to v20.7.1
by <a href="https://github.com/renovate"><code>@​renovate</code></a> in
<a href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/459">myrotvorets/set-commit-status-action#459</a></li>
<li>chore(deps): update dependency <code>@​types/node</code> to v20.7.2
by <a href="https://github.com/renovate"><code>@​renovate</code></a> in
<a href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/460">myrotvorets/set-commit-status-action#460</a></li>
<li>chore(deps): update dependency <code>@​types/node</code> to v20.8.0
by <a href="https://github.com/renovate"><code>@​renovate</code></a> in
<a href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/461">myrotvorets/set-commit-status-action#461</a></li>
<li>chore(deps): update dependency <code>@​types/node</code> to v20.8.2
by <a href="https://github.com/renovate"><code>@​renovate</code></a> in
<a href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/462">myrotvorets/set-commit-status-action#462</a></li>
<li>chore(deps): update github/codeql-action digest to 2cb752a by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/463">myrotvorets/set-commit-status-action#463</a></li>
<li>chore(deps): update dependency <code>@​types/node</code> to v20.8.3
by <a href="https://github.com/renovate"><code>@​renovate</code></a> in
<a href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/464">myrotvorets/set-commit-status-action#464</a></li>
<li>chore(deps): update dependency <code>@​myrotvorets/eslint-config-
myrotvorets-ts</code> to ^2.21.0 by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/465">myrotvorets/set-commit-status-action#465</a></li>
<li>chore(deps): update dependency typescript to ^5.2.2 by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/466">myrotvorets/set-commit-status-action#466</a></li>
<li>chore(deps): update devdependencies (non-major) by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/467">myrotvorets/set-commit-status-action#467</a></li>
<li>chore(deps): update github/codeql-action digest to fdcae64 by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/468">myrotvorets/set-commit-status-action#468</a></li>
<li>chore(deps): update dependency <code>@​types/node</code> to ^20.8.4
by <a href="https://github.com/renovate"><code>@​renovate</code></a> in
<a href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/469">myrotvorets/set-commit-status-action#469</a></li>
<li>chore(deps): update dependency <code>@​actions/github</code> to v6
by <a href="https://github.com/renovate"><code>@​renovate</code></a> in
<a href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/470">myrotvorets/set-commit-status-action#470</a></li>
<li>chore(deps): update dependency <code>@​myrotvorets/eslint-config-
myrotvorets-ts</code> to ^2.22.4 by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/471">myrotvorets/set-commit-status-action#471</a></li>
<li>chore(deps): update github/codeql-action digest to d90b8d7 by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/472">myrotvorets/set-commit-status-action#472</a></li>
<li>chore(deps): update dependency <code>@​types/node</code> to ^20.8.5
by <a href="https://github.com/renovate"><code>@​renovate</code></a> in
<a href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/473">myrotvorets/set-commit-status-action#473</a></li>
<li>chore(deps): update dependency <code>@​myrotvorets/eslint-config-
myrotvorets-ts</code> to ^2.22.5 by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/474">myrotvorets/set-commit-status-action#474</a></li>
<li>chore(deps): update github/codeql-action digest to 0116bc2 by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/475">myrotvorets/set-commit-status-action#475</a></li>
<li>chore(deps): update dependency <code>@​types/node</code> to ^20.8.6
by <a href="https://github.com/renovate"><code>@​renovate</code></a> in
<a href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/476">myrotvorets/set-commit-status-action#476</a></li>
<li>chore(deps): lock file maintenance by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/477">myrotvorets/set-commit-status-action#477</a></li>
<li>fix(deps): roll back actions/checkout action by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/478">myrotvorets/set-commit-status-action#478</a></li>
<li>chore(deps): update actions/checkout action to v4.1.1 by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/479">myrotvorets/set-commit-status-action#479</a></li>
<li>chore(deps): update dependency <code>@​types/node</code> to ^20.8.7
by <a href="https://github.com/renovate"><code>@​renovate</code></a> in
<a href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/480">myrotvorets/set-commit-status-action#480</a></li>
<li>chore(deps): update dependency <code>@​vercel/ncc</code> to ^0.38.1
by <a href="https://github.com/renovate"><code>@​renovate</code></a> in
<a href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/481">myrotvorets/set-commit-status-action#481</a></li>
<li>chore(deps): update github/codeql-action digest to 49abf0b by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/482">myrotvorets/set-commit-status-action#482</a></li>
<li>chore(deps): lock file maintenance by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/483">myrotvorets/set-commit-status-action#483</a></li>
<li>chore(deps): update actions/setup-node action to v3.8.2 by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/484">myrotvorets/set-commit-status-action#484</a></li>
<li>chore(deps): update actions/setup-node action to v4 by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/485">myrotvorets/set-commit-status-action#485</a></li>
<li>chore(deps): update dependency <code>@​types/node</code> to ^20.8.8
by <a href="https://github.com/renovate"><code>@​renovate</code></a> in
<a href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/486">myrotvorets/set-commit-status-action#486</a></li>
<li>chore(deps): update dependency <code>@​types/node</code> to ^20.8.9
by <a href="https://github.com/renovate"><code>@​renovate</code></a> in
<a href="https://redirect.github.com/myrotvorets/set-commit-status-
action/pull/487">myrotvorets/set-commit-status-action#487</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/myrotvorets/set-commit-status-action/com
mit/3730c0a348a2ace3c110851bed53331bc6406e9f"><code>3730c0a</code></a>
2.0.1</li>
<li><a href="https://github.com/myrotvorets/set-commit-status-action/com
mit/3f8748897d475c745f447c5fa75e7f5674ac9a0f"><code>3f87488</code></a>
Merge pull request <a href="https://redirect.github.com/myrotvorets/set-
commit-status-action/issues/561">sagemath#561</a> from markmssd/patch-1</li>
<li><a href="https://github.com/myrotvorets/set-commit-status-action/com
mit/e511e137cb1072f0f1bfd1d994bb46be232938c3"><code>e511e13</code></a>
update dist</li>
<li><a href="https://github.com/myrotvorets/set-commit-status-action/com
mit/d2f4570483e3a5061bed1c9bbeb910eb7f86dfd7"><code>d2f4570</code></a>
Fix typo</li>
<li><a href="https://github.com/myrotvorets/set-commit-status-action/com
mit/0fc3a4eb21c32bc8ac6308dcc33c25ffd6ddf6e9"><code>0fc3a4e</code></a>
Merge pull request <a href="https://redirect.github.com/myrotvorets/set-
commit-status-action/issues/559">sagemath#559</a> from
myrotvorets/renovate/linters</li>
<li><a href="https://github.com/myrotvorets/set-commit-status-action/com
mit/0478c8a5acb9b00c9801b1307e4afaa8a7e32598"><code>0478c8a</code></a>
Merge pull request <a href="https://redirect.github.com/myrotvorets/set-
commit-status-action/issues/560">sagemath#560</a> from
myrotvorets/renovate/lock-file-maintenance</li>
<li><a href="https://github.com/myrotvorets/set-commit-status-action/com
mit/10b74bf16aed90fc68347b4ecc55a6a3ec477ec7"><code>10b74bf</code></a>
chore(deps): lock file maintenance</li>
<li><a href="https://github.com/myrotvorets/set-commit-status-action/com
mit/028919596fd7baf88d1dc494bf0f06223815bd29"><code>0289195</code></a>
chore(deps): update dependency <code>@​myrotvorets/eslint-config-
myrotvorets-ts</code> to v...</li>
<li><a href="https://github.com/myrotvorets/set-commit-status-action/com
mit/ee733d3c0a3b8df8963503d59660273616b1b211"><code>ee733d3</code></a>
chore(deps): update dependency <code>@​types/node</code> to
v20.11.19</li>
<li><a href="https://github.com/myrotvorets/set-commit-status-action/com
mit/4921e31b3636a43a2d156607c2d813e9060b1860"><code>4921e31</code></a>
chore(deps): update github/codeql-action digest to 3796146</li>
<li>Additional commits viewable in <a
href="https://github.com/myrotvorets/set-commit-status-
action/compare/v2.0.0...v2.0.1">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-
badges.githubapp.com/badges/compatibility_score?dependency-
name=myrotvorets/set-commit-status-action&package-
manager=github_actions&previous-version=2.0.0&new-
version=2.0.1)](https://docs.github.com/en/github/managing-security-
vulnerabilities/about-dependabot-security-updates#about-compatibility-
scores)

You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

> **Note**
> Automatic rebases have been disabled on this pull request as it has
been open for over 30 days.
    
URL: sagemath#37475
Reported by: dependabot[bot]
Reviewer(s):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants