flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > FASMW 1.62 crashes on macro-generated macro |
Author |
|
Tomasz Grysztar 08 Jul 2005, 19:36
Your source makes an infinite recurrence and causes the stack overflow - the behavior on stack overflow is dependent on the OS, for example my Windows for some reason doesn't display any message, only terminates the program in such case.
It's up to the interfaces to handle the stack overflows, I might think about catching them to display fasm's error message somehow, but this would perhaps need a separate solution for each interface (that is for each OS). |
|||
08 Jul 2005, 19:36 |
|
Tomasz Grysztar 08 Jul 2005, 19:43
I've got one nice solution, but it needs the interface to provide the stack size to the core. For DOS and Win32 it's not a problem, but can you advice me how to get the size of stack in Linux?
Last edited by Tomasz Grysztar on 08 Jul 2005, 20:02; edited 1 time in total |
|||
08 Jul 2005, 19:43 |
|
Frank 08 Jul 2005, 19:55
Thank you, I had overlooked the infinite recursion. As for Linux: sorry ... that's not my ballpark (yet).
|
|||
08 Jul 2005, 19:55 |
|
Tomasz Grysztar 08 Jul 2005, 20:11
OK, I've just hardcoded the 16 KB stack limit for the Linux version and it seems to be OK. I've updated the 1.62 with this nice little error message on stack overflow.
|
|||
08 Jul 2005, 20:11 |
|
MCD 11 Jul 2005, 11:38
Great, because I was just trying to tell you that similar stack overflow errors occur when including files recursively or when parenthesis are to deep nested.
|
|||
11 Jul 2005, 11:38 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.