app: 1. starving: resume a few times without new input
app: interrupt
app: interrupt
app: interrupt
app: interrupt
app: interrupt
app: interrupt
app: interrupt
app: interrupt
app: 2. resume a few times with one input record each time
app: interrupt
script begin:  0 rec 0
app: interrupt
script begin:  1 rec 1
app: interrupt
script begin:  2 rec 2
app: interrupt
script begin:  3 rec 3
app: interrupt
script main:  5 rec 4
app: interrupt
script main:  6 rec 5
app: interrupt
script func: 0 rec 0 rec 6
app: interrupt
script func: 1 rec 1 rec 7
app: interrupt
script func: 2 rec 2 rec 8
app: interrupt
script func: 3 rec 3 rec 9
app: interrupt
script func: 5 rec 4 rec 10
app: interrupt
script func: 6 rec 5 rec 11
app: interrupt
script main:  7 rec 12
app: interrupt
script main:  8 rec 13
app: interrupt
script main:  9 rec 14
app: interrupt
script main2:  9 rec 15
