{"action":"created","issue":{"url":"https://api.github.com/repos/servo/servo/issues/6598","labels_url":"https://api.github.com/repos/servo/servo/issues/6598/labels{/name}","comments_url":"https://api.github.com/repos/servo/servo/issues/6598/comments","events_url":"https://api.github.com/repos/servo/servo/issues/6598/events","html_url":"https://github.com/servo/servo/issues/6598","id":94445905,"number":6598,"title":"Panic at 'This element should be in registered.'","user":{"login":"jruderman","id":692547,"avatar_url":"https://avatars.githubusercontent.com/u/692547?v=3","gravatar_id":"","url":"https://api.github.com/users/jruderman","html_url":"https://github.com/jruderman","followers_url":"https://api.github.com/users/jruderman/followers","following_url":"https://api.github.com/users/jruderman/following{/other_user}","gists_url":"https://api.github.com/users/jruderman/gists{/gist_id}","starred_url":"https://api.github.com/users/jruderman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jruderman/subscriptions","organizations_url":"https://api.github.com/users/jruderman/orgs","repos_url":"https://api.github.com/users/jruderman/repos","events_url":"https://api.github.com/users/jruderman/events{/privacy}","received_events_url":"https://api.github.com/users/jruderman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/servo/servo/labels/A-content/dom","name":"A-content/dom","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-11T06:45:58Z","updated_at":"2015-07-18T13:59:52Z","closed_at":null,"body":"This testcase reduced from DOMFuzz output:\r\n\r\n    <script>\r\n\r\n    var x1 = document.createElement(\"div\");\r\n    x1.id = \"x\";\r\n\r\n    var x2 = document.createElement(\"div\");\r\n    x2.id = \"x\";\r\n\r\n    document.cloneNode(false).appendChild(x1);\r\n    x1.appendChild(x2);\r\n    x1.innerHTML = \"\";\r\n\r\n    </script>\r\n\r\ngives me a double panic:\r\n\r\n    thread 'ScriptTask PipelineId(0)' panicked at 'This element should be in registered.', src/libcore/option.rs:330\r\n    thread 'ScriptTask PipelineId(0)' panicked at 'assertion failed: *self.stack == mem::transmute(&*self)', /Users/jruderman/code/servo/.cargo/git/checkouts/rust-mozjs-ebb4917e843c0a11/master/src/rust.rs:286\r\n    stack backtrace:\r\n       1:        0x10533e3b5 - sys::backtrace::write::he3deb85ec8e4ed0bVns\r\n       2:        0x105341b23 - panicking::on_panic::h21c33173ec16d38c2Fw\r\n       3:        0x10532f4e2 - rt::unwind::begin_unwind_inner::h31480c30be70e77aeow\r\n       4:        0x1036718ac - rt::unwind::begin_unwind::h12621217613621779145\r\n       5:        0x1036ed965 - rust::Rooted<T>.Drop::drop::h11257467317822946514\r\n       6:        0x1036ed8a1 - js..jsapi..Rooted<js..jsapi..Value>::drop.99065::h656ecb8cd2a92d17\r\n       7:        0x103d1d451 - dom::htmlscriptelement::_&'a HTMLScriptElement.HTMLScriptElementHelpers::execute::h3be4634aa2464021b5G\r\n       8:        0x103d201fd - dom::htmlscriptelement::_&'a HTMLScriptElement.HTMLScriptElementHelpers::prepare::hd6e101d78a5186d4DWG\r\n       9:        0x103d9ca2d - parse::html::servohtmlparser..Sink.TreeSink::complete_script::h18035588cf8d3c43x5W\r\n      10:        0x103d8155e - tree_builder::rules::super..TreeBuilder<Handle, Sink>.TreeBuilderStep::step::h17008305531552599251\r\n      11:        0x103d6a46e - tree_builder::TreeBuilder<Handle, Sink>::process_to_completion::h8223998176049926096\r\n      12:        0x103d65359 - tree_builder::TreeBuilder<Handle, Sink>.TokenSink::process_token::h2524722075684777927\r\n      13:        0x103d64380 - tokenizer::Tokenizer<Sink>::process_token::h12129904937690610194\r\n      14:        0x103db01f5 - tokenizer::Tokenizer<Sink>::emit_current_tag::h11768916041307476234\r\n      15:        0x103da74e6 - tokenizer::Tokenizer<Sink>::step::h2312843459721656747\r\n      16:        0x103da42d5 - tokenizer::Tokenizer<Sink>::run::h9932678488722589748\r\n      17:        0x103dc84f7 - tokenizer::Tokenizer<Sink>::feed::h14317537553574973601\r\n      18:        0x103d5e93b - dom::servohtmlparser::_&'a ServoHTMLParser.PrivateServoHTMLParserHelpers::parse_sync::hbebd302c98563a53bWO\r\n      19:        0x103d5f46d - dom::servohtmlparser::_&'a ServoHTMLParser.Parser::parse_chunk::ha19ae84ee39b2be1bPO\r\n      20:        0x103d5ecdc - dom::servohtmlparser::ParserContext.AsyncResponseListener::data_available::h3fa1c63634eac9dfKJO\r\n      21:        0x104c70c0f - ResponseAction::process::hb9808a856199b4a8iya\r\n      22:        0x103f12efe - network_listener::ListenerRunnable<T>.Runnable::handler::h3000608204475126608\r\n      23:        0x103ec394f - script_task::ScriptTask::handle_msg_from_script::h314bac6bfa6e4b21yjY\r\n      24:        0x103ec9754 - script_task::ScriptTask::handle_msgs::hfe2a35eb90743ef2o7X\r\n      25:        0x103ec7bb1 - script_task::ScriptTask::start::hf9508e3515bf07c0e7X\r\n      26:        0x102ccec5b - script_task::ScriptTask.ScriptTaskFactory::create::closure.17846\r\n      27:        0x102cce334 - task::spawn_named_with_send_on_failure::closure.17840\r\n      28:        0x102cce254 - boxed::F.FnBox<A>::call_box::h5713626361034408555\r\n      29:        0x102bf5c30 - boxed::Box<FnBox<A, Output $u3d$$u20$R$GT$$u2b$$u20$Send$u20$$u2b$$u20$$u27$a$GT$.FnOnce$LT$A$GT$::call_once::h1261975696106313034\r\n      30:        0x102bf56a2 - thread::Builder::spawn_inner::closure.11162\r\n      31:        0x102bf561e - rt::unwind::try::try_fn::__rust_abi::h6715557702776406330\r\n      32:        0x102bf55b9 - rt::unwind::try::try_fn::h6715557702776406330\r\n      33:        0x1053432d8 - rust_try_inner\r\n      34:        0x1053432c5 - rust_try\r\n      35:        0x10533c955 - rt::unwind::try::inner_try::h25d204b9a867a7067jw\r\n      36:        0x102bf5518 - rt::unwind::try::h9676544153665438131\r\n      37:        0x102bf5351 - thread::Builder::spawn_inner::closure.11111\r\n      38:        0x102bf5f4d - boxed::F.FnBox<A>::call_box::h494122744894092804\r\n      39:        0x10534029d - sys::thread::Thread::new::thread_start::h7529cef3921faffbrIv\r\n      40:     0x7fff8acfc267 - _pthread_body\r\n      41:     0x7fff8acfc1e4 - _pthread_start\r\n    thread panicked while panicking. aborting.\r\n\r\n(Is a double panic two bugs? I'm not sure how to report this.)"},"comment":{"url":"https://api.github.com/repos/servo/servo/issues/comments/122546968","html_url":"https://github.com/servo/servo/issues/6598#issuecomment-122546968","issue_url":"https://api.github.com/repos/servo/servo/issues/6598","id":122546968,"user":{"login":"nox","id":123095,"avatar_url":"https://avatars.githubusercontent.com/u/123095?v=3","gravatar_id":"","url":"https://api.github.com/users/nox","html_url":"https://github.com/nox","followers_url":"https://api.github.com/users/nox/followers","following_url":"https://api.github.com/users/nox/following{/other_user}","gists_url":"https://api.github.com/users/nox/gists{/gist_id}","starred_url":"https://api.github.com/users/nox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nox/subscriptions","organizations_url":"https://api.github.com/users/nox/orgs","repos_url":"https://api.github.com/users/nox/repos","events_url":"https://api.github.com/users/nox/events{/privacy}","received_events_url":"https://api.github.com/users/nox/received_events","type":"User","site_admin":false},"created_at":"2015-07-18T13:59:52Z","updated_at":"2015-07-18T13:59:52Z","body":"#6660 fixes this, AFAICT."}}