Closed Bug 508149 Opened 17 years ago Closed 9 years ago

Test plugin causes crash on shutdown with debug build, Pango >=2.22

Categories

(Core Graveyard :: Plug-ins, defect)

x86
Linux
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: zwol, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: crash)

If you do a debugging build of current trunk on Linux, and your system libpango is at least version 2.22 (or possibly 2.24, not sure), you need the patch for bug 503924 to prevent a crash on shutdown. If you do have that patch, the crash mostly goes away, but loading this one-line HTML document will cause a crash on shutdown. <!doctype html><embed type="application/x-test"></embed> Any use of the test plugin will do, as long as it's not in solid-color mode (that is, as long as the test plugin draws text). Unfortunately for me, this means I can't run the reftests without a crash. There is some analysis in bug 503924 comment 14 and 15, but what seems to be going on is that the test plugin's use of Pango is somehow independent of the main process's use, and so when we come around to MOZ_gdk_display_close and try to call cairo_debug_reset_static_data, there are still live fonts in Cairo's cache, so Cairo triggers an assertion failure. I messed around a little with calling various library teardown functions from pluginInstanceShutdown to no avail. And I'm a little worried that the same thing could happen with third-party plugins whose cleanup we do not control.
Severity: normal → critical
Keywords: crash
Resolving old bugs which are likely not relevant any more, since NPAPI plugins are deprecated.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INCOMPLETE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.