[Rd] R uses private function in libc (PR#9107)

quanah at stanford.edu quanah at stanford.edu
Fri Jul 28 02:45:44 CEST 2006


Full_Name: Quanah Gibson-Mount
Version: 2.3.0, 2.3.1
OS: Linux
Submission from: (NULL) (171.66.155.86)


libc used to export the symbol:

__libc_stack_end;

however, newer versions of libc no longer export it.  R has some serious
problems around this, because the code has:

# ifdef linux
extern void * __libc_stack_end;
# endif


and

#if defined(linux)
    R_CStackStart = (uintptr_t) __libc_stack_end;
#elif defined(HAVE_KERN_USRSTACK)


in r-2.3.1/src/unix/system.c

This code needs to be fixed.  It is causing all sorts of problems when trying to
run R across multiple systems with different libc versions.

--Quanah



More information about the R-devel mailing list