Closed Bug 483857 Opened 15 years ago Closed 15 years ago

JavaScript Debug assertions in gloda mime tests

Categories

(MailNews Core :: Database, defect)

x86
macOS
defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 3.0b3

People

(Reporter: standard8, Unassigned)

References

Details

(Keywords: regression)

Attachments

(1 file)

Attached file Debug Log
I'm trying to run make check on debug builds, I'm hitting various debug assertions in the gloda tests which means I can't do a successful "make -C mailnews check" run on a debug build. This isn't good for our developers who generally use debug builds afaik, hence the blocker status.
Flags: blocking-thunderbird3+
The assertion is at:
"/Users/moztest/comm/main/src/mozilla/js/src/jstracer.cpp:3174"

This looks like tracemonkey's problem, not gloda's problem.  I suggest we turn off tracemonkey for xpcshell tests.  (nb: Gloda is using more complex javascript features which likely cause gloda to get hit with the troubles.)
(In reply to comment #1)
> The assertion is at:
> "/Users/moztest/comm/main/src/mozilla/js/src/jstracer.cpp:3174"
> 
> This looks like tracemonkey's problem, not gloda's problem.  I suggest we turn
> off tracemonkey for xpcshell tests.  (nb: Gloda is using more complex
> javascript features which likely cause gloda to get hit with the troubles.)

Well, unless there's some pref I don't know about, the default prefs:

pref("javascript.options.jit.content",      true);
pref("javascript.options.jit.chrome",       false);

will mean tracemonkey isn't enabled for xpcshell tests. Therefore this looks like we're hitting an assertion either with a javascript error or because gloda is doing something wrong.

cc'ing some folks who I hope can help us.
It turns out that in that particular preference name "content" is s3cr3t c0de for "content and XPCOM components".  Given that we have reproducible tests for these problems, it seems like we'd be better off just filing specific bugs against tracemonkey.
Bug 480132 may have fixed that assertion; I suggest retesting with source that includes that fix and see whether it's still there before doing anything else.
(In reply to comment #4)
> Bug 480132 may have fixed that assertion; I suggest retesting with source that
> includes that fix and see whether it's still there before doing anything else.

I've just tried comm-central with today's trunk (head: http://hg.mozilla.org/mozilla-central/rev/e74b36d547de) and there are no problems with the tests, so it does look like it could have been fixed with that bug.

Will bug 480132 be going onto the 1.9.1 branch?
Yes.
Depends on: 480132
Summary: Debug assertions in gloda mime tests → JavaScript JIT Debug assertions in gloda mime tests
I should have popped into TB JS bugs earlier - "Assertion failure: !(fp->flags & JSFRAME_POP_BLOCKS)" is all too familiar to me a while back.

That assertion has indeed since been fixed. Perhaps resolve this and move on?
(In reply to comment #7)
> I should have popped into TB JS bugs earlier - "Assertion failure: !(fp->flags
> & JSFRAME_POP_BLOCKS)" is all too familiar to me a while back.
> 
> That assertion has indeed since been fixed. Perhaps resolve this and move on?

It has been fixed on trunk, not 1.9.1 branch which is where our main focus is at the moment.
Also I believe this isn't just JIT. I tried setting "javascript.options.jit.content" to false in all.js and still reproduced the error.

So unless that pref doesn't work for xpcshell tests, then this isn't a JIT specific bug afaict.
Summary: JavaScript JIT Debug assertions in gloda mime tests → JavaScript Debug assertions in gloda mime tests
(In reply to comment #9)
> Also I believe this isn't just JIT. I tried setting
> "javascript.options.jit.content" to false in all.js and still reproduced the
> error.
> 
> So unless that pref doesn't work for xpcshell tests, then this isn't a JIT
> specific bug afaict.

Strange - jstracer.cpp usually involves JIT as far as I know, perhaps gal or mrbkap can correct me if I'm wrong?
(In reply to comment #9)
> So unless that pref doesn't work for xpcshell tests, then this isn't a JIT
> specific bug afaict.

It doesn't. xpcshell relies on flags passed to the program (in this case, -j). This is controlled by mozilla/testing/xpcshell/runxpcshelltests.py that passes -j unconditionally.
Is this different from bug 485585 ? Is it still happening?
(In reply to comment #12)
> Is this different from bug 485585 ? Is it still happening?

David : yes it needs to land on Branch.
Bug 480132 has now landed on 1.9.1. I've just done a successful run through gloda with a debug build, so this bug is now fixed by the landing of bug 480132.
Status: NEW → RESOLVED
Closed: 15 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: