Skip to content

Hubs panics during CSP calculation #24702

@jdm

Description

@jdm
not yet implemented (thread ScriptThread PipelineId { namespace_id: PipelineNamespaceId(1), index: PipelineIndex(1) }, at /Users/jdm/.cargo/registry/src/github.com-1ecc6299db9ec823/content-security-policy-0.3.0/src/lib.rs:1400)
stack backtrace:
   0: backtrace::backtrace::libunwind::trace
             at /Users/jdm/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.38/src/backtrace/libunwind.rs:88
      backtrace::backtrace::trace_unsynchronized
             at /Users/jdm/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.38/src/backtrace/mod.rs:66
   1: backtrace::backtrace::trace
             at /Users/jdm/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.38/src/backtrace/mod.rs:53
   2: backtrace::capture::Backtrace::create
             at /Users/jdm/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.38/src/capture.rs:164
   3: backtrace::capture::Backtrace::new
             at /Users/jdm/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.38/src/capture.rs:128
   4: servo::main::{{closure}}
             at ports/glutin/main2.rs:142
   5: std::panicking::rust_panic_with_hook
             at src/libstd/panicking.rs:472
   6: bytes::bytes::abort
   7: content_security_policy::HashAlgorithm::apply
             at /Users/jdm/.cargo/registry/src/github.com-1ecc6299db9ec823/content-security-policy-0.3.0/src/lib.rs:1400
   8: content_security_policy::SourceList<U,I>::does_element_match_source_list_for_type_and_source
             at /Users/jdm/.cargo/registry/src/github.com-1ecc6299db9ec823/content-security-policy-0.3.0/src/lib.rs:1106
   9: content_security_policy::Directive::inline_check
             at /Users/jdm/.cargo/registry/src/github.com-1ecc6299db9ec823/content-security-policy-0.3.0/src/lib.rs:810
  10: content_security_policy::CspList::should_elements_inline_type_behavior_be_blocked
             at /Users/jdm/.cargo/registry/src/github.com-1ecc6299db9ec823/content-security-policy-0.3.0/src/lib.rs:259
  11: script::dom::document::Document::should_elements_inline_type_behavior_be_blocked::{{closure}}
             at components/script/dom/document.rs:2840
  12: core::option::Option<T>::map
             at /rustc/246be7e1a557b8ac8287c6842379a0db67770be6/src/libcore/option.rs:447
  13: script::dom::document::Document::should_elements_inline_type_behavior_be_blocked
             at components/script/dom/document.rs:2838
  14: script::dom::htmlscriptelement::HTMLScriptElement::prepare
             at components/script/dom/htmlscriptelement.rs:434
  15: script::dom::servoparser::ServoParser::tokenize
             at components/script/dom/servoparser/mod.rs:563
  16: script::dom::servoparser::ServoParser::do_parse_sync
             at components/script/dom/servoparser/mod.rs:517
  17: script::dom::servoparser::ServoParser::parse_sync::{{closure}}
             at components/script/dom/servoparser/mod.rs:499
  18: profile_traits::time::profile
             at components/profile_traits/time.rs:147
  19: script::dom::servoparser::ServoParser::parse_sync
             at components/script/dom/servoparser/mod.rs:491
  20: script::dom::servoparser::ServoParser::parse_bytes_chunk
             at components/script/dom/servoparser/mod.rs:542
  21: <script::dom::servoparser::ParserContext as net_traits::FetchResponseListener>::process_response_chunk
             at components/script/dom/servoparser/mod.rs:853
  22: script::script_thread::ScriptThread::handle_fetch_chunk
             at components/script/script_thread.rs:3781
  23: script::script_thread::ScriptThread::handle_msg_from_constellation
             at components/script/script_thread.rs:1828
  24: script::script_thread::ScriptThread::handle_msgs::{{closure}}
             at components/script/script_thread.rs:1553
  25: script::script_thread::ScriptThread::profile_event
             at components/script/script_thread.rs:1796
  26: script::script_thread::ScriptThread::handle_msgs
             at components/script/script_thread.rs:1547
  27: script::script_thread::ScriptThread::start
             at components/script/script_thread.rs:1380
  28: <script::script_thread::ScriptThread as script_traits::ScriptThreadFactory>::create::{{closure}}::{{closure}}
             at components/script/script_thread.rs:806
  29: profile_traits::mem::ProfilerChan::run_with_memory_reporting
             at components/profile_traits/mem.rs:88
  30: <script::script_thread::ScriptThread as script_traits::ScriptThreadFactory>::create::{{closure}}
             at components/script/script_thread.rs:804
  31: std::sys_common::backtrace::__rust_begin_short_backtrace
             at /rustc/246be7e1a557b8ac8287c6842379a0db67770be6/src/libstd/sys_common/backtrace.rs:129
  32: std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}
             at /rustc/246be7e1a557b8ac8287c6842379a0db67770be6/src/libstd/thread/mod.rs:469
  33: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
             at /rustc/246be7e1a557b8ac8287c6842379a0db67770be6/src/libstd/panic.rs:317
  34: std::panicking::try::do_call
             at /rustc/246be7e1a557b8ac8287c6842379a0db67770be6/src/libstd/panicking.rs:287
  35: __rust_maybe_catch_panic
             at src/libpanic_unwind/lib.rs:80
  36: std::panicking::try
             at /rustc/246be7e1a557b8ac8287c6842379a0db67770be6/src/libstd/panicking.rs:265
  37: std::panic::catch_unwind
             at /rustc/246be7e1a557b8ac8287c6842379a0db67770be6/src/libstd/panic.rs:396
  38: std::thread::Builder::spawn_unchecked::{{closure}}
             at /rustc/246be7e1a557b8ac8287c6842379a0db67770be6/src/libstd/thread/mod.rs:468
  39: core::ops::function::FnOnce::call_once{{vtable.shim}}
             at /rustc/246be7e1a557b8ac8287c6842379a0db67770be6/src/libcore/ops/function.rs:227
  40: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
             at /rustc/246be7e1a557b8ac8287c6842379a0db67770be6/src/liballoc/boxed.rs:942
  41: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
             at /rustc/246be7e1a557b8ac8287c6842379a0db67770be6/src/liballoc/boxed.rs:942
      std::sys_common::thread::start_thread
             at src/libstd/sys_common/thread.rs:13
      std::sys::unix::thread::Thread::new::thread_start
             at src/libstd/sys/unix/thread.rs:79
  42: <unknown>
  43: <unknown>

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/scriptRelated to the script threadI-panicServo encounters a panic.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions