Closed Bug 1885475 Opened 1 year ago Closed 1 year ago

[loongarch] Failed to dumpValue for floating-point value

Categories

(Core :: JavaScript Engine, defect, P1)

Firefox 124
defect

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox123 --- unaffected
firefox124 --- wontfix
firefox125 --- wontfix
firefox126 --- fixed

People

(Reporter: zhaojiazhong-hf, Assigned: arai)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0

Steps to reproduce:

Build js shell with --enable-debug or --enable-jitspew on loongarch64 platform, not the simulator in SpiderMonkey.

Then run: ./mach run -e 'dumpValue(1.1)'

Actual results:

JS shell crash before print all output.

Expected results:

Get the following output, and exit normally.

{
"type": "double",
"value": "1.1",
"private": "0x3ff199999999999a"
}

The function and this issue seem to be introduced in bug 1783397.

Keywords: regression
Regressed by: 1783397
Summary: [loongarch] Failed to execute dumpValue → [loongarch] Failed to dumpValue for floating-point value

:arai, since you are the author of the regressor, bug 1783397, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(arai.unmht)

The problem is there are two JSONPrinter::formatProperty:

void JSONPrinter::formatProperty(const char* name, const char* format, ...) { ... }

void JSONPrinter::formatProperty(const char* name, const char* format, va_list ap) { ... }

And va_list type is actually void * on LoongArch, and I guess RISC-V and MIPS, some codes may call into the unwanted one.

Flags: needinfo?(arai.unmht)
Assignee: nobody → arai.unmht
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

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

Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/8c3d0c204186 Use different method name for ... and va_list. r=mgaudet
Severity: -- → S3
Priority: -- → P1
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: