Closed
Bug 1866504
Opened 2 years ago
Closed 2 years ago
Assertion failure: value_ != 0, at /builds/worker/workspace/obj-build/dist/include/js/ColumnNumber.h:245
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
122 Branch
| Tracking | Status | |
|---|---|---|
| firefox-esr115 | --- | unaffected |
| firefox120 | --- | unaffected |
| firefox121 | --- | unaffected |
| firefox122 | --- | fixed |
People
(Reporter: decoder, Assigned: arai)
References
(Regression)
Details
(Keywords: assertion, regression, testcase, Whiteboard: [bugmon:update,bisect])
Attachments
(2 files, 1 external file)
The following testcase crashes on mozilla-central revision 20231124-dbd1a6aef0a7 (debug build, run with --fuzzing-safe --ion-offthread-compile=off --more-compartments):
a = newGlobal();
Debugger(a).onDebuggerStatement = function(d) {
g = d.script.getChildScripts()[0];
g.getPossibleBreakpoints({ line: 5, minColumn: 0 });
}
a.eval(`
debugger
function b() {
c
}
`);
Backtrace:
received signal SIGSEGV, Segmentation fault.
#0 0x00005555577ef9f9 in JS::detail::MaybeLimitedColumnNumber<1073741823u>::operator<(JS::detail::MaybeLimitedColumnNumber<1073741823u> const&) const ()
#1 0x00005555577ef413 in js::DebuggerScript::GetPossibleBreakpointsMatcher<false>::maybeAppendEntry(unsigned long, unsigned int, JS::LimitedColumnNumberOneOrigin, bool) ()
#2 0x00005555577ef1b5 in js::DebuggerScript::GetPossibleBreakpointsMatcher<false>::match(JS::Handle<js::BaseScript*>) ()
#3 0x00005555577d83f5 in js::DebuggerScript::CallData::getPossibleBreakpoints() ()
#4 0x00005555577e3c61 in bool js::DebuggerScript::CallData::ToNative<&js::DebuggerScript::CallData::getPossibleBreakpoints>(JSContext*, unsigned int, JS::Value*) ()
#5 0x0000555557067585 in CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), js::CallReason, JS::CallArgs const&) ()
#6 0x0000555557066b5e in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) ()
#7 0x0000555557077f4b in js::Interpret(JSContext*, js::RunState&) ()
#8 0x00005555570660cf in js::RunScript(JSContext*, js::RunState&) ()
#9 0x0000555557066a7e in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) ()
#10 0x000055555706851a in js::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, js::AnyInvokeArgs const&, JS::MutableHandle<JS::Value>, js::CallReason) ()
#11 0x00005555576b21c6 in js::Call(JSContext*, JS::Handle<JS::Value>, JSObject*, JS::Handle<JS::Value>, JS::MutableHandle<JS::Value>) ()
#12 0x0000555557724baf in js::Debugger::fireDebuggerStatement(JSContext*, js::ResumeMode&, JS::MutableHandle<JS::Value>) ()
#13 0x000055555771f371 in js::DebugAPI::slowPathOnDebuggerStatement(JSContext*, js::AbstractFramePtr) ()
#14 0x000055555707f813 in js::Interpret(JSContext*, js::RunState&) ()
[...]
#35 0x0000555556e8e3b9 in main ()
rax 0x5555558ff5fa 93824996079098
rbx 0x7fffffffb3b0 140737488335792
rcx 0x5555589892c8 93825046975176
rdx 0x0 0
rsi 0x7ffff7105770 140737338431344
rdi 0x7ffff7104540 140737338426688
rbp 0x7fffffffb230 140737488335408
rsp 0x7fffffffb230 140737488335408
r8 0x7ffff7105770 140737338431344
r9 0x7ffff7f92840 140737353689152
r10 0x2 2
r11 0x0 0
r12 0x5 5
r13 0x6 6
r14 0x0 0
r15 0x3 3
rip 0x5555577ef9f9 <JS::detail::MaybeLimitedColumnNumber<1073741823u>::operator<(JS::detail::MaybeLimitedColumnNumber<1073741823u> const&) const+201>
=> 0x5555577ef9f9 <_ZNK2JS6detail24MaybeLimitedColumnNumberILj1073741823EEltERKS2_+201>: movl $0xf5,0x0
0x5555577efa04 <_ZNK2JS6detail24MaybeLimitedColumnNumberILj1073741823EEltERKS2_+212>: callq 0x555556f2f8f0 <abort>
| Reporter | ||
Comment 1•2 years ago
|
||
| Reporter | ||
Comment 2•2 years ago
|
||
Comment 3•2 years ago
|
||
Unable to reproduce bug 1866504 using build mozilla-central 20231124092418-dbd1a6aef0a7. Without a baseline, bugmon is unable to analyze this bug.
Removing bugmon keyword as no further action possible. Please review the bug and re-add the keyword for further analysis.
Keywords: bugmon
| Assignee | ||
Comment 5•2 years ago
|
||
Thanks!
I forgot to add an error check for the debugger API input.
given the input comes only from DevTools, where all consumer uses 1-origin value, this doesn't happen in Browser.
anyway, I'll add the error check.
Assignee: nobody → arai.unmht
Status: NEW → ASSIGNED
Flags: needinfo?(arai.unmht)
| Assignee | ||
Comment 6•2 years ago
|
||
Updated•2 years ago
|
status-firefox120:
--- → unaffected
status-firefox121:
--- → unaffected
status-firefox-esr115:
--- → unaffected
Regressed by: 1862693
Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/autoland/rev/09f8832543a7
Reject 0 as minColumn/maxColumn value in the Debugger API query. r=iain
Comment 8•2 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•