flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Compiler Internals > sigsegv in fasmg g.hnvit

Author
Thread Post new topic Reply to topic
Jerry



Joined: 24 Dec 2016
Posts: 18
Location: Zeist, Netherlands
sigsegv in fasmg g.hnvit
Not entirely sure if this post should go here or belongs to the macro section, i guessed this one as it is a segmentation fault.
I'm compiling some program and using the (adapted) listing macro as posted in this thread : https://board.flatassembler.net/topic.php?t=19190
Sorry the example is a bit big, as i was not able to reproduce it in a smaller example, as i'm not exactly sure what happens (other than SIGSEGV).
The problem description on the other hand is just one line.
At line 40 in listing.inc i initially, mistakenly, typed in "lengthof line" instead of "lengthof `line"
This example of works as "`" is present (and runs when sqlite3.dll is present, i left that one out)
If you remove the "`" at line 40 you'll see (hopefully).

I'm running on Ubuntu 16.04 64 bit
my INCLUDE variable is pointed to the "examples/x86/include" directory.

Thanks for build this tool and example macro's by the way, really having a great time with it.
Hope it helps.


Description: Example
Download
Filename: example_sigsegv.tar.gz
Filesize: 90.35 KB
Downloaded: 49 Time(s)

Post 18 Jan 2017, 18:13
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6509
Location: Kraków, Poland
Thank you, it is fixed now (version g.hoh12). I should have run some fuzzing on the recent releases, since this bug would most probably have been easily detected in the process. At the time of the first public releases of fasmg I had used afl to detect some bugs of this kind, but LENGHTOF was a relatively recent addition and it has not been fuzzed yet.
Post 18 Jan 2017, 18:37
View user's profile Send private message Visit poster's website Reply with quote
Jerry



Joined: 24 Dec 2016
Posts: 18
Location: Zeist, Netherlands
You're welcome, thanks for fixing this so fast.
Nice to see something from the testing of a compiler, still just a beginner so i have only a basic understanding of the internals but interesting to read to see a part of how it's done/tested.
Post 18 Jan 2017, 18:59
View user's profile Send private message 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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.