nimble-code / Spin

Explicit state logic model checking tool -- 2002 winner of the ACM System Software Award.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Segfault when iterating over an array with "for ... in ..."

topdeckwin opened this issue · comments

commented

Code:

demo16.pml

typedef wrapper{
  byte data; 
}
wrapper test_array[10];

init {
  byte idx = 0;
  for (idx in test_array) {
    skip;
  }
}

Error:

> spin -V
Spin Version 6.5.2 -- 9 June 2022
> spin -a demo16.pml
fish: Job 1, 'spin -a demo16.pml' terminated by signal SIGSEGV (Address boundary error)

interesting example -- i've updated flow.c and version.h to at least intercept this and exist with an error
thanks for reporting!
-g