[Project_owners] JavaScript bug causes Mozilla crash

Pete Collins pete at mozdev.org
Wed Dec 31 10:41:42 EST 2003

Patrick Brunschwig wrote:
> 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

Ah, yes. I've seen this many times and couldn't understand why the crash.

Thanks for the heads up.


Pete Collins

More information about the Project_owners mailing list