Closed Bug 823356 Opened 13 years ago Closed 11 years ago

toolkit/places - Firefox aborts due to an assertion in nsNavHistoryResult

Categories

(Toolkit :: Places, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 992670

People

(Reporter: catalinn.iordache, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:17.0) Gecko/20100101 Firefox/17.0 Build ID: 20121129151900 Steps to reproduce: Trying to resolve a build warning. This land to a bigger problem. When you try to resolve: toolkit/components/places/nsNavHistoryResult.cpp:1630:5 [-Wtype-limits] comparison of unsigned expression >= 0 is always true with something like : (mAccessCount >= mChildren[aIndex]->mAccessCount), it crashes.
Depends on: 821901
Component: General → Places
Product: Core → Toolkit
Do you have a crash ID (go to about:crashes)?
Flags: needinfo?(catalinn.iordache)
the crash is just an abort caused by the assertion. It's expected, we have to figure out what activates the assertion though.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: toolkit/places - Firefox crash due to an assertion in nsNavHistoryResult → toolkit/places - Firefox aborts due to an assertion in nsNavHistoryResult
Flags: needinfo?(catalinn.iordache)
http://mxr.mozilla.org/mozilla-central/source/toolkit/components/places/nsNavHistoryResult.cpp#1629 basically mAccessCount should always be >= mChildren[aIndex]->mAccessCount but in some situation that doesn't happen and the calculation is "wrong" cause mAccessCount is unsigned
Version: unspecified → Trunk
The build warning in question here is now: { nsNavHistoryResult.cpp:1466:32: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits] }
Blocks: buildwarning
The assertion was handled in Bug 992670, and Bug 1049797 is on file for the crashing mentioned in this bug and Bug 992670.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.