Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fbc64 version 1.20 crashed under Windows 10 64 bit #423

Open
LukyGuyLucky opened this issue Mar 8, 2024 · 1 comment
Open

fbc64 version 1.20 crashed under Windows 10 64 bit #423

LukyGuyLucky opened this issue Mar 8, 2024 · 1 comment

Comments

@LukyGuyLucky
Copy link

Trying to compile 2 examples in https://github.com/jepalza/FB_DOOM_LIKE ,the fbc64 version 1.2 crashed during compiling process,but version 1.1 is fine.

@jayrm jayrm changed the title fbc64 version 1.2 crashed under Windows 10 64 bit fbc64 version 1.20 crashed under Windows 10 64 bit Mar 10, 2024
@jayrm
Copy link
Member

jayrm commented Mar 10, 2024

1.2 crashed during compiling process,but version 1.1 is fine.

I think versions should be '1.20 crashed during compiling process,but version 1.10 is fine'

Cause is due to bug #798 fbc's recursive AST storage & traversal breaks with huge initializers

In the doom like source code (textures) we have:

'' array size is 27180
Dim Shared As Byte T_NUMBERS(...)  = { _
  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, _

The change could have been from any work done on fbc compiler. Because initializer list is solved through recursion, a change to any of fbc's internal procedures used by initializer handling can affect how much stack space is used and therefore affect how many calls are possible before the stack is ultimately exhausted and crashes fbc, thus the current limiting factor on length of initializer lists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants