FreeBSD Bugzilla – Attachment 228233 Details for
Bug 258762
www/chromium: Serious typed array initialization problem 92.0.4515.159 (Official Build) (64-bit)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
HTML file with javascrpt that reproduces the bug
arrayInitializationBug.html (text/html), 777 bytes, created by
jschachter@spendata.com
on 2021-09-28 14:45:08 UTC
(
hide
)
Description:
HTML file with javascrpt that reproduces the bug
Filename:
MIME Type:
Creator:
jschachter@spendata.com
Created:
2021-09-28 14:45:08 UTC
Size:
777 bytes
patch
obsolete
><!DOCTYPE html> ><html lang="en"> ><head> > <meta charset="UTF-8"> > <title>Array Initialization BUG</title> ></head> ><body> > ><script> > var arrays = []; > > function doOneArray() { > var q = new Int32Array(1000000); > arrays.push(q); > } > > for (var i=0; i<2000; i++) { > doOneArray(); > if (arrays.length % 100 === 0) { > console.log('PROGRESS',arrays.length); > } > } > > console.log('NOW TYPE THE FOLLOWING TWO COMMANDS INTO THE CONSOLE, MANUALLY:'); > console.log(' var r = new Int32Array(38);'); > console.log(' r'); > console.log('Refresh the page and repeat. After a few cycles, you will find that r is full of garbage - not initialized to zeros. Takes up to 10 refreshes.'); > ></script> > > ></body> ></html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Array Initialization BUG</title> </head> <body> <script> var arrays = []; function doOneArray() { var q = new Int32Array(1000000); arrays.push(q); } for (var i=0; i<2000; i++) { doOneArray(); if (arrays.length % 100 === 0) { console.log('PROGRESS',arrays.length); } } console.log('NOW TYPE THE FOLLOWING TWO COMMANDS INTO THE CONSOLE, MANUALLY:'); console.log(' var r = new Int32Array(38);'); console.log(' r'); console.log('Refresh the page and repeat. After a few cycles, you will find that r is full of garbage - not initialized to zeros. Takes up to 10 refreshes.'); </script> </body> </html>
View Attachment As Raw
Actions:
View
Attachments on
bug 258762
: 228233 |
228345