Closed Bug 541477 Opened 14 years ago Closed 14 years ago

valgrind: Conditional jump on uninitialized value in nsTextFrame::Reflow

Categories

(Core :: Layout: Text and Fonts, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 539720

People

(Reporter: cjones, Unassigned)

Details

==8929== Conditional jump or move depends on uninitialised value(s)
==8929==    at 0x5A599C3: nsTextFrame::Reflow(nsPresContext*, nsHTMLReflowMetrics&, nsHTMLReflowState const&, unsigned int&) (nsTextFrameThebes.cpp:6501)
==8929==    by 0x5A18348: nsLineLayout::ReflowFrame(nsIFrame*, unsigned int&, nsHTMLReflowMetrics*, int&) (nsLineLayout.cpp:852)
==8929==    by 0x59A4206: nsBlockFrame::ReflowInlineFrame(nsBlockReflowState&, nsLineLayout&, nsLineList_iterator, nsIFrame*, LineReflowStatus*) (nsBlockFrame.cpp:3715)
==8929==    by 0x59A376E: nsBlockFrame::DoReflowInlineFrames(nsBlockReflowState&, nsLineLayout&, nsLineList_iterator, nsFlowAreaRect&, int&, nsFloatManager::SavedState*, int*, LineReflowStatus*, int) (nsBlockFrame.cpp:3510)
==8929==    by 0x59A3205: nsBlockFrame::ReflowInlineFrames(nsBlockReflowState&, nsLineList_iterator, int*) (nsBlockFrame.cpp:3364)
==8929==    by 0x59A04D3: nsBlockFrame::ReflowLine(nsBlockReflowState&, nsLineList_iterator, int*) (nsBlockFrame.cpp:2439)
==8929==    by 0x599E28C: nsBlockFrame::ReflowDirtyLines(nsBlockReflowState&) (nsBlockFrame.cpp:1885)
==8929==    by 0x599B44C: nsBlockFrame::Reflow(nsPresContext*, nsHTMLReflowMetrics&, nsHTMLReflowState const&, unsigned int&) (nsBlockFrame.cpp:993)
==8929==    by 0x59B21D1: nsBlockReflowContext::ReflowBlock(nsRect const&, int, nsCollapsingMargin&, int, int, nsLineBox*, nsHTMLReflowState&, unsigned int&, nsBlockReflowState&) (nsBlockReflowContext.cpp:310)
==8929==    by 0x59AAC29: nsBlockFrame::ReflowFloat(nsBlockReflowState&, nsRect const&, nsIFrame*, nsMargin&, unsigned int&) (nsBlockFrame.cpp:5640)
==8929==    by 0x59B4A23: nsBlockReflowState::FlowAndPlaceFloat(nsIFrame*, unsigned int&, int) (nsBlockReflowState.cpp:767)
==8929==    by 0x59B4345: nsBlockReflowState::AddFloat(nsLineLayout*, nsIFrame*, int, unsigned int&) (nsBlockReflowState.cpp:580)
==8929== 
==8929== Conditional jump or move depends on uninitialised value(s)
==8929==    at 0x5A599C3: nsTextFrame::Reflow(nsPresContext*, nsHTMLReflowMetrics&, nsHTMLReflowState const&, unsigned int&) (nsTextFrameThebes.cpp:6501)
==8929==    by 0x5A18348: nsLineLayout::ReflowFrame(nsIFrame*, unsigned int&, nsHTMLReflowMetrics*, int&) (nsLineLayout.cpp:852)
==8929==    by 0x5A10C8C: nsInlineFrame::ReflowInlineFrame(nsPresContext*, nsHTMLReflowState const&, nsInlineFrame::InlineReflowState&, nsIFrame*, unsigned int&) (nsInlineFrame.cpp:716)
==8929==    by 0x5A10700: nsInlineFrame::ReflowFrames(nsPresContext*, nsHTMLReflowState const&, nsInlineFrame::InlineReflowState&, nsHTMLReflowMetrics&, unsigned int&) (nsInlineFrame.cpp:580)
==8929==    by 0x5A10015: nsInlineFrame::Reflow(nsPresContext*, nsHTMLReflowMetrics&, nsHTMLReflowState const&, unsigned int&) (nsInlineFrame.cpp:437)
==8929==    by 0x5A18348: nsLineLayout::ReflowFrame(nsIFrame*, unsigned int&, nsHTMLReflowMetrics*, int&) (nsLineLayout.cpp:852)
==8929==    by 0x59A4206: nsBlockFrame::ReflowInlineFrame(nsBlockReflowState&, nsLineLayout&, nsLineList_iterator, nsIFrame*, LineReflowStatus*) (nsBlockFrame.cpp:3715)
==8929==    by 0x59A376E: nsBlockFrame::DoReflowInlineFrames(nsBlockReflowState&, nsLineLayout&, nsLineList_iterator, nsFlowAreaRect&, int&, nsFloatManager::SavedState*, int*, LineReflowStatus*, int) (nsBlockFrame.cpp:3510)
==8929==    by 0x59A3205: nsBlockFrame::ReflowInlineFrames(nsBlockReflowState&, nsLineList_iterator, int*) (nsBlockFrame.cpp:3364)
==8929==    by 0x59A04D3: nsBlockFrame::ReflowLine(nsBlockReflowState&, nsLineList_iterator, int*) (nsBlockFrame.cpp:2439)
==8929==    by 0x599E28C: nsBlockFrame::ReflowDirtyLines(nsBlockReflowState&) (nsBlockFrame.cpp:1885)
==8929==    by 0x599B44C: nsBlockFrame::Reflow(nsPresContext*, nsHTMLReflowMetrics&, nsHTMLReflowState const&, unsigned int&) (nsBlockFrame.cpp:993)
==8929==
Do you have steps to reproduce?  Also, what changeset was this (so the line numbers are useful)?
Sure

 1. Grab a debug build of http://hg.mozilla.org/projects/electrolysis/rev/45575c2d604d
 2. Run under |valgrind --smc-check=all --trace-children=yes|
 3. Navigate to facebook.com
Component: Layout → Layout: Text
QA Contact: layout → layout.fonts-and-text
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.