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

Crash with absolute positioning in a pseudo element #2335

Closed
glennw opened this issue May 5, 2014 · 2 comments
Closed

Crash with absolute positioning in a pseudo element #2335

glennw opened this issue May 5, 2014 · 2 comments

Comments

@glennw
Copy link
Member

@glennw glennw commented May 5, 2014

The following HTML file causes a crash in Servo:

<!DOCTYPE html>
<html>
  <head>
    <style>
        div:before {
            position: absolute;
        }
    </style>
  </head>
  <body>
    <div>
    </div>
  </body>
</html>

The backtrace is:

task 'LayoutWorker' failed at 'Unscanned text boxes should have been scanned by now!', /home/gw/git/glennw/servo/src/components/main/layout/box_.rs:1024
task 'LayoutWorker' failed at 'Flow destroyed by going out of scope—this is unsafe! Use `destroy()` instead!', /home/gw/git/glennw/servo/src/components/main/layout/flow.rs:717
task failed during unwinding (double-failure - total drag!)
rust must abort now. so sorry.
stack backtrace:
   1:           0xcbfb50 - rt::backtrace::imp::write::h20b2a253523568f8hAa::v0.11.pre
   2:           0xc21680 - rt::unwind::begin_unwind_inner::h5cdcaedfe5671988Kaa::v0.11.pre
   3:           0x4179a0 - rt::unwind::begin_unwind::hb573de175348542e3Vu::v0.0
   4:           0x4c87c0 - layout..flow..BaseFlow::glue_drop.27638::h33615c0f48f2cac5
   5:           0x4f68b0 - _$UP$layout..block..BlockFlow::glue_drop.28212::hd110dd0c9b64b70e
   6:           0x4ec330 - layout::construct::FlowConstructor$LT$$x27a$GT$::build_flow_using_children::hbed88b6703f91593v9j::v0.0
   7:           0x4f6750 - layout::construct::FlowConstructor$LT$$x27a$GT$::build_flow_for_block::h13dcda734c922d30Jck::v0.0
   8:           0x4ec330 - layout::construct::FlowConstructor$LT$$x27a$GT$::build_flow_using_children::hbed88b6703f91593v9j::v0.0
   9:           0x4f6750 - layout::construct::FlowConstructor$LT$$x27a$GT$::build_flow_for_block::h13dcda734c922d30Jck::v0.0
  10:           0x5904f0 - layout::parallel::construct_flows::hded7cd82ff120d0c30p::v0.0
  11:           0x58f830 - layout::parallel::recalc_style_for_node::hfcce868b43c368fcbXp::v0.0
  12:           0x52c7f0 - workqueue::WorkQueue$LT$QUD$C$$x20WUD$GT$::new::closure.29740
  13:           0xb37710 - task::spawn_opts::closure.7809
  14:           0xcbafe0 - rt::task::Task::run::closure.39839
  15:           0xcc6160 - rust_try
  16:           0xcbae20 - rt::task::Task::run::h5bd302fd35f8e8dcq37::v0.11.pre
  17:           0xb374e0 - task::spawn_opts::closure.7782
  18:           0xcbe690 - rt::thread::thread_start::h9592df87b1a9c3b17H8::v0.11.pre
  19:     0x7f3eec47a0c0 - start_thread
  20:     0x7f3eeacb62d9 - __clone
  21:                0x0 - <unknown>
Illegal instruction (core dumped)
@jdm
Copy link
Member

@jdm jdm commented May 5, 2014

Worth checking if solving this solves #2065 too.

glennw pushed a commit to glennw/servo that referenced this issue May 13, 2014
glennw pushed a commit to glennw/servo that referenced this issue May 21, 2014
@mbrubeck
Copy link
Contributor

@mbrubeck mbrubeck commented May 22, 2014

Fixed by #2411.

@mbrubeck mbrubeck closed this May 22, 2014
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
3 participants
You can’t perform that action at this time.