-
-
Notifications
You must be signed in to change notification settings - Fork 514
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
Race condition in building MPIR/yasm #11844
Comments
comment:1
Nice. Which version of MPIR are you referring to? (I don't know whether the yasm version in our "recent" MPIR packages ever changed at all, or which one we currently use.) FWIW, IIRC we did a lot of massively parallel builds of MPIR 2.1.x, because of the race condition in MPIR's |
comment:2
This is the mpir-1.2.2.p2.spkg from sage-4.7.2.alpha2. All versions of Yasm have the bug. You probably didn't trip over the yasm bug because you were using a file system that allows you to open the same file multiple times for writing. Then you don't get the segfault, but you may get corrupted output. If you are extremely lucky gcc might even compile the clobbered output from re2c, and you'd just get mathematically wrong results for integer arithmetic. |
comment:3
Replying to @nexttime:
The latter is apparently fixed in MPIR 2.1.4. |
comment:4
If it doesn't necessarily lead to a build error... :) (I've also added a reference to this ticket on #11616.) |
comment:5
Replying to @nexttime:
Not the latter, I meant MPIR's |
comment:6
This is now fixed upstream in |
Changed upstream from Workaround found; Bug reported upstream. to Fixed upstream, but not in a stable release. |
comment:7
Wonder whether they can include the fix in MPIR 2.5.0 (which should already be right before the door). I'll provide updated MPIR spkgs (at least an MPIR 2.1.3.p5 or 2.1.4.pX spkg, the others for #11616) fixing the need to specify Note that the yasm guys do not check whether the call to |
comment:8
In the unlikely case that |
comment:9
Replying to @vbraun:
So there are a couple of reasons why Letting |
comment:10
Replying to @nexttime:
And all of them will break the build, whether or not re2c catches the error. |
comment:11
Just in case... |
Dependencies: #11896 |
comment:12
Nothing to review here... |
Reviewer: Leif Leonhardy |
The included Yasm includes re2c which has a race condition during parallel build. See the upstream ticket for details:
http://tortall.lighthouseapp.com/projects/78676-yasm/tickets/238-parallel-make-fails
Fixed by #11616.
Depends on #11964
Depends on #11616
Upstream: Fixed upstream, but not in a stable release.
CC: @wbhart @nexttime
Component: packages: standard
Reviewer: Leif Leonhardy
Issue created by migration from https://trac.sagemath.org/ticket/11844
The text was updated successfully, but these errors were encountered: