[Rd] error: C stack usage is too close to the limit.
Jeffrey Horner
jeff.horner at vanderbilt.edu
Wed May 28 17:40:05 CEST 2008
rapache version 1.0.4 and earlier attempted to turn off stack-checking
*before* initializing R. After reading the source, it seems that it
should turn it off *after* initializing R. I've fixed this in the latest
release of 1.0.5.
Sorry for the confusion; it's hard to understand just from reading the
'Writing R Extensions' manual exactly what can/should be accomplished
before R initializes compared to what can/should be accomplished
afterwards to influence R's embedded environment. For instance, turning
off R's signal handling is accomplished by setting R_SignalHandlers = 0
*before* initializing R; at least that's what the source code is telling me.
Best,
Jeff
Prof Brian Ripley wrote on 05/28/2008 01:53 AM:
> Please look it up in 'Writing R Extensions'. Especially in the
> discussion around 'There is a potential issue with the stack-checking
> mechanism where threads are involved.'
>
> This is an issue for the author of RApache, who it seems has not turned
> off C stack checking in the version you are using, and in any case the
> advice is to set appropriate limits, not turn it off.
>
> On Tue, 27 May 2008, jeroenooms wrote:
>
>>
>> I am trying to set up a RApache server on my Ubuntu 8.04. I have
>> installed
>> apache2, R-2.7.0, and the RApache plugin. Both Apache and R seem to work
>> fine, but whenever i try to use the plugin i get this error: C stack
>> usage
>> is too close to the limit.
>>
>> I have tried to recompile apache2, R, and RApache, but i keep getting the
>> error. The weird thing is, i had exactly the same problem when i
>> installed
>> RApache on my Debian box, but somehow that suddenly dissapeared and
>> now it
>> is working fine. However, i cant resolve the error on my Ubuntu
>> machine. I
>> have mailed the author of RApache, and he told me he thought that he
>> actually had "turned off" c stack checking in RApache. He couldnt find
>> the
>> cause of any problems in my logs.
>>
>> I realise probably not a lot of people are using RApache, but the error
>> seems more familiar in R when you google it. Unfortunatly i have no idea
>> what it means. Any suggestions in which direction i should look for a
>> solution?
>>
>>
>> http://www.nabble.com/file/p17498015/2hdw8eo.png
>> --
>> View this message in context:
>> http://www.nabble.com/error%3A-C-stack-usage-is-too-close-to-the-limit.-tp17498015p17498015.html
>>
>> Sent from the R devel mailing list archive at Nabble.com.
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>
>
--
http://biostat.mc.vanderbilt.edu/JeffreyHorner
More information about the R-devel
mailing list