Subj : crash in jsfile.c when running from a network (UNC) location in windows To : netscape.public.mozilla.jseng From : frankin@miramar.com (Forest Rankin) Date : Tue Apr 06 2004 03:53 pm When running from a UNC loaction (ie. \\MyMachine\Test\JS) and creating a File object the JS engine crashes. JavaScript code to reproduce the crash: ------------------------------ var file = new File('C:\\test.txt'); ------------------------------ The js_InitFileClass() method calls js_NewFileObject(cx, currentdir) with the current working directory which is a UNC path and from there js_canonicalPath() gets called. The crash happens in the last line of code in this method. "JS_free(cx, current);" Also js_isAbsolute fails to recognize the UNC as a full path. js_fileBaseName and js_fileDirectoryName also seem to be a bit buggy in that they chop of the last character of the returned name. I tried to report a bug in Bugzilla, but didn't have rights for the SpiderMonkey project. I know that the File object is not currently in development, but I thought I should document the bugs somewhere. Development on a File object and XML object would be great for those of us using SpiderMonkey for non browser scripting. be. Thanks for the great JS engine. It has made my life much easier. .