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

Do not delete a borrowed reference to reduction strategies in pbori #13746

Closed
jpflori opened this issue Nov 22, 2012 · 11 comments
Closed

Do not delete a borrowed reference to reduction strategies in pbori #13746

jpflori opened this issue Nov 22, 2012 · 11 comments

Comments

@jpflori
Copy link
Contributor

jpflori commented Nov 22, 2012

In #12313, it was discovered in a painful way that Sage tries to deallocate twice memory allocated for reduction strategies in pbori.

As this fix is now needed by other tickets like #715, I've put the fix on an independent ticket.

CC: @simon-king-jena @alexanderdreyer

Component: memleak

Keywords: segfault

Author: Jean-Pierre Flori, Simon King

Reviewer: Alexander Dreyer

Merged: sage-5.5.rc1

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

@jpflori jpflori added this to the sage-5.6 milestone Nov 22, 2012
@jpflori
Copy link
Contributor Author

jpflori commented Nov 22, 2012

Patch from #12313 with only changes concerning trac ticket numbers

@jpflori
Copy link
Contributor Author

jpflori commented Nov 22, 2012

comment:1

Attachment: trac_12313_quit_sage.patch.gz

@simon-king-jena
Copy link
Member

comment:2

OK, you took the patch from #12313 and removed the bits that now belong to #13741, right?

I don't recall who wrote most of the code in the patch - in other words: Who can be reviewer for it?

@jpflori
Copy link
Contributor Author

jpflori commented Nov 22, 2012

comment:3

Replying to @simon-king-jena:

OK, you took the patch from #12313 and removed the bits that now belong to #13741, right?

No, the two patches were orthogonal, they touched different part of quit_sage.
I'm not completely sure the additional garbage collection we introduce here is really needed, but it cannot hurt for sure (or it can reveal nasty bugs :) which is good).

I don't recall who wrote most of the code in the patch - in other words: Who can be reviewer for it?

I think the patch was already positively reviewed during the process of reviewing #12313, so you or Nils could set this ticket to positive review, I just don't feel doing it as I've opened the ticket.

@jpflori
Copy link
Contributor Author

jpflori commented Nov 22, 2012

comment:4

And so this is exactly the same patch as in #12313, except that:

  • I've replace 12313 by 13746 in the commit message
  • I've replace 12313 by 12313 and 13746 in some comment in the code redirecting the reader to Sage's trac

@simon-king-jena
Copy link
Member

comment:5

Replying to @jpflori:

Replying to @simon-king-jena:

OK, you took the patch from #12313 and removed the bits that now belong to #13741, right?

No, the two patches were orthogonal,

Sorry, you are totally right! What I moved to #13471 came from #12215 or so...

I'm not completely sure the additional garbage collection we introduce here is really needed, but it cannot hurt for sure (or it can reveal nasty bugs :) which is good).

Indeed!

I think the patch was already positively reviewed during the process of reviewing #12313, so you or Nils could set this ticket to positive review, I just don't feel doing it as I've opened the ticket.

Not before running a full test...

@alexanderdreyer
Copy link
Mannequin

alexanderdreyer mannequin commented Nov 26, 2012

comment:8

I could probably review it, since I've already discussed it previously. The patch looks sane, yet I don't understand, why it fails on the patchbot. (Is this related to something else?)

@simon-king-jena
Copy link
Member

comment:9

Replying to @alexanderdreyer:

I could probably review it, since I've already discussed it previously. The patch looks sane, yet I don't understand, why it fails on the patchbot. (Is this related to something else?)

My guess is that the error is unrelated (it seems to come from a killed Gap session). To be on the safe side, I've just kicked the patchbot, so that it should now repeat the tests.

@alexanderdreyer
Copy link
Mannequin

alexanderdreyer mannequin commented Nov 26, 2012

comment:10

Looks good!

@alexanderdreyer
Copy link
Mannequin

alexanderdreyer mannequin commented Nov 26, 2012

Reviewer: Alexander Dreyer

@jdemeyer
Copy link
Contributor

Merged: sage-5.5.rc1

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

3 participants