flat assembler
Message board for the users of flat assembler.

Index > Main > fasm.x64 segfaults, fasm(.x32) works

Author
Thread Post new topic Reply to topic
dunkaist



Joined: 31 Jul 2015
Posts: 24
dunkaist 08 Feb 2020, 23:04
Hi Tomasz,

I found that fasm.x64 crashes when fasm(.x32) reports an error.

May be this hides a bigger bug, may be not. Just letting you know.

Code:
$ fasm main.asm 
flat assembler  version 1.73.21  (16384 kilobytes memory)
main.asm [2]:
x:
processed: section '.bss':
error: illegal instruction.

$ fasm.x64 main.asm 
flat assembler  version 1.73.21  (16384 kilobytes memory, x64)
Segmentation fault (core dumped)

$ cat main.asm 
x equ section '.bss'
x:    
Post 08 Feb 2020, 23:04
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8359
Location: Kraków, Poland
Tomasz Grysztar 09 Feb 2020, 09:40
Thank you! There was a forgotten PUSH+RET trick hidden there, which did not translate well to 64-bit code, because the macros I used to adapt the code to run in the long mode attempt to emulate 32-bit stack. I could try to change the macros, but instead I simply removed the trick, as it really was not necessary.
Post 09 Feb 2020, 09:40
View user's profile Send private message Visit poster's website Reply with quote
dunkaist



Joined: 31 Jul 2015
Posts: 24
dunkaist 11 Feb 2020, 11:23
Tomasz,

In whatsnew.txt file you wrote
Code:
version 1.73.22 (Feb 02, 2020)    

Is it also a bug or you just wanted to note that palindrome day?
Post 11 Feb 2020, 11:23
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8359
Location: Kraków, Poland
Tomasz Grysztar 11 Feb 2020, 11:44
Oh, just a typo. Should not affect the performance of the assembler. Wink
Post 11 Feb 2020, 11:44
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.