Persona is no longer an option for authentication on BMO. For more details see Persona Deprecated.
Last Comment Bug 614673 - JS crashes at JS_CompileUCFunctionForPrincipals()
: JS crashes at JS_CompileUCFunctionForPrincipals()
: crash, stackwanted
Product: Core
Classification: Components
Component: JavaScript Engine (show other bugs)
: 1.9.2 Branch
: x86 Windows XP
: -- critical (vote)
: ---
Assigned To: general
: Jason Orendorff [:jorendorff]
Depends on:
  Show dependency treegraph
Reported: 2010-11-24 14:06 PST by Lin Chen
Modified: 2012-08-28 09:58 PDT (History)
3 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Description Lin Chen 2010-11-24 14:06:19 PST
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20101026 Firefox/3.6.12
Build Identifier: mozillajs/1.7

our software uses mozillajs1.7.  It crashed at JS with the following lines as the last two frame:

 	js17_32.dll!_JS_CompileUCFunctionForPrincipals()  + 0x135 bytes	C
 	js17_32.dll!_JS_CompileFunction()  + 0x4e bytes	C

I am wondering what could cause MozillarJS crash at this line and if there is any solutions.

Lin Chen 

Reproducible: Sometimes

Steps to Reproduce:
It is hard to describe the reproduce steps.  Our software is integrated with JS.
Comment 1 (mostly gone) XtC4UaLL [:xtc4uall] 2010-11-24 14:56:22 PST
Does it crash on a Nightly Build ( crash too?
Comment 2 timeless 2010-11-25 00:28:57 PST
xtc4uall: this is an embedding case, i'm not sure we even have js as a dll anymore.

reporter: i'm not sure if we provide symbols for js builds -- if we don't, we should. unfortunately, without symbols we can't do much.

since you're building on windows, it would be easier for you to download the sources for js1.7 and build them and then reproduce your crash.
Comment 3 Lin Chen 2010-11-25 06:04:16 PST
What information do you need if we reproduce the crash?  By symbols, do you mean the pdb file?
Comment 4 timeless 2010-11-25 09:16:10 PST
yes i mean pdb files.

but since i don't think anyone has pdb files for js17, i think you get to rebuild js17 to generate your own pdb files and then crash against that.
Comment 5 Lin Chen 2010-11-25 09:18:05 PST
I have the pdb file, which makes me able to look at the frames in side the JS.  What else I can make use of it?
Comment 6 timeless 2010-11-25 09:22:38 PST
well, use windbg/devenv and load the pdb, then you should get a better stack trace.

i'm available on, hop on irc.
Comment 7 Lin Chen 2010-11-25 09:26:01 PST
Yes, I got the stack trace by using MSVS:

 	js17_32.dll!_JS_CompileUCFunctionForPrincipals()  + 0x135 bytes	C
 	js17_32.dll!_JS_CompileFunction()  + 0x4e bytes	C
 	libAPPVXML3.dll!JSDOMMethods::JSDOMMethods(JSDOMObject * pJSDOMObj=0x1dadaa60, DOMBuilderWrapper * 


what do you mean by a better stacktrace?

What is inc?  How to hop on it?
Comment 8 timeless 2010-11-25 21:06:36 PST
if you have symbols for js17_32.dll you wouldn't see +0x135 bytes, you'd see arguments for the function plus a filename and line number.

you need to build js17_32.dll yourself.

you can use this gateway:
Comment 9 Wayne Mery (:wsmwk, NI for questions) 2012-08-28 09:58:19 PDT
still needs stack

Note You need to log in before you can comment on or make changes to this bug.