Closed Bug 849777 Opened 13 years ago Closed 13 years ago

Crash [@ js::frontend::TokenStream::reportCompileErrorNumberVA]

Categories

(Core :: JavaScript Engine, defect)

x86
Linux
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla22

People

(Reporter: decoder, Assigned: bhackett1024)

Details

(Keywords: crash, testcase, Whiteboard: [jsbugmon:update])

Crash Data

Attachments

(2 files)

Attached file Testcase for shell
The attached testcase crashes on mozilla-central revision eccf45749400 (no options required).
Whiteboard: [jsbugmon:update,bisect]
Crash trace: ==11377== Invalid read of size 4 ==11377== at 0x859B596: js::frontend::TokenStream::reportCompileErrorNumberVA(js::frontend::TokenPos const&, unsigned int, unsigned int, char*) (TokenStream.cpp:510) ==11377== by 0x8507278: js::frontend::BytecodeEmitter::reportError(js::frontend::ParseNode*, unsigned int, ...) (BytecodeEmitter.cpp:1669) ==11377== by 0x8352C27: JSScript::fullyInitFromEmitter(JSContext*, JS::Handle<JSScript*>, js::frontend::BytecodeEmitter*) (jsscript.cpp:1889) ==11377== by 0x84F6833: js::frontend::CompileScript(JSContext*, JS::Handle<JSObject*>, JS::Handle<JSScript*>, JS::CompileOptions const&, unsigned short const*, unsigned int, JSString*, unsigned int, js::SourceCompressionToken*) (BytecodeCompiler.cpp:265) ==11377== by 0x85B17AF: EvalKernel(JSContext*, JS::CallArgs const&, EvalType, js::AbstractFramePtr, JS::Handle<JSObject*>) (Eval.cpp:297) ==11377== by 0x85B2EA4: js::DirectEval(JSContext*, JS::CallArgs const&) (Eval.cpp:421) ==11377== by 0x873346A: js::mjit::stubs::Eval(js::VMFrame&, unsigned int) (InvokeHelpers.cpp:469) ==11377== by 0x95198BB: ??? ==11377== by 0x8C9DFF3: ??? (in /srv/repos/mozilla-central/js/src/debug32/shell/js) ==11377== Address 0x8 is not stack'd, malloc'd or (recently) free'd
Crash Signature: [@ js::frontend::TokenStream::reportCompileErrorNumberVA] → [@ js::frontend::TokenStream::reportCompileErrorNumberVA(js::frontend::TokenPos const&, unsigned int, unsigned int, char*) ]
Whiteboard: [jsbugmon:update,bisect] → [jsbugmon:update]
JSBugMon: Bisection requested, result: autoBisect shows this is probably related to the following changeset: The first bad revision is: changeset: 123020:c92816f3028c user: Brian Hackett date: Tue Feb 26 08:41:57 2013 -0700 summary: Bug 835587 - Add syntax only mode to parser, r=jorendorff. This iteration took 114.940 seconds to run.
Brian, can you take a look based on comment 2? Thanks.
Flags: needinfo?(bhackett1024)
Attached patch patchSplinter Review
Errors reported via the bytecode emitter weren't null checking properly.
Assignee: general → bhackett1024
Attachment #725760 - Flags: review?(jorendorff)
Flags: needinfo?(bhackett1024)
Attachment #725760 - Flags: review?(jorendorff) → review+
Status: NEW → RESOLVED
Closed: 13 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: