Closed Bug 2052112 Opened 4 months ago Closed 4 months ago

[clang-22] Perma Assertion failure: contents.isAligned(byteLength), at /builds/worker/checkouts/gecko/js/src/vm/ArrayBufferObject.h:669

Categories

(Core :: JavaScript Engine, defect, P5)

defect

Tracking

()

RESOLVED FIXED
154 Branch
Tracking Status
firefox-esr115 --- wontfix
firefox-esr140 --- wontfix
firefox152 --- wontfix
firefox153 --- wontfix
firefox154 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: glandium)

References

Details

(Keywords: assertion)

Attachments

(1 external file)

Filed by: mh [at] glandium.org
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=576300866&repo=try&task=I2PotLu3QOuL3X-FhO_xuw.0
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/I2PotLu3QOuL3X-FhO_xuw/runs/0/artifacts/public/logs/live_backing.log


[task 2026-07-02T02:58:56.852+00:00] [568922] Assertion failure: contents.isAligned(byteLength), at /builds/worker/checkouts/gecko/js/src/vm/ArrayBufferObject.h:669
[task 2026-07-02T02:58:56.852+00:00] #01: ???[/builds/worker/workspace/obj-spider/dist/bin/jsapi-tests +0x32b0e15]
[task 2026-07-02T02:58:56.852+00:00] #02: ???[/builds/worker/workspace/obj-spider/dist/bin/jsapi-tests +0x32b15aa]
[task 2026-07-02T02:58:56.852+00:00] #03: JS::NewArrayBufferWithUserOwnedContents(JSContext*, unsigned int, void*)[/builds/worker/workspace/obj-spider/dist/bin/jsapi-tests +0x32b8508]
[task 2026-07-02T02:58:56.852+00:00] #04: ???[/builds/worker/workspace/obj-spider/dist/bin/jsapi-tests +0x1bf8725]
[task 2026-07-02T02:58:56.852+00:00] #05: ???[/builds/worker/workspace/obj-spider/dist/bin/jsapi-tests +0x1e1e2d4]
[task 2026-07-02T02:58:56.852+00:00] #06: ???[/builds/worker/workspace/obj-spider/dist/bin/jsapi-tests +0x1e1e70c]
[task 2026-07-02T02:58:56.852+00:00] UndefinedBehaviorSanitizer:DEADLYSIGNAL
[task 2026-07-02T02:58:56.852+00:00] ==568922==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x00000000 (pc 0x5b4d0e2d bp 0xfffac478 sp 0xfffac440 T568922)
[task 2026-07-02T02:58:56.852+00:00] ==568922==The signal is caused by a WRITE memory access.
[task 2026-07-02T02:58:56.852+00:00] ==568922==Hint: address points to the zero page.
[task 2026-07-02T02:58:56.995+00:00]     #0 0x5b4d0e2d in MOZ_CrashSequence(void*, int) /builds/worker/workspace/obj-spider/dist/include/mozilla/Assertions.h:261:3
[task 2026-07-02T02:58:56.995+00:00]     #1 0x5b4d0e2d in js::ArrayBufferObject::initialize(unsigned int, js::ArrayBufferObject::BufferContents) /builds/worker/checkouts/gecko/js/src/vm/ArrayBufferObject.h:669:5
[task 2026-07-02T02:58:56.995+00:00]     #2 0x5b4d15a9 in js::ArrayBufferObject::createForContents(JSContext*, unsigned int, js::ArrayBufferObject::BufferContents) /builds/worker/workspace/obj-spider/js/src/vm/./../../../../../checkouts/gecko/js/src/vm/ArrayBufferObject.cpp:2330:11
[task 2026-07-02T02:58:56.995+00:00]     #3 0x5b4d8507 in JS::NewArrayBufferWithUserOwnedContents(JSContext*, unsigned int, void*) /builds/worker/workspace/obj-spider/js/src/vm/./../../../../../checkouts/gecko/js/src/vm/ArrayBufferObject.cpp:3757:10
[task 2026-07-02T02:58:56.995+00:00]     #4 0x59e18724 in cls_testArrayBufferWithUserOwnedContents::run() /builds/worker/workspace/obj-spider/js/src/jsapi-tests/./../../../../../checkouts/gecko/js/src/jsapi-tests/testArrayBufferWithUserOwnedContents.cpp:22:33
[task 2026-07-02T02:58:56.995+00:00]     #5 0x5a03e2d3 in RunTests(int&, int&, CommandOptions&, TestList<jsapitest::TestBase>) /builds/worker/workspace/obj-spider/js/src/jsapi-tests/./../../../../../checkouts/gecko/js/src/jsapi-tests/tests.cpp:589:15
[task 2026-07-02T02:58:56.995+00:00]     #6 0x5a03e70b in main /builds/worker/workspace/obj-spider/js/src/jsapi-tests/./../../../../../checkouts/gecko/js/src/jsapi-tests/tests.cpp:644:3
[task 2026-07-02T02:58:56.995+00:00]     #7 0xf37b8294  (/lib32/libc.so.6+0x23294) (BuildId: 49fe9e32516a3fdac5bc92fc71cee0275ebd2b0f)
[task 2026-07-02T02:58:56.995+00:00]     #8 0xf37b8357 in __libc_start_main (/lib32/libc.so.6+0x23357) (BuildId: 49fe9e32516a3fdac5bc92fc71cee0275ebd2b0f)
[task 2026-07-02T02:58:56.995+00:00]     #9 0x59db4190 in _start (/builds/worker/workspace/obj-spider/dist/bin/jsapi-tests+0x1b94190) (BuildId: 1a9c116f9d220d2462353c48f9457b2d9cbffd91)
[task 2026-07-02T02:58:56.995+00:00] 
[task 2026-07-02T02:58:56.995+00:00] ==568922==Register values:
[task 2026-07-02T02:58:56.995+00:00] eax = 0x00000000  ebx = 0x5c2db140  ecx = 0x0000029d  edx = 0x00000001  
[task 2026-07-02T02:58:56.995+00:00] edi = 0x5c2db140  esi = 0x00000003  ebp = 0xfffac478  esp = 0xfffac440  
[task 2026-07-02T02:58:56.995+00:00] UndefinedBehaviorSanitizer can not provide additional info.
[task 2026-07-02T02:58:56.995+00:00] SUMMARY: UndefinedBehaviorSanitizer: SEGV /builds/worker/workspace/obj-spider/dist/include/mozilla/Assertions.h:261:3 in MOZ_CrashSequence(void*, int)
Assignee: nobody → mh+mozilla
Blocks: clang-22

This used to not cause problems until clang 22, which somehow broke the
assumption, which wasn't guaranteed in the first place.

Pushed by mh@glandium.org: https://github.com/mozilla-firefox/firefox/commit/a33112fc5bb4 https://hg.mozilla.org/integration/autoland/rev/0cc9d22333e4 Adjust testData to be aligned like BufferContents::isAligned expects it to be. r=spidermonkey-reviewers,jonco
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
QA Whiteboard: [qa-triage-done-c155/b154]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: