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

[hololens] Handle servo panic #23983

Merged
merged 1 commit into from Aug 21, 2019
Merged

[hololens] Handle servo panic #23983

merged 1 commit into from Aug 21, 2019

Conversation

@paulrouget
Copy link
Contributor

paulrouget commented Aug 16, 2019

Depends on #23981

Fix #23937

I've used a different approach than checking the return code of every single functions.
Basically calling a C function on panic.

That means the errors are not recoverable. I think it's fine for now.

I'm open to any other better approach.

@jdm what do you think?


This change is Reviewable

@highfive
Copy link

highfive commented Aug 16, 2019

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!
@ferjm
Copy link
Member

ferjm commented Aug 19, 2019

r? @jdm

@highfive highfive assigned jdm and unassigned ferjm Aug 19, 2019
This was referenced Aug 19, 2019
@jdm
jdm approved these changes Aug 19, 2019
@jdm
Copy link
Member

jdm commented Aug 19, 2019

This seems like a useful path forward.

@paulrouget paulrouget force-pushed the paulrouget:handlePanic branch from f236cb2 to 449389f Aug 20, 2019
@jdm
Copy link
Member

jdm commented Aug 20, 2019

This needs a mach fmt.

@jdm jdm added S-fails-tidy and removed S-awaiting-review labels Aug 20, 2019
@paulrouget paulrouget force-pushed the paulrouget:handlePanic branch from 449389f to 3933b43 Aug 21, 2019
@jdm
Copy link
Member

jdm commented Aug 21, 2019

@bors-servo
Copy link
Contributor

bors-servo commented Aug 21, 2019

📌 Commit 3933b43 has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Aug 21, 2019

Testing commit 3933b43 with merge 5f89dc8...

bors-servo added a commit that referenced this pull request Aug 21, 2019
[hololens] Handle servo panic

Depends on #23981

Fix #23937

I've used a different approach than checking the return code of every single functions.
Basically calling a C function on panic.

That means the errors are not recoverable. I think it's fine for now.

I'm open to any other better approach.

@jdm what do you think?

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23983)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Aug 21, 2019

☀️ Test successful - linux-rel-css, linux-rel-wpt, status-taskcluster
Approved by: jdm
Pushing 5f89dc8 to master...

bors-servo added a commit that referenced this pull request Aug 21, 2019
Do not leak the CAPI strings

Depends on #23983

I haven't remove the mem::forget here: https://github.com/servo/servo/blob/6528c0d9b7b36fbdffc29bab99e0066b83a7f970/ports/libsimpleservo/capi/src/lib.rs#L228

What would be the right approach in that specific case?

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23998)
<!-- Reviewable:end -->
@bors-servo bors-servo merged commit 3933b43 into servo:master Aug 21, 2019
3 checks passed
3 checks passed
Taskcluster (pull_request) TaskGroup: success
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
This was referenced Aug 21, 2019
bors-servo added a commit that referenced this pull request Aug 22, 2019
Do not leak the CAPI strings

Depends on #23983

I haven't remove the mem::forget here: https://github.com/servo/servo/blob/6528c0d9b7b36fbdffc29bab99e0066b83a7f970/ports/libsimpleservo/capi/src/lib.rs#L228

What would be the right approach in that specific case?

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23998)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this pull request Aug 22, 2019
Missing C methods

Depends on #23983

Fix #23969

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23999)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this pull request Aug 23, 2019
Missing C methods

Depends on #23983

Fix #23969

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23999)
<!-- Reviewable:end -->
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.

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