Repository navigation
Closed
Labels
A-layout/floatsC-has-manual-testcaseA minimal testcase exists that can be run manually.I-crashA crash occurred without any panic.
Description
Steps to reproduce:
- ./mach run --release http://www.reddit.com
- type "servo" in search bar
- hit return
- wait for crash
Unfortunately, I was not able to reproduce the crash in a debug build.
Output of gdb:
Program received signal SIGILL, Illegal instruction.
[Switching to Thread 0x7fff76ff7700 (LWP 9074)]
0x0000555556e4ab00 in oom::hb16faea8639725abavb ()
(gdb) bt
#0 0x0000555556e4ab00 in oom::hb16faea8639725abavb ()
#1 0x0000555555c78e5b in raw_vec::RawVec$LT$T$GT$::double::h14976337971782946621 ()
#2 0x0000555555c78c98 in inline::LineBreaker::flush_current_line::haf05b18446c54a87WAp ()
#3 0x0000555555b69089 in inline::InlineFlow.Flow::assign_block_size::ha875a1f4e339360bQNq ()
#4 0x0000555555b6dd77 in flow::Flow::assign_block_size_for_inorder_child_if_necessary::h15081466341067635051 ()
#5 0x0000555555b4bd6a in block::BlockFlow.Flow::assign_block_size::h2c18377eb1a0dd94U9b ()
#6 0x0000555555b4c8b8 in block::BlockFlow.Flow::assign_block_size_for_inorder_child_if_necessary::hf758bfff8eb08ac737b ()
#7 0x0000555555b4bd6a in block::BlockFlow.Flow::assign_block_size::h2c18377eb1a0dd94U9b ()
#8 0x0000555555b4c8b8 in block::BlockFlow.Flow::assign_block_size_for_inorder_child_if_necessary::hf758bfff8eb08ac737b ()
#9 0x0000555555b4bd6a in block::BlockFlow.Flow::assign_block_size::h2c18377eb1a0dd94U9b ()
#10 0x0000555555b4c8b8 in block::BlockFlow.Flow::assign_block_size_for_inorder_child_if_necessary::hf758bfff8eb08ac737b ()
#11 0x0000555555b4bd6a in block::BlockFlow.Flow::assign_block_size::h2c18377eb1a0dd94U9b ()
#12 0x0000555555b4c8b8 in block::BlockFlow.Flow::assign_block_size_for_inorder_child_if_necessary::hf758bfff8eb08ac737b ()
#13 0x0000555555b4bd6a in block::BlockFlow.Flow::assign_block_size::h2c18377eb1a0dd94U9b ()
#14 0x0000555555b4c8b8 in block::BlockFlow.Flow::assign_block_size_for_inorder_child_if_necessary::hf758bfff8eb08ac737b ()
#15 0x0000555555b4bd6a in block::BlockFlow.Flow::assign_block_size::h2c18377eb1a0dd94U9b ()
#16 0x0000555555b4c8b8 in block::BlockFlow.Flow::assign_block_size_for_inorder_child_if_necessary::hf758bfff8eb08ac737b ()
#17 0x0000555555b4bd6a in block::BlockFlow.Flow::assign_block_size::h2c18377eb1a0dd94U9b ()
#18 0x0000555555b4c8b8 in block::BlockFlow.Flow::assign_block_size_for_inorder_child_if_necessary::hf758bfff8eb08ac737b ()
#19 0x0000555555b4bd6a in block::BlockFlow.Flow::assign_block_size::h2c18377eb1a0dd94U9b ()
#20 0x0000555555b4c8b8 in block::BlockFlow.Flow::assign_block_size_for_inorder_child_if_necessary::hf758bfff8eb08ac737b ()
#21 0x0000555555b4acc0 in block::BlockFlow.Flow::assign_block_size::h2c18377eb1a0dd94U9b ()
#22 0x0000555555c7a043 in parallel::AssignISizes$LT$$u27$a$GT$.ParallelPreorderFlowTraversal::run_parallel::h2256aabeec0a9302Xps ()
#23 0x0000555555c7b093 in parallel::assign_inline_sizes::h0eaed3af6220f4d1Rss ()
#24 0x0000555555c03719 in boxed::F.FnBox$LT$A$GT$::call_box::h2370011227535464223 ()
#25 0x0000555555bdd48a in rt::unwind::try::try_fn::h13793941100980798619 ()
#26 0x0000555556e3cd90 in __rust_try_inner ()
#27 0x0000555556e3cdcb in __rust_try ()
#28 0x0000555556e37638 in rt::unwind::try::inner_try::h2721e05d3675a507hZw ()
#29 0x0000555555bdd69f in boxed::F.FnBox$LT$A$GT$::call_box::h6594864564942699439 ()
#30 0x0000555556e3bf42 in sys::thread::Thread::new::thread_start::h3e0fc9f59f3e6025X8v ()
#31 0x00007ffff5dd4182 in start_thread (arg=0x7fff76ff7700) at pthread_create.c:312
#32 0x00007ffff72fb47d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
Metadata
Metadata
Assignees
Labels
A-layout/floatsC-has-manual-testcaseA minimal testcase exists that can be run manually.I-crashA crash occurred without any panic.
Activity
metajack commentedon Aug 5, 2015
Do you get an error in the debug build at least? Or just nothing? If this is an overflow like the last one, then probably that would trigger a panic in debug mode.
narfg commentedon Aug 5, 2015
I wasn't patient enough. It also crashes in a debug build. Here is the new stack trace:
metajack commentedon Aug 5, 2015
Seems like we must get into an infinite loop with line breaking or something.
https://github.com/servo/servo/blob/master/components/layout/inline.rs#L394
Is the code in question, and the OOM is almost certainly because this vec is growing without bound.
cc @pcwalton @mbrubeck
mbrubeck commentedon Apr 18, 2016
Reduced test case:
mbrubeck commentedon Apr 18, 2016
The float avoider fails to move a line down when there's no way to fit the first fragment on a line without collisions. For example, the following test case doesn't go into an infinite loop, but it incorrectly lays out the second div overlapping the first:
mbrubeck commentedon Apr 19, 2016
@pcwalton has work in progress in #10691 that fixes this.
sviter commentedon Jan 24, 2018
seems it fixed now