bmx-ng / bcc

A next-generation bcc parser for BlitzMax
zlib License
33 stars 12 forks source link

Random.mod compilation segfaults BCC #518

Closed GWRon closed 4 years ago

GWRon commented 4 years ago

Linux Mint 20, current BCC, BMK, brl, pub, random Compilation of random.mod ... segfaults bcc.

[ 14%] Processing:xoshiro.bmx
/BlitzMax/bin/bcc  -g x64 -m random.xoshiro -v -r -h -s -w -p linux -o /BlitzMax/mod/random.mod/xoshiro.mod/.bmx/xoshiro.bmx.release.linux.x64.s /BlitzMax/mod/random.mod/xoshiro.mod/xoshiro.bmx
Parsing...
Semanting...
Segmentation fault (core dumped)
Build Error: failed to compile (35584) /BlitzMax/mod/random.mod/xoshiro.mod/xoshiro.bmx
Process complete
GWRon commented 4 years ago

I removed StaticArray from xoshiro.bmx:

Struct SState
    Field StaticArray rnd_state:ULong[4]
End Struct

And it compiled.

GWRon commented 4 years ago

It is a regression bug... came with commit 86c89ea837e5b4417d4d2c6f274b92a4af18bf2d Older versions compiled fine.

Undoing the change in parser.bmx and it compiles.