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

Address common source of shutdown panics #14119

Merged
merged 2 commits into from Nov 8, 2016
Merged

Address common source of shutdown panics #14119

merged 2 commits into from Nov 8, 2016

Conversation

jdm
Copy link
Member

@jdm jdm commented Nov 7, 2016

Remove easy sources of intermittent failures during test shutdown. Might help #14118 and #14117.


This change is Reviewable

@highfive
Copy link

highfive commented Nov 7, 2016

Heads up! This PR modifies the following files:

  • @fitzgen: components/profile_traits/time.rs, components/profile_traits/time.rs, components/profile_traits/mem.rs, components/profile_traits/mem.rs

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 7, 2016
@jdm
Copy link
Member Author

jdm commented Nov 7, 2016

@rzambre Do these patches make #14117 better?

@jdm jdm changed the title Jdm patch 1 Address common source of shutdown panics Nov 7, 2016
@rzambre
Copy link
Contributor

rzambre commented Nov 7, 2016

@jdm I tried out the patches but it is alas the same. The out.png file actually gets created and it has a seemingly right output image but Servo always terminates with panics. Running ./mach run -r -x -o out.png http://www.ehow.com gives the following output

ERROR:script::dom::bindings::error: Error at http://www.ehow.com/:1:1 $ is not defined
ERROR:script::dom::bindings::error: Error at http://www.ehow.com/:1:1 $ is not defined
ERROR:script::dom::bindings::error: Error at http://dynamic01.ehowcdn.com/test4/services/modules/js/pagination_ajax,evidon,rev_tag,dm_track,comscore,quantcast,common_footer/cf732fd7/:1:21809 r[a] is undefined
ERROR:script::dom::bindings::error: Error at http://js-agent.newrelic.com/nr-974.min.js:1:8248 n is undefined
Shutting down the Constellation after generating an output file or exit flag specified
called Result::unwrap() on an Err value: Error { repr: Custom(Custom { kind: NotFound, error: StringError("Bogus destination port.") }) } (thread ScriptThread PipelineId { namespace_id: PipelineNamespaceId(1), index: PipelineIndex(1) }, at ../src/libcore/result.rs:837)
called Result::unwrap() on an Err value: Error { repr: Custom(Custom { kind: NotFound, error: StringError("Bogus destination port.") }) } (thread LayoutThread PipelineId { namespace_id: PipelineNamespaceId(1), index: PipelineIndex(1) }, at ../src/libcore/result.rs:837)
stack backtrace:
0: 0x10a34be8e - backtrace::backtrace::trace::h16372ee7bf1517e5
1: 0x10a34c17c - backtrace::capture::Backtrace::new::hcc43c50c4b11c693
2: 0x10a0138c4 - servo::main::_{{closure}}::h3c01218599dd921e
3: 0x10b9d6d03 - std::panicking::rust_panic_with_hook::h00b81bb3dcbd51f2
4: 0x10b9d6bd4 - std::panicking::begin_panic::ha6a0d553db9869ff
5: 0x10b9d6af2 - std::panicking::begin_panic_fmt::h24d113aee3ee4081
6: 0x10b9d6a57 - rust_begin_unwind
7: 0x10ba03820 - core::panicking::panic_fmt::he441b2ea2036b98a
8: 0x10b602ac0 - core::result::unwrap_failed::h88381ff2d9927dee
9: 0x10b60345d - profile_traits::mem::ProfilerChan::send::h7c5621ed4725ec45
10: 0x10a583088 - std::panicking::try::do_call::haf3d92fc2a8a22cf
11: 0x10b9d7d2a - __rust_maybe_catch_panic
12: 0x10a66e766 - _<F as alloc..boxed..FnBox>::call_box::h3c3214512a55a996
13: 0x10b9d5bb4 - std::sys::thread::Thread::new::thread_start::h9fa66f6812e81e10
14: 0x7fff89e8c99c - _pthread_body
15: 0x7fff89e8c919 - pthread_start
ERROR:servo: called Result::unwrap() on an Err value: Error { repr: Custom(Custom { kind: NotFound, error: StringError("Bogus destination port.") }) }
stack backtrace:
0: 0x10a34be8e - backtrace::backtrace::trace::h16372ee7bf1517e5
1: 0x10a34c17c - backtrace::capture::Backtrace::new::hcc43c50c4b11c693
2: 0x10a0138c4 - servo::main::
{{closure}}::h3c01218599dd921e
3: 0x10b9d6d03 - std::panicking::rust_panic_with_hook::h00b81bb3dcbd51f2
4: 0x10b9d6bd4 - std::panicking::begin_panic::ha6a0d553db9869ff
5: 0x10b9d6af2 - std::panicking::begin_panic_fmt::h24d113aee3ee4081
6: 0x10b9d6a57 - rust_begin_unwind
7: 0x10ba03820 - core::panicking::panic_fmt::he441b2ea2036b98a
8: 0x10b602ac0 - core::result::unwrap_failed::h88381ff2d9927dee
9: 0x10b60345d - profile_traits::mem::ProfilerChan::send::h7c5621ed4725ec45
10: 0x10a3759e4 - std::panicking::try::do_call::h89962fd2c03af2c0
11: 0x10b9d7d2a - __rust_maybe_catch_panic
12: 0x10a39e065 - _<F as alloc..boxed..FnBox>::call_box::h3f1a458da3a01818
13: 0x10b9d5bb4 - std::sys::thread::Thread::new::thread_start::h9fa66f6812e81e10
14: 0x7fff89e8c99c - _pthread_body
15: 0x7fff89e8c919 - pthread_start
ERROR:servo: called Result::unwrap() on an Err value: Error { repr: Custom(Custom { kind: NotFound, error: StringError("Bogus destination port.") }) }
called Result::unwrap() on an Err value: Error { repr: Custom(Custom { kind: NotFound, error: StringError("Bogus destination port.") }) } (thread ScriptThread PipelineId { namespace_id: PipelineNamespaceId(0), index: PipelineIndex(1) }, at ../src/libcore/result.rs:837)
stack backtrace:
0: 0x10a34be8e - backtrace::backtrace::trace::h16372ee7bf1517e5
1: 0x10a34c17c - backtrace::capture::Backtrace::new::hcc43c50c4b11c693
2: 0x10a0138c4 - servo::main::
{{closure}}::h3c01218599dd921e
3: 0x10b9d6d03 - std::panicking::rust_panic_with_hook::h00b81bb3dcbd51f2
4: 0x10b9d6bd4 - std::panicking::begin_panic::ha6a0d553db9869ff
5: 0x10b9d6af2 - std::panicking::begin_panic_fmt::h24d113aee3ee4081
6: 0x10b9d6a57 - rust_begin_unwind
7: 0x10ba03820 - core::panicking::panic_fmt::he441b2ea2036b98a
8: 0x10b602ac0 - core::result::unwrap_failed::h88381ff2d9927dee
9: 0x10b60345d - profile_traits::mem::ProfilerChan::send::h7c5621ed4725ec45
10: 0x10a583088 - std::panicking::try::do_call::haf3d92fc2a8a22cf
11: 0x10b9d7d2a - __rust_maybe_catch_panic
12: 0x10a66e766 - _<F as alloc..boxed..FnBox>::call_box::h3c3214512a55a996
13: 0x10b9d5bb4 - std::sys::thread::Thread::new::thread_start::h9fa66f6812e81e10
14: 0x7fff89e8c99c - _pthread_body
15: 0x7fff89e8c919 - pthread_start
ERROR:servo: called Result::unwrap() on an Err value: Error { repr: Custom(Custom { kind: NotFound, error: StringError("Bogus destination port.") }) }
called Result::unwrap() on an Err value: Error { repr: Custom(Custom { kind: NotFound, error: StringError("Bogus destination port.") }) } (thread LayoutThread PipelineId { namespace_id: PipelineNamespaceId(0), index: PipelineIndex(1) }, at ../src/libcore/result.rs:837)
stack backtrace:
0: 0x10a34be8e - backtrace::backtrace::trace::h16372ee7bf1517e5
1: 0x10a34c17c - backtrace::capture::Backtrace::new::hcc43c50c4b11c693
2: 0x10a0138c4 - servo::main::
{{closure}}::h3c01218599dd921e
3: 0x10b9d6d03 - std::panicking::rust_panic_with_hook::h00b81bb3dcbd51f2
4: 0x10b9d6bd4 - std::panicking::begin_panic::ha6a0d553db9869ff
5: 0x10b9d6af2 - std::panicking::begin_panic_fmt::h24d113aee3ee4081
6: 0x10b9d6a57 - rust_begin_unwind
7: 0x10ba03820 - core::panicking::panic_fmt::he441b2ea2036b98a
8: 0x10b602ac0 - core::result::unwrap_failed::h88381ff2d9927dee
9: 0x10b60345d - profile_traits::mem::ProfilerChan::send::h7c5621ed4725ec45
10: 0x10a3759e4 - std::panicking::try::do_call::h89962fd2c03af2c0
11: 0x10b9d7d2a - __rust_maybe_catch_panic
12: 0x10a39e065 - _<F as alloc..boxed..FnBox>::call_box::h3f1a458da3a01818
13: 0x10b9d5bb4 - std::sys::thread::Thread::new::thread_start::h9fa66f6812e81e10
14: 0x7fff89e8c99c - _pthread_body
15: 0x7fff89e8c919 - _pthread_start
ERROR:servo: called Result::unwrap() on an Err value: Error { repr: Custom(Custom { kind: NotFound, error: StringError("Bogus destination port.") }) }

@jdm
Copy link
Member Author

jdm commented Nov 8, 2016

That's strange - the backtraces seem to show panics occurring in the code that I modified. Either that's not a build that includes the changes in these commits, or the unwrap is coming from ipc-channel internals.

@mbrubeck
Copy link
Contributor

mbrubeck commented Nov 8, 2016

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit 7ad9bac has been approved by mbrubeck

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Nov 8, 2016
@bors-servo
Copy link
Contributor

⌛ Testing commit 7ad9bac with merge 5173a65...

bors-servo pushed a commit that referenced this pull request Nov 8, 2016
Address common source of shutdown panics

Remove easy sources of intermittent failures during test shutdown. Might help #14118 and #14117.

<!-- 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/14119)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

@bors-servo bors-servo merged commit 7ad9bac into master Nov 8, 2016
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 8, 2016
@Ms2ger Ms2ger deleted the jdm-patch-1 branch November 10, 2016 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants