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

South China Sea causes parser failure while setting attributes #1976

Closed
jdm opened this issue Mar 24, 2014 · 0 comments
Closed

South China Sea causes parser failure while setting attributes #1976

jdm opened this issue Mar 24, 2014 · 0 comments

Comments

@jdm
Copy link
Member

@jdm jdm commented Mar 24, 2014

http://en.wikipedia.org/wiki/South_China_Sea

task 'ScriptTask' failed at 'assertion failed: element.set_attr(attr.name.clone(), attr.value.clone()).is_ok()', /home/jdm/sdb/servo/src/components/script/html/hubbub_html_parser.rs:341

#0  0x0000000000f98720 in rust_fail ()
#1  0x0000000000f986f3 in rt::unwind::Unwinder::begin_unwind::h7020357fb8f0f7c6K4a::v0.10.pre ()
#2  0x0000000000eff32a in rt::unwind::begin_unwind_inner::h1ab4329e67a1c8afWfb::v0.10.pre ()
#3  0x0000000000efe2ee in rt::unwind::begin_unwind_fmt::h9836695233dc69b46eb::v0.10.pre ()
#4  0x0000000000aff8a1 in fn52266 (tag=0x7fffe801f900) at <std macros>:4
#5  0x0000000000bd1144 in hubbub::tree_callbacks::create_element::ha0fee73ef4279770LQa::v0.1 ()
#6  0x00000000013db257 in insert_element ()
#7  0x00000000013df42d in handle_in_body ()
#8  0x00000000013dff33 in handle_in_cell ()
#9  0x00000000013da4bd in hubbub_treebuilder_token_handler ()
#10 0x00000000013d01e3 in hubbub_tokeniser_emit_token ()
#11 0x00000000013d9b53 in hubbub_tokeniser_run ()
#12 0x00000000013d0069 in hubbub_parser_parse_chunk ()
#13 0x0000000000bd276f in hubbub::hubbub::Parser<'a>::parse_chunk (self=0x7ffff4b504d8, data=...) at /home/jdm/sdb/servo/src/support/hubbub/rust-hubbub/hubbub.rs:184
#14 0x0000000000af04d0 in script::html::hubbub_html_parser::parse_html (page=0x7fffe8016110, document=0x7ffff4b51e10, url=..., resource_task=...)
    at /home/jdm/sdb/servo/src/components/script/html/hubbub_html_parser.rs:512
#15 0x0000000000b80a7f in script::script_task::ScriptTask::load (self=0x7fffe80164a0, pipeline_id=..., url=...)
    at /home/jdm/sdb/servo/src/components/script/script_task.rs:791
#16 0x0000000000b738d1 in script::script_task::ScriptTask::handle_msgs (self=0x7fffe80164a0) at /home/jdm/sdb/servo/src/components/script/script_task.rs:603
#17 0x0000000000b72b02 in script::script_task::ScriptTask::start (self=0x7fffe80164a0) at /home/jdm/sdb/servo/src/components/script/script_task.rs:515
#18 0x00000000005780e6 in script_task::ScriptTask::create::closure.24721 ()
#19 0x0000000000bbdb88 in task::bootstrap_green_task::closure.7058 ()
#20 0x0000000000f943e3 in rt::task::Task::run::closure.40680 ()
#21 0x0000000000f9f2ec in rust_try ()
#22 0x0000000000f94242 in rt::task::Task::run::h122390209273cc84148::v0.10.pre ()
#23 0x0000000000bbda3a in task::bootstrap_green_task::hb22836aa95f14942Z5b::v0.10.pre ()
#24 0x0000000000000000 in ?? ()

Backtrace is not very useful even disable optimizations disabled, unfortunately. We need to modify the parser so that whatever attribute setting code it's calling doesn't hit the internal codepath that asserts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.