If I define a global variable "count <- 0" then run the tool and perform an increment "count++", when I release the click the variable will return to zero.
Try here: test_tool_err.zip
Edit.
I confirm that with the one-click tools there are no problems.
The solution was more than obvious..... heheheheh :P 0001-Fix-uninitialized-info-restart.patch
Thanks for spotting & fixing ! in r10791.