Closed Bug 394246 Opened 17 years ago Closed 17 years ago

"ASSERTION: Started word in the middle of a cluster..." and crash [@ gfxTextRun::ComputeLigatureData] with combining character and newline

Categories

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

x86
macOS
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: roc)

References

Details

(Keywords: assertion, crash, testcase, Whiteboard: [dbaron-1.9:RsCt])

Crash Data

Attachments

(2 files)

Loading "testcase 1" triggers:

###!!! ASSERTION: Started word in the middle of a cluster...: 'aSource->IsClusterStart(start)', file /Users/jruderman/trunk/mozilla/gfx/thebes/src/gfxFont.cpp, line 1683

It also puts Firefox into a state where encountering a lone ́ will make it crash.
Flags: blocking1.9?
This demonstrates the divide-by-zero crash in gfxTextRun::ComputeLigatureData.  The crash is preceded by

###!!! ASSERTION: Ligature at the start of the run??: 'i > 0', file /Users/jruderman/trunk/mozilla/gfx/thebes/src/gfxFont.cpp, line 817

I see "Floating point exception" on the terminal, but that line in gfxFont.cpp looks like integer division.  Hmm.
Assignee: nobody → roc
The assertions and crashes are fixed by my patch in bug 385417. There's still some potential issues about marks combining with spaces, but I'll have to think about the best way to solve those.
Depends on: 385417
Flags: blocking1.9? → blocking1.9+
Whiteboard: depends on 385417
Whiteboard: depends on 385417 → [depends on 385417]
Whiteboard: [depends on 385417] → [depends on 385417][dbaron-1.9:RsCt]
FIXED by bug 385417 landing.

roc, please file a new bug on the issues you mentioned in comment 2.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Flags: in-testsuite?
The patch for bug 385417 was backed out.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
... and checked in again.
Status: REOPENED → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → FIXED
I checked in both testcases as crashtests.
Flags: in-testsuite? → in-testsuite+
I am seeing the assertions and crash on current Linux trunk.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Sorry, I see that is already reported in bug 408746
Status: REOPENED → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → FIXED
Whiteboard: [depends on 385417][dbaron-1.9:RsCt] → [dbaron-1.9:RsCt]
Crash Signature: [@ gfxTextRun::ComputeLigatureData]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: