Bug in Raspberry Pi compiler if size of Structure in array is over 20 bytes

The below code crashes on RPi without any trace (well, see below)

Dim i as integer
Redim kurvStructArray(10)   'OK if each record is 20 bytes. Larger causes crash below.

for i=0 to 3
  kurvStructArray(i).total= 100+i   'Crashes in RPi in second loop, i=1
Next i
me.Caption=Str(i)
break

Works as expected in Windows, but crashes in RPi unless I shrink record size to max 20 bytes.
I’m using Win10 Xojo 2021r1.1 and an RPi 4B with Raspbian 10 (buster).

The only trace i get is running strace which after a zillion lines ends with:
*** killed by SIGBUS ***
Bus error

I just filed a bug report “65039 - Bug in Raspberry Pi compiler if size of Structure in array is over 20 bytes”,
and I am holding my breath.

Maybe this also adds to the 43783 which seems to be left in the air 5 (five) years ago.

I can confirm what you are seeing. The result is a Bus error on the Raspberry Pi 4B and works on Windows 10.

I can confirm this, too.

Seems like the code used to redim the array does something strange.
The allocated byte size for the array is 24576 bytes on macOS.
On Linux ARM it’s 22 bytes.

The size should be 22 * 10 = 220 bytes.

But maybe I look on the wrong size. But please have an engineer print out the byte size to verify on all platforms.