WebKitNix / webkitnix

A WebKit2 port based on POSIX and OpenGL/ES
http://nix.openbossa.org
66 stars 26 forks source link

ASSERTION FAILED: mainAxisExtent - mainAxisBorderAndPaddingExtentForChild(child) >= 0 in WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild #18

Open renatahodovan opened 11 years ago

renatahodovan commented 11 years ago

Nix crashes on the assertion above with the following test:

<html>
   <font style="-webkit-writing-mode:vertical-rl;" >
         <math>
            <msubsup>
               <mtr></mtr>
               <mtr></mtr>
            </msubsup>
         </math>
   </font>
</html>

The backtrace:

Program received signal SIGSEGV, Segmentation fault. 0x00007ffff4d6a339 in WTFCrash () at /home/reni/Data/REPOS/webkitnix/Source/WTF/wtf/Assertions.cpp:339 339 (int )(uintptr_t)0xbbadbeef = 0; (gdb) bt

0 0x00007ffff4d6a339 in WTFCrash ()

at /home/reni/Data/REPOS/webkitnix/Source/WTF/wtf/Assertions.cpp:339

1 0x00007ffff3e69251 in WebCore::RenderFlexibleBox::preferredMainAxisContentExtentForChild (this=0x6cbfe8, child=0x7e6138, hasInfiniteLineLength=false)

at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderFlexibleBox.cpp:758

2 0x00007ffff3e6a519 in WebCore::RenderFlexibleBox::computeNextFlexLine (

this=0x6cbfe8, orderedChildren=..., preferredMainAxisExtent=..., 
totalFlexGrow=@0x7fffffffb8b0: 0, 
totalWeightedFlexShrink=@0x7fffffffb8b8: 0, 
minMaxAppliedMainAxisExtent=..., 
hasInfiniteLineLength=@0x7fffffffb85f: false)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderFlexibleBox.cpp:973

3 0x00007ffff3e69569 in WebCore::RenderFlexibleBox::layoutFlexItems (

this=0x6cbfe8, relayoutChildren=false, lineContexts=...)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderFlexibleBox.cpp:775

4 0x00007ffff3e67824 in WebCore::RenderFlexibleBox::layoutBlock (

this=0x6cbfe8, relayoutChildren=false)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderFlexibleBox.cpp:361

5 0x00007ffff3db48c5 in WebCore::RenderBlock::layout (this=0x6cbfe8)

---Type to continue, or q to quit--- at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderBlock.cpp:1428

6 0x00007ffff3f89229 in WebCore::RenderMathMLSubSup::layout (this=0x6cbfe8)

at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/mathml/RenderMathMLSubSup.cpp:177

7 0x00007ffff3d87e09 in WebCore::RenderObject::layoutIfNeeded (this=0x6cbfe8)

at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderObject.h:704

8 0x00007ffff3f834b6 in WebCore::RenderMathMLBlock::computeChildrenPreferredLogicalHeights (this=0x899ab8)

at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/mathml/RenderMathMLBlock.cpp:109

9 0x00007ffff3f87f7b in WebCore::RenderMathMLRow::computePreferredLogicalWidths (this=0x899ab8)

at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/mathml/RenderMathMLRow.cpp:63

10 0x00007ffff3e1b681 in WebCore::RenderBox::minPreferredLogicalWidth (

this=0x899ab8)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderBox.cpp:852

11 0x00007ffff3dcd41e in WebCore::RenderBlock::computeInlinePreferredLogicalWidths (this=0x7cb538, minLogicalWidth=..., maxLogicalWidth=...)

at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderBlock.cpp:---Type <return> to continue, or q <return> to quit---

6186

12 0x00007ffff3dcbf73 in WebCore::RenderBlock::computeIntrinsicLogicalWidths (

this=0x7cb538, minLogicalWidth=..., maxLogicalWidth=...)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderBlock.cpp:5893

13 0x00007ffff3dcc3fa in WebCore::RenderBlock::computePreferredLogicalWidths (

this=0x7cb538)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderBlock.cpp:5930

14 0x00007ffff3e1b6e3 in WebCore::RenderBox::maxPreferredLogicalWidth (

this=0x7cb538)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderBox.cpp:864

15 0x00007ffff3e21f68 in WebCore::RenderBox::computeLogicalWidthInRegionUsing

(this=0x7cb538, widthType=WebCore::MainOrPreferredSize, 
logicalWidth=<incomplete type>, availableLogicalWidth=<incomplete type>, 
cb=0x7362b8, region=0x0)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderBox.cpp:2241

16 0x00007ffff3e216ea in WebCore::RenderBox::computeLogicalWidthInRegion (

this=0x7cb538, computedValues=..., region=0x0)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderBox.cpp:2152

---Type to continue, or q to quit---

17 0x00007ffff3e21038 in WebCore::RenderBox::updateLogicalWidth (

this=0x7cb538)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderBox.cpp:2087

18 0x00007ffff3db4d5c in WebCore::RenderBlock::updateLogicalWidthAndColumnWidth (this=0x7cb538)

at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderBlock.cpp:1551

19 0x00007ffff3db512c in WebCore::RenderBlock::layoutBlock (this=0x7cb538,

relayoutChildren=false, pageLogicalHeight=<incomplete type>)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderBlock.cpp:1603

20 0x00007ffff3db48c5 in WebCore::RenderBlock::layout (this=0x7cb538)

at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderBlock.cpp:1428

21 0x00007ffff3d87e09 in WebCore::RenderObject::layoutIfNeeded (this=0x7cb538)

at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderObject.h:704

22 0x00007ffff3e039c3 in WebCore::RenderBlock::layoutInlineChildren (

this=0x7362b8, relayoutChildren=true, repaintLogicalTop=..., 
repaintLogicalBottom=...)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderBlockLineLayout.cpp:2180

---Type to continue, or q to quit---

23 0x00007ffff3db5474 in WebCore::RenderBlock::layoutBlock (this=0x7362b8,

relayoutChildren=true, pageLogicalHeight=<incomplete type>)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderBlock.cpp:1653

24 0x00007ffff3db48c5 in WebCore::RenderBlock::layout (this=0x7362b8)

at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderBlock.cpp:1428

25 0x00007ffff3db9aae in WebCore::RenderBlock::layoutBlockChild (

this=0x6600e8, child=0x7362b8, marginInfo=..., 
previousFloatLogicalBottom=..., maxFloatLogicalBottom=...)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderBlock.cpp:2666

26 0x00007ffff3db96f8 in WebCore::RenderBlock::layoutBlockChildren (

this=0x6600e8, relayoutChildren=true, maxFloatLogicalBottom=...)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderBlock.cpp:2601

27 0x00007ffff3db5495 in WebCore::RenderBlock::layoutBlock (this=0x6600e8,

relayoutChildren=true, pageLogicalHeight=<incomplete type>)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderBlock.cpp:1655

28 0x00007ffff3db48c5 in WebCore::RenderBlock::layout (this=0x6600e8)

at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderBlock.cpp:1428

---Type to continue, or q to quit---

29 0x00007ffff3db9aae in WebCore::RenderBlock::layoutBlockChild (

this=0x7c8d48, child=0x6600e8, marginInfo=..., 
previousFloatLogicalBottom=..., maxFloatLogicalBottom=...)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderBlock.cpp:2666

30 0x00007ffff3db96f8 in WebCore::RenderBlock::layoutBlockChildren (

this=0x7c8d48, relayoutChildren=true, maxFloatLogicalBottom=...)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderBlock.cpp:2601

31 0x00007ffff3db5495 in WebCore::RenderBlock::layoutBlock (this=0x7c8d48,

relayoutChildren=true, pageLogicalHeight=<incomplete type>)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderBlock.cpp:1655

32 0x00007ffff3db48c5 in WebCore::RenderBlock::layout (this=0x7c8d48)

at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderBlock.cpp:1428

33 0x00007ffff3f6774d in WebCore::RenderView::layoutContent (this=0x7c8d48,

state=...)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderView.cpp:142

34 0x00007ffff3f68463 in WebCore::RenderView::layout (this=0x7c8d48)

at /home/reni/Data/REPOS/webkitnix/Source/WebCore/rendering/RenderView.cpp:305

---Type to continue, or q to quit---

35 0x00007ffff3b50bad in WebCore::FrameView::layout (this=0x7369e0,

allowSubtree=true)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/page/FrameView.cpp:1325

36 0x00007ffff3647cb4 in WebCore::Document::implicitClose (this=0x7cc350)

at /home/reni/Data/REPOS/webkitnix/Source/WebCore/dom/Document.cpp:2454

37 0x00007ffff3a56a0d in WebCore::FrameLoader::checkCallImplicitClose (

this=0x904478)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/loader/FrameLoader.cpp:843

38 0x00007ffff3a56778 in WebCore::FrameLoader::checkCompleted (this=0x904478)

at /home/reni/Data/REPOS/webkitnix/Source/WebCore/loader/FrameLoader.cpp:786

39 0x00007ffff3a564b6 in WebCore::FrameLoader::finishedParsing (this=0x904478)

at /home/reni/Data/REPOS/webkitnix/Source/WebCore/loader/FrameLoader.cpp:719

40 0x00007ffff364ed9b in WebCore::Document::finishedParsing (this=0x7cc350)

at /home/reni/Data/REPOS/webkitnix/Source/WebCore/dom/Document.cpp:4417

41 0x00007ffff38eba1b in WebCore::HTMLConstructionSite::finishedParsing (

this=0x8cb5a8)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/html/parser/HTMLConstructionSite.cpp:348

42 0x00007ffff391d78b in WebCore::HTMLTreeBuilder::finished (this=0x8cb590)

at /home/reni/Data/REPOS/webkitnix/Source/WebCore/html/parser/HTMLTreeBuilde---Type <return> to continue, or q <return> to quit---

r.cpp:2926

43 0x00007ffff38f26f8 in WebCore::HTMLDocumentParser::end (this=0x864550)

at /home/reni/Data/REPOS/webkitnix/Source/WebCore/html/parser/HTMLDocumentParser.cpp:756

44 0x00007ffff38f27e5 in WebCore::HTMLDocumentParser::attemptToRunDeferredScriptsAndEnd (this=0x864550)

at /home/reni/Data/REPOS/webkitnix/Source/WebCore/html/parser/HTMLDocumentParser.cpp:767

45 0x00007ffff38f1418 in WebCore::HTMLDocumentParser::prepareToStopParsing (

this=0x864550)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/html/parser/HTMLDocumentParser.cpp:211

46 0x00007ffff38f2828 in WebCore::HTMLDocumentParser::attemptToEnd (

this=0x864550)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/html/parser/HTMLDocumentParser.cpp:779

47 0x00007ffff38f28df in WebCore::HTMLDocumentParser::finish (this=0x864550)

at /home/reni/Data/REPOS/webkitnix/Source/WebCore/html/parser/HTMLDocumentParser.cpp:828

48 0x00007ffff3a48ad3 in WebCore::DocumentWriter::end (this=0x689a90)

at /home/reni/Data/REPOS/webkitnix/Source/WebCore/loader/DocumentWriter.cpp:248

49 0x00007ffff3a37d80 in WebCore::DocumentLoader::finishedLoading (

---Type to continue, or q to quit--- this=0x6899f0, finishTime=0) at /home/reni/Data/REPOS/webkitnix/Source/WebCore/loader/DocumentLoader.cpp:402

50 0x00007ffff3a37aee in WebCore::DocumentLoader::notifyFinished (

this=0x6899f0, resource=0x7cb650)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/loader/DocumentLoader.cpp:344

51 0x00007ffff3ac0f2c in WebCore::CachedResource::checkNotify (this=0x7cb650)

at /home/reni/Data/REPOS/webkitnix/Source/WebCore/loader/cache/CachedResource.cpp:369

52 0x00007ffff3ac1002 in WebCore::CachedResource::finishLoading (

this=0x7cb650)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/loader/cache/CachedResource.cpp:385

53 0x00007ffff3abdec4 in WebCore::CachedRawResource::finishLoading (

this=0x7cb650, data=0x6df1d0)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/loader/cache/CachedRawResource.cpp:94

54 0x00007ffff3a86438 in WebCore::SubresourceLoader::didFinishLoading (

this=0x7cbaa0, finishTime=0)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/loader/SubresourceLoader.cpp:282

55 0x00007ffff3a826cf in WebCore::ResourceLoader::didFinishLoading (

---Type to continue, or q to quit--- this=0x7cbaa0, finishTime=0) at /home/reni/Data/REPOS/webkitnix/Source/WebCore/loader/ResourceLoader.cpp:488

56 0x00007ffff470c0f0 in WebCore::readCallback (asyncResult=0x6c4c70,

data=0x67fbf0)
at /home/reni/Data/REPOS/webkitnix/Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp:1335

57 0x00007ffff0ca102a in async_ready_callback_wrapper (

source_object=0x7fb0c0, res=0x6c4c70, user_data=0x67fbf0)
at ginputstream.c:530

58 0x00007ffff0cc05bb in g_task_return_now (task=0x6c4c70) at gtask.c:1105

59 0x00007ffff0cc05d9 in complete_in_idle_cb (task=0x6c4c70) at gtask.c:1114

60 0x00007ffff0fe9f56 in g_main_dispatch (context=0x610770) at gmain.c:3054

61 g_main_context_dispatch (context=context@entry=0x610770) at gmain.c:3630

62 0x00007ffff0fea2a8 in g_main_context_iterate (context=0x610770,

block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
at gmain.c:3701

63 0x00007ffff0fea6aa in g_main_loop_run (loop=0x6108d0) at gmain.c:3895

64 0x00007ffff46b6fc2 in WebCore::RunLoop::run ()

at /home/reni/Data/REPOS/webkitnix/Source/WebCore/platform/nix/RunLoopNix.cpp:60

65 0x00007ffff4d1e0b2 in WebKit::WebProcessMainNix (argc=2,

argv=0x7fffffffdb68)

---Type to continue, or q to quit--- at /home/reni/Data/REPOS/webkitnix/Source/WebKit2/WebProcess/nix/WebProcessMainNix.cpp:88

66 0x000000000040084d in main (argc=2, argv=0x7fffffffdb68)

at /home/reni/Data/REPOS/webkitnix/Source/WebKit2/nix/MainNix.cpp:30