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

Linux: Fix corruption of big transfers on 32 bit systems #25

Merged
merged 1 commit into from Jan 13, 2016

Conversation

@antrik
Copy link
Contributor

antrik commented Jan 4, 2016

The wrong size calculation magically worked on 64 bit systems, because
2 * sizeof u32 is the same as sizeof usize there -- but not on 32 bit
systems, where this dropped 4 bytes of each full fragment.

With this, Servo works again for me. (And we are down to 4 failing ipc-channel tests on my system...)

The wrong size calculation magically worked on 64 bit systems, because
2 * sizeof u32 is the same as sizeof usize there -- but not on 32 bit
systems, where this dropped 4 bytes of each full fragment.
@glennw
Copy link
Member

glennw commented Jan 12, 2016

@pcwalton
Copy link
Collaborator

pcwalton commented Jan 12, 2016

Oh my goodness. Thank you for digging into this!

@pcwalton
Copy link
Collaborator

pcwalton commented Jan 12, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Jan 12, 2016

📌 Commit 8808491 has been approved by pcwalton

@bors-servo
Copy link
Contributor

bors-servo commented Jan 12, 2016

Testing commit 8808491 with merge ed2910a...

bors-servo added a commit that referenced this pull request Jan 12, 2016
Linux: Fix corruption of big transfers on 32 bit systems

The wrong size calculation magically worked on 64 bit systems, because
2 * sizeof u32 is the same as sizeof usize there -- but not on 32 bit
systems, where this dropped 4 bytes of each full fragment.

With this, Servo works again for me. (And we are down to 4 failing ipc-channel tests on my system...)
@bors-servo
Copy link
Contributor

bors-servo commented Jan 12, 2016

💔 Test failed - travis

@Ms2ger
Copy link
Contributor

Ms2ger commented Jan 13, 2016

@bors-servo retry

@bors-servo
Copy link
Contributor

bors-servo commented Jan 13, 2016

Testing commit 8808491 with merge cb08050...

bors-servo added a commit that referenced this pull request Jan 13, 2016
Linux: Fix corruption of big transfers on 32 bit systems

The wrong size calculation magically worked on 64 bit systems, because
2 * sizeof u32 is the same as sizeof usize there -- but not on 32 bit
systems, where this dropped 4 bytes of each full fragment.

With this, Servo works again for me. (And we are down to 4 failing ipc-channel tests on my system...)
@bors-servo
Copy link
Contributor

bors-servo commented Jan 13, 2016

☀️ Test successful - travis

@bors-servo bors-servo merged commit 8808491 into servo:master Jan 13, 2016
1 check was pending
1 check was pending
homu Testing commit 8808491 with merge cb08050...
Details
antrik added a commit to antrik/servo that referenced this pull request Jan 13, 2016
This pulls in servo/ipc-channel#25 and
servo/ipc-channel#12 servo#27, thus fixing fallout
from the multiprocess split, and making Servo work on my system again.

(It also pulls in servo/ipc-channel#12 -- I
guess that's fine?)
antrik added a commit to antrik/servo that referenced this pull request Jan 13, 2016
This pulls in servo/ipc-channel#25 and
servo/ipc-channel#27, thus fixing fallout from
the multiprocess split, and making Servo work on my system again.

(It also pulls in servo/ipc-channel#12 -- I
guess that's fine?)
bors-servo added a commit to servo/servo that referenced this pull request Jan 14, 2016
cargo-update ipc-channel to get important fixes

This pulls in servo/ipc-channel#25 and
servo/ipc-channel#27, thus fixing fallout from
the multiprocess split, and making Servo work on my system again.

(It also pulls in servo/ipc-channel#12 -- I
guess that's fine?)

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9299)
<!-- Reviewable:end -->
bors-servo added a commit to servo/servo that referenced this pull request Jan 14, 2016
cargo-update ipc-channel to get important fixes

This pulls in servo/ipc-channel#25 and
servo/ipc-channel#27, thus fixing fallout from
the multiprocess split, and making Servo work on my system again.

(It also pulls in servo/ipc-channel#12 -- I
guess that's fine?)

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9299)
<!-- Reviewable:end -->
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 1, 2019
…(from antrik:update-ipc_channel); r=pcwalton

This pulls in servo/ipc-channel#25 and
servo/ipc-channel#27, thus fixing fallout from
the multiprocess split, and making Servo work on my system again.

(It also pulls in servo/ipc-channel#12 -- I
guess that's fine?)

Source-Repo: https://github.com/servo/servo
Source-Revision: 42372dbdf112c1c2967c4487401b28e7305c2993

UltraBlame original commit: d16cecf007bc7760538afc4ec593b1d6580648f2
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 1, 2019
…(from antrik:update-ipc_channel); r=pcwalton

This pulls in servo/ipc-channel#25 and
servo/ipc-channel#27, thus fixing fallout from
the multiprocess split, and making Servo work on my system again.

(It also pulls in servo/ipc-channel#12 -- I
guess that's fine?)

Source-Repo: https://github.com/servo/servo
Source-Revision: 42372dbdf112c1c2967c4487401b28e7305c2993

UltraBlame original commit: d16cecf007bc7760538afc4ec593b1d6580648f2
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 1, 2019
…(from antrik:update-ipc_channel); r=pcwalton

This pulls in servo/ipc-channel#25 and
servo/ipc-channel#27, thus fixing fallout from
the multiprocess split, and making Servo work on my system again.

(It also pulls in servo/ipc-channel#12 -- I
guess that's fine?)

Source-Repo: https://github.com/servo/servo
Source-Revision: 42372dbdf112c1c2967c4487401b28e7305c2993

UltraBlame original commit: d16cecf007bc7760538afc4ec593b1d6580648f2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.