Skip to content
Prev 21599 / 63424 Next

R uses private function in libc (PR#9107)

Only up to a point.  We know that __libc_stack_end is not portable, but it 
is being used to do something that is impossible to do portably: check 
whether the C stack is about to overflow. Since there is no way to recover 
from a C stack overflow, being able to prevent it is valuable.

Your fix disables this facility on all Linux systems, which may be 
appropriate for your systems but is clearly undesirable as a change to R. 
The real question is how to detect systems that do provide 
__libc_stack_end and whether there is another non-portable way to do the 
same thing on glibc versions that don't provide it.

 	-thomas