James Tauber : James Tauber's Blog 2006/03/09

James Saiz

journeyman of some

James Saiz's Blog 2006/03/09

Crashing Safari

If you download this:

http://jamessaiz.en.wanadoo.es/2006/03/crash-safari.html.txt

and open it in Safari, it will cause a crash (you have been warned!). In Firefox, it works exactly as expected.

I can't work out whether I'm doing anything wrong. The problem occurs specifically doing a lot of .tagName or .nodeName accesses on an XML element (see the comment in the javascript indicating the location the crash occurs).

The report includes the following:

...
Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x000001b8

Thread 0 Crashed: 0 com.apple.WebCore 0x95994984 DOM::DocumentImpl::tagName(unsigned) const + 36 ...

Any ideas?

by James Saiz : 2006/03/09 : Categories safari ajax : 0 trackbacks : 0 comments (permalink)


Content made available under a Creative Commons Attribution-NonCommercial-ShareAlike license