On some platforms, R hangs when the DLL is first called .C() and then assigned x<-.C(), as shown in the example above.

The goal is of course to make the DLL robust, so R doesn’t hang in the example above. That is what Dave Fournier is referring to when he reports that “The code seems to be reentrant for this example” in his recent tests on the Linux-GCC platform.