Closed Bug 1901406 Opened 29 days ago Closed 24 days ago

Assertion failure: JS::StringIsASCII(message.get()), at /root/src/js/src/vm/ErrorReporting.cpp:56

Categories

(Core :: JavaScript Engine, defect, P3)

All
Android
defect

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox-esr115 --- wontfix
firefox127 --- wontfix
firefox128 --- wontfix
firefox129 --- fixed

People

(Reporter: nils.bars, Assigned: nbp)

References

(Blocks 2 open bugs, Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Attached file bug.js

Steps to reproduce:

Checkout commit 15778b8c32f8535624fff2af36fc669e65a9af3 and invoke the js shell as follows:

/root/js-spidermonkey-shell  --fuzzing-safe  <testcase>

Actual results:

Assertion failure: JS::StringIsASCII(message.get()), at /root/src/js/src/vm/ErrorReporting.cpp:56
Component: General → JavaScript Engine
Product: Fenix → Core

This does not reproduce with the latest debug js shell from FTP (2015-10-21) since this early shell does not have listDir, but reproduces with m-c rev a5887514ddfb (Feb 2022).

listDir was added in m-c rev c430b858a795 in Feb 2020. Nicolas, you added this, is bug 1612515 a likely regressor?

Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(nicolas.b.pierron)
Keywords: regression
Regressed by: 1612515
Blocks: sm-shell
Severity: -- → S4
Priority: -- → P3

Set release status flags based on info from the regressing bug 1612515

Assignee: nobody → nicolas.b.pierron
Flags: needinfo?(nicolas.b.pierron)
Pushed by npierron@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4fa8df4224a7
JS Shell: os.file.listDir: Report UTF8 errors. r=arai

(In reply to Sandor Molnar[:smolnar] from comment #5)

Failure log -> TEST-UNEXPECTED-FAIL | js\src\jit-test\tests\self-test\bug1901406.js | [11368] Hit MOZ_CRASH(Could not close Find) at D:/task_171818809537131/src/js/src/shell/OSObject.cpp:512 (code 2147483651, args "")

For some reasons the windows error handling code was different, and did not check for error cases before creating the code which would attempt to close the non-open file, causing an error while closing, causing this assertion.

Flags: needinfo?(nicolas.b.pierron)
Pushed by npierron@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1da726c07b06
JS Shell: os.file.listDir: Report UTF8 errors. r=arai
Status: NEW → RESOLVED
Closed: 24 days ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch

The patch landed in nightly and beta is affected.
:nbp, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox128 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(nicolas.b.pierron)

(In reply to BugBot [:suhaib / :marco/ :calixte] from comment #9)

The patch landed in nightly and beta is affected.
:nbp, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox128 to wontfix.

For more information, please visit BugBot documentation.

Given that it only affect the shell version, I guess it can ride the train.

Flags: needinfo?(nicolas.b.pierron)
Blocks: 1903968
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: