[Project_owners] JavaScript bug causes Mozilla crash

Patrick Brunschwig patrick.brunschwig at gmx.net
Wed Dec 31 16:16:39 EST 2003


This might be interesting for some of you:

After some months searching, Mozilla people finally found the reason for
crashes occurring randomly and not really reproducibly when trying to
start Mozilla -- thanks to dbaron and brendan!

The reason for the crash is a bug in the JavaScript library. A
redeclaration of a const in a script containing try constructs causes an
assertion that isn't handled properly and might crash Mozilla (depending
on some timing issues, it causes a stack corruption).

One of the extensions triggering the bug was Enigmail (and that's why I
was quite closely involved), but there are more extensions around doing
the same. So, make sure you don't redeclare const's, e.g. by loading a
script more than once in the same context.

For details, see http://bugzilla.mozilla.org/show_bug.cgi?id=206199
The fix is approved for the Mozilla 1.6 release.

Happy new year
-Patrick




More information about the Project_owners mailing list