memstruct segfaults
- Posted by ghaberek (admin) Feb 06, 2015
- 1758 views
Forked from Re: OpenEuphoria's Strategy
Yes! I have been playing with the memstruct interpreter on 64-bit Linux lately, and I really love having memstructs, but it segfaults when ever I do anything wrong.
Like, bad struct passing to C stuff, or crashes in the interpreter itself? I'm sure there are plenty of bugs in there. Porting Win32Lib has been a big help in generating different ways of using them.
There are at least two syntax errors I've been able to produce that result in a Segmentation fault crash.
I think there were a few more but I cannot remember what they were right now, and I have since correct the code that caused them.
I'll surely let you know if they happen again.
-- segfault when referencing a memstruct within itself. should be "syntax error, -- memstruct cannot reference itself directly. did you mean 'pointer TEST_STRUCT next'?" memstruct TEST_STRUCT TEST_STRUCT next end memstruct
-- segfault when referencing an undefined memtype. should be "memtype 'bool' has not been declared." memstruct TEST_STRUCT bool enabled end memstruct
Running the latest memstruct branch that I compiled myself recently.
[greg@localhost Projects]$ eui -v Euphoria Interpreter v4.1.0 development 64-bit Linux, Using System Memory Revision Date: 2015-01-18 16:51:09, Id: 6273:511ab308da2e
-Greg