-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
fix variable substitution in PolyBoRi + finding M4RI #9717
Comments
comment:1
Alexander Dreyer provided a fix for the issue. I've packaged this fix into an SPKG http://sage.math.washington.edu/home/malb/spkgs/polybori-0.6.4.p2.spkg I've also packaged his patch for Sage into a proper mercurial patch which I'll attach in a sec. |
comment:2
The attached patch + SPKG fix the original problem, however I'm getting segfaults now:
|
comment:3
Ignore the SIGSEGV above, it is unrelated to this ticket but is caused by #9562. Alexander, can you review my SPKG + patch, i.e. that it does what you intended? I give your changes a positive review so all that's needed is some check whether I produced the SPKG correctly etc. |
comment:4
Use this SPKG instead (it is based on the latest PolyBoRi SPKG which the previous SPKG wasn't) http://sage.math.washington.edu/home/malb/spkgs/polybori-0.6.4.p3.spkg |
comment:5
There was some unrelated issue with the previous spkg (libm4ri was not found, because Sage's lib directory was not given to PolyBoRi) |
Work Issues: Update SPKG.txt |
comment:8
Alexander's patch looks reasonable, though libm4ri (and the GD library) were previously found (in the second attempt)... (The only issue I'm aware of is with updating from 4.5.2 on MacOS X 10.6, which Mitesh Patel couldn't reproduce either; see #9721.) (The change to p4 is of course unrelated to the original intent of this ticket; perhaps adapt its title, too.) |
comment:9
Replying to @nexttime:
I have a new SPKG which does exactly that. I'll upload it later.
|
comment:10
The new SPKG is here http://sage.math.washington.edu/home/malb/spkgs/polybori-0.6.4.p4.spkg I just added an entry to SPKG.txt |
comment:11
PolyBoRi makes assumptions about M4RI which are not met with the newest upstream release (#9475). Thus, we should fix this here asap since the new M4RI is about to go in. |
comment:12
I've replaced the SPKG here http://sage.math.washington.edu/home/malb/spkgs/polybori-0.6.4.p4.spkg and the new SPKG fixes the SIGSEGV and all doctests pass. These fixes are: http://bitbucket.org/brickenstein/polybori/changeset/6ef7402d935b http://bitbucket.org/brickenstein/polybori/changeset/b692c8181e94 |
comment:14
(Perhaps also add this ticket number, and mention the PolyBoRi upstream fixes there.) |
comment:15
Updated accordingly. |
Changed work issues from Update SPKG.txt to none |
comment:21
Replying to @malb:
Once Alexander's I'll perhaps test later on a 64-bit platform, although I don't expect any issues. |
comment:22
Replying to @nexttime:
Passed all long tests in |
comment:23
They have successfully finished (SuSE 11.1 64 Bits). So we have the positive review now |
Author: malb,PolyBoRi |
Upstream: Fixed upstream, in a later stable release. |
Reviewer: leif,AlexanderDreyer |
comment:24
Note to the release managersI think this should (only) be merged together with #9475, but I'm not that sure. |
Changed reviewer from leif,AlexanderDreyer to Martin Albrecht, Alexander Dreyer, Leif Leonhardy |
Changed author from malb,PolyBoRi to Alexander Dreyer, Martin Albrecht, Michael Brickenstein |
comment:25
As expected, also passed |
comment:26
Ooops, I just noticed the attached patch is to the Sage library (I assumed it is an spkg patch). So I did not apply that patch in any of the tests I made, which despite that all passed... Martin, is that patch now obsolete or do we just not test an example which would fail without it? Or is it platform-specific? (Btw, the patch's commit message lacks a ticket number; also, a back-reference/comment in the code wouldn't be bad.) Perhaps you could add Joan Daemen's example to the ticket. |
comment:27
Replying to @nexttime:
The patch is necessary, Sage will SIGSEGV in some cases otherwise. I'll try to update the patch with an example.
I'll add the ticket number.
The problem is a bit bigger and I have no permission to publish it, sorry. |
comment:28
I've updated the patch with an example and this ticket's number. |
comment:29
Replying to @malb:
Ok, I'll rerun some of the tests later. Currently all machines busy with new PARI testing... ;-) (I don't see the ticket number in the patched code though.) |
comment:30
That's the commit message, is that alright? |
comment:31
And an attachment comment would be nice... ("Sage library patch - ...") I HATE TRAC! [concurrent "editing" grrrrr...] I meant putting the ticket number also into a comment in the code; you don't see the commit messages when looking just at source files. E.g.
or in the
Something like that. |
comment:32
I'm not too convinced by that. This was a serious bug which just wasn't reported to far. I don't want to clutter the code with track ticket numbers. When reading the code it is relatively simple to see (I'd say) that the new code is correct, thus I'd say it doesn't need a ticket to explain why it is there. Also, the new example isn't just a test, it shows a real use case. |
Sage library patch fixing an issue with substitute_variable() |
comment:33
Attachment: polybori-0.6.4.p2.patch.gz |
This comment has been minimized.
This comment has been minimized.
Merged: sage-4.5.3.alpha0 |
Changed merged from sage-4.5.3.alpha0 to sage-4.5.3.alpha1 |
comment:36
How does one run PolyBoRi's test suite? I'm curious about whether we can add an |
comment:37
The testsuite, which is included in PolyBoRi is not up to date, we use another suite for developing internally. On the one hand, it is lange, on the other, some examples are not freely available. We'll try to deliver a suitable subset of the examples in the future. |
For some inputs our Trac macro PolyBoRi wrapper throws an error while upstream computes the example just fine. The reason we fail is that some rings don't match and thus coercion goes wrong. The problem was reported by Joan Daemen who also provided an example via private communication.
Note to the release managers
When merging the new PolyBoRi 0.6.4.p4 spkg, apply
the attached patch to the Sage library.
Upstream: Fixed upstream, in a later stable release.
CC: @sagetrac-PolyBoRi @alexanderdreyer @nexttime @qed777
Component: commutative algebra
Author: Alexander Dreyer, Martin Albrecht, Michael Brickenstein
Reviewer: Martin Albrecht, Alexander Dreyer, Leif Leonhardy
Merged: sage-4.5.3.alpha1
Issue created by migration from https://trac.sagemath.org/ticket/9717
The text was updated successfully, but these errors were encountered: