From ripley at stats.ox.ac.uk  Sat Mar 29 00:13:34 2014
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Fri, 28 Mar 2014 23:13:34 +0000
Subject: [Rd] Error: C stack usage is too close to the limit
In-Reply-To: <CAPSN_LUYkKv42YecOApxQwKZu7mNNBOWP4sgBO=0JHzQDzHS8g@mail.gmail.com>
References: <CAPSN_LUYkKv42YecOApxQwKZu7mNNBOWP4sgBO=0JHzQDzHS8g@mail.gmail.com>
Message-ID: <5336021E.9040309@stats.ox.ac.uk>

On 28/03/2014 21:55, Florian Burkart wrote:
> Hi,
>
> I have been using my own C++ plugin for a while.
>
> On a new machine I now keep getting the
>
> C stack usage is too close to the limit
>
> error. I played with it and it appears to come after I printed a fixed
> number of text to R via Rprintf (not from the main thread).
>
> Didn't happen on the old machine. Old version was 2.14. Now on 3.0.3.
>
> Not sure whats going on.

Did you read 'Writing R Extensions' about the support for threads?  E.g.

'Calling any of the R API from threaded code is ?for experts only?: they 
will need to read the source code to determine if it is thread-safe.  In 
particular, code which makes use of the stack-checking mechanism must 
not be called from threaded code.'

It reads like that is what you did.


>
> Florian
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] Error: C stack usage is too close to the limit
Prof Brian Ripley