Closed Bug 168302 Opened 22 years ago Closed 22 years ago

new profile, launch -mail, debug build, exits due to JS_ASSERT() in EmitElemOp()

Categories

(Core :: JavaScript Engine, defect)

x86
Windows 2000
defect
Not set
critical

Tracking

()

VERIFIED FIXED
mozilla1.2beta

People

(Reporter: sspitzer, Assigned: brendan)

Details

Attachments

(1 file, 1 obsolete file)

mozilla -CreateProfile abc
mozilla -P abc -mail

NTDLL! 77fa018c()
EmitElemOp(JSContext * 0x03be0b20, JSParseNode * 0x03c148e0, int 0x00000026, 
JSCodeGenerator * 0x03c15378) line 1776 + 28 bytes
js_EmitTree(JSContext * 0x03be0b20, JSCodeGenerator * 0x03c15378, JSParseNode * 
0x03c147c8) line 3716 + 19 bytes
js_EmitTree(JSContext * 0x03be0b20, JSCodeGenerator * 0x03c15378, JSParseNode * 
0x03c14940) line 3324 + 17 bytes
js_EmitTree(JSContext * 0x03be0b20, JSCodeGenerator * 0x03c15378, JSParseNode * 
0x03c146a8) line 2146 + 20 bytes
js_EmitTree(JSContext * 0x03be0b20, JSCodeGenerator * 0x03c15378, JSParseNode * 
0x03c14678) line 3293 + 17 bytes
js_EmitTree(JSContext * 0x03be0b20, JSCodeGenerator * 0x03c15378, JSParseNode * 
0x03c145b8) line 2146 + 20 bytes
js_EmitTree(JSContext * 0x03be0b20, JSCodeGenerator * 0x03c15378, JSParseNode * 
0x03c14310) line 3293 + 17 bytes
js_EmitFunctionBody(JSContext * 0x03be0b20, JSCodeGenerator * 0x03c15378, 
JSParseNode * 0x03c14310, JSFunction * 0x03c13578) line 1903 + 17 bytes
js_EmitTree(JSContext * 0x03be0b20, JSCodeGenerator * 0x0012df64, JSParseNode * 
0x03bd1118) line 1998 + 24 bytes
Statements(JSContext * 0x03be0b20, JSTokenStream * 0x03bd0d60, JSTreeContext * 
0x0012df64) line 919 + 61 bytes
js_CompileTokenStream(JSContext * 0x03be0b20, JSObject * 0x03b76df0, 
JSTokenStream * 0x03bd0d60, JSCodeGenerator * 0x0012df64) line 396 + 17 bytes
CompileTokenStream(JSContext * 0x03be0b20, JSObject * 0x03b76df0, JSTokenStream 
* 0x03bd0d60, void * 0x03be0ba0, int * 0x00000000) line 2849 + 24 bytes
JS_CompileUCScriptForPrincipals(JSContext * 0x03be0b20, JSObject * 0x03b76df0, 
JSPrincipals * 0x012552e4, const unsigned short * 0x03bf2ea8, unsigned int 
0x00007e61, const char * 0x0012e134, unsigned int 0x00000001) line 2929 + 23 
bytes
nsJSContext::CompileScript(nsJSContext * const 0x03a85790, const unsigned short 
* 0x03bf2ea8, int 0x00007e61, void * 0x03b76df0, nsIPrincipal * 0x012552e0, 
const char * 0x0012e134, unsigned int 0x00000001, const char * 0x01480428, void 
* * 0x03bdef88) line 786 + 37 bytes
nsXULPrototypeScript::Compile(const unsigned short * 0x03bf2ea8, int 
0x00007e61, nsIURI * 0x03bdefc0, int 0x00000001, nsIDocument * 0x03bc0ce0, 
nsIXULPrototypeDocument * 0x037e87f0) line 5475 + 87 bytes
nsXULDocument::OnStreamComplete(nsXULDocument * const 0x03bc0d14, 
nsIStreamLoader * 0x03bab070, nsISupports * 0x00000000, unsigned int 
0x00000000, unsigned int 0x00007e61, const char * 0x03beb010) line 5918 + 58 
bytes
nsStreamLoader::OnStopRequest(nsStreamLoader * const 0x03bab074, nsIRequest * 
0x03bc42d8, nsISupports * 0x00000000, unsigned int 0x00000000) line 163
nsJARChannel::OnStopRequest(nsJARChannel * const 0x03bc42dc, nsIRequest * 
0x03bc440c, nsISupports * 0x00000000, unsigned int 0x00000000) line 606 + 49 
bytes
nsOnStopRequestEvent::HandleEvent() line 213
nsARequestObserverEvent::HandlePLEvent(PLEvent * 0x03b34394) line 116
PL_HandleEvent(PLEvent * 0x03b34394) line 643 + 10 bytes
PL_ProcessPendingEvents(PLEventQueue * 0x03b81298) line 573 + 9 bytes
_md_EventReceiverProc(HWND__ * 0x001c039e, unsigned int 0x0000c127, unsigned 
int 0x00000000, long 0x03b81298) line 1308 + 9 bytes
USER32! 77e11b60()
USER32! 77e11cca()
USER32! 77e183f1()
nsXULWindow::ShowModal(nsXULWindow * const 0x03b625a0) line 301
nsWebShellWindow::ShowModal(nsWebShellWindow * const 0x03b625a0) line 1109
nsContentTreeOwner::ShowAsModal(nsContentTreeOwner * const 0x03babf8c) line 449
nsWindowWatcher::OpenWindowJS(nsWindowWatcher * const 0x012f3b0c, nsIDOMWindow 
* 0x012f314c, const char * 0x03b834c8, const char * 0x03b83530, const char * 
0x03b83578, int 0x00000001, unsigned int 0x00000000, long * 0x03b8698c, 
nsIDOMWindow * * 0x0012eb78) line 760
GlobalWindowImpl::OpenInternal(GlobalWindowImpl * const 0x012f3148, const 
nsAString & {...}, const nsAString & {...}, const nsAString & {...}, int 
0x00000001, long * 0x03b86980, unsigned int 0x00000003, nsISupports * 
0x00000000, nsIDOMWindow * * 0x0012ef14) line 4247 + 129 bytes
GlobalWindowImpl::OpenDialog(GlobalWindowImpl * const 0x012f3150, nsIDOMWindow 
* * 0x0012ef14) line 3015 + 59 bytes
XPTC_InvokeByIndex(nsISupports * 0x012f3150, unsigned int 0x00000010, unsigned 
int 0x00000001, nsXPTCVariant * 0x0012ef14) line 106
XPCWrappedNative::CallMethod(XPCCallContext & {...}, XPCWrappedNative::CallMode 
CALL_METHOD) line 1994 + 42 bytes
XPC_WN_CallMethod(JSContext * 0x017c6410, JSObject * 0x0124b6a0, unsigned int 
0x00000003, long * 0x03b86980, long * 0x0012f1c4) line 1266 + 14 bytes
js_Invoke(JSContext * 0x017c6410, unsigned int 0x00000003, unsigned int 
0x00000000) line 839 + 23 bytes
js_Interpret(JSContext * 0x017c6410, long * 0x0012fb6c) line 2803 + 15 bytes
js_Execute(JSContext * 0x017c6410, JSObject * 0x0124b6a0, JSScript * 
0x037e70b8, JSStackFrame * 0x00000000, unsigned int 0x00000000, long * 
0x0012fb6c) line 1020 + 13 bytes
JS_EvaluateUCScriptForPrincipals(JSContext * 0x017c6410, JSObject * 0x0124b6a0, 
JSPrincipals * 0x012552e4, const unsigned short * 0x031ddad0, unsigned int 
0x00000017, const char * 0x03a942c8, unsigned int 0x000000c6, long * 
0x0012fb6c) line 3382 + 25 bytes
nsJSContext::EvaluateString(nsJSContext * const 0x012f3410, const nsAString & 
{...}, void * 0x0124b6a0, nsIPrincipal * 0x012552e0, const char * 0x03a942c8, 
unsigned int 0x000000c6, const char * 0x01480428, nsAString & {...}, int * 
0x0012fc9c) line 701 + 85 bytes
GlobalWindowImpl::RunTimeout(nsTimeoutImpl * 0x03a94250) line 4586 + 115 bytes
GlobalWindowImpl::TimerCallback(nsITimer * 0x03a94320, void * 0x03a94250) line 
4952
nsTimerImpl::Fire() line 367 + 17 bytes
nsTimerManager::FireNextIdleTimer(nsTimerManager * const 0x018420f0) line 591
nsAppShell::Run(nsAppShell * const 0x012f5df8) line 156
nsAppShellService::Run(nsAppShellService * const 0x012fddc0) line 472
main1(int 0x00000004, char * * 0x00276f30, nsISupports * 0x00000000) line 1508 
+ 32 bytes
main(int 0x00000004, char * * 0x00276f30) line 1868 + 37 bytes
mainCRTStartup() line 338 + 17 bytes
KERNEL32! 77e8d326()
twalker, do you see this in today's trunk?
Severity: normal → critical
Summary: new profile, debug build, mail exits due to JS_ASSERT() in EmitElemOp() → new profile, launch -mail, debug build, exits due to JS_ASSERT() in EmitElemOp()
Target Milestone: --- → mozilla1.2beta
Using today's commercial trunk with win98, this worksforme.
I didn't crash with mail using todays builds.  (always new profile)  But I start 
mail from the browser, not from the console.
this doesn't crash, it exists.

twalker, can you try:

"mozilla -CreateProfile 123"
"mozilla -P 123 -mail"

(mozilla or Netscp)

JS_ASSERT() exits the app, but it might be debug only.
I get a similar error if I do this:

mozilla -CreateProfile foobar
mozilla -P foobar
before I launch mail, File | New Message

varada, can you look into this?
Mail launches for me following the commands you asked me to try. 
turns out to be a real bug, so my fix (as we expected, given my extensive 
knowledge of the js engine) was crap.

over to brendan.  he's working on a real fix.
Assignee: sspitzer → brendan
Dammit, my fault. Patch coming right up.

/be
Attached patch fixSplinter Review
I'll check this in with tested-and-worksforme r= from sspitzer.

/be
Attachment #98942 - Attachment is obsolete: true
Comment on attachment 98944 [details] [diff] [review]
fix

r=sspitzer, where r= means I tested it and it works.
Attachment #98944 - Flags: review+
marking fixed for the big cheese.  

thanks for the prompt fix, brendan.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
jseng for verification
Component: Mail Window Front End → JavaScript Engine
Product: MailNews → Browser
v
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: