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

RESOLVED DUPLICATE of bug 539720

Status

()

Core
Layout: Text
RESOLVED DUPLICATE of bug 539720
8 years ago
8 years ago

People

(Reporter: cjones, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

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
Last Resolved: 8 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 539720
You need to log in before you can comment on or make changes to this bug.