Displaying 20 results from an estimated 100 matches similar to: "patch: two minor debugging-related pointer protection stack issues (PR#10832)"
2010 Aug 23
1
Speed improvement to PROTECT, UNPROTECT, etc.
As I mentioned in my previous message about speeding up evalList, I've
been looking at ways to speed up the R interpreter. One sees in the
code many, many calls of PROTECT, UNPROTECT, and related functions, so
that seems like an obvious target for optimization. Indeed, I've
found that one can speed up the interpreter by about 10% by just
changing these.
The functions are actually macros
2019 May 20
0
[External] most robust way to call R API functions from a secondary thread
Your analysis looks pretty complete to me and your solutions seems
plausible. That said, I don't know that I would have the level of
confidence yet that we haven't missed an important point that I would
want before going down this route.
Losing stack checking is risky; it might be eventually possible to
provide some support for this to be handled via a thread-local
variable. Ensuring
2019 May 20
0
most robust way to call R API functions from a secondary thread
Hi Andreas,
note that with the introduction of ALTREP, as far as I understand, calls
as "simple" as DATAPTR can execute arbitrary code (R or native). Even
without ALTREP, if you execute user-provided R code via Rf_eval and such
on some custom thread, you may end up executing native code of some
package, which may assume it is executed only from the R main thread.
Could you (1)
2019 May 20
1
most robust way to call R API functions from a secondary thread
Stepan,
Andreas gave a lot more thought into what you question in your reply. His question was how you can avoid what you where proposing and have proper threading under safe conditions. Having dealt with this before, I think Andreas' write up is pretty much the most complete analysis I have seen. I'd wait for Luke to chime in as the ultimate authority if he gets to it.
The
2019 May 19
4
most robust way to call R API functions from a secondary thread
Hi,
As the subject suggests, I am looking for the most robust way to call an (arbitrary) function from the R API from another but the main POSIX thread in a package's code.
I know that, "[c]alling any of the R API from threaded code is ?for experts only? and strongly discouraged. Many functions in the R API modify internal R data structures and might corrupt these data structures if
2009 Nov 18
2
Unnecesary code?
Dear R-ers,
While browsing the R sources, I found the following piece of code
in src\main\memory.c:
static void reset_pp_stack(void *data)
{
R_size_t *poldpps = data;
R_PPStackSize = *poldpps;
}
To me, it looks like the poldpps pointer is a nuissance; can't you
just cast the data pointer and derefer it at once? Say,
static void reset_pp_stack(void *data)
{
R_PPStackSize = *
2007 Jan 03
1
troubles installing SJava for R
Hello all,
I am using R 2.4.0 and SJava 0.69-0 on linux.
I am not able to install SJava on R. The following errors appear when
installing:
...
** R
** inst
WARNING: use of install..R is no longer supported
** preparing package for lazy loading
Creating a new generic function for "merge" in "SJava"
** help
>>> Building/Updating help pages for package
2017 Oct 06
1
SIGSEGV during startup
Hi,
This problem started as of r73472 ("Merged in the rest of the basic
ALTREP framework."); I tested r73471 and it did not exist.
I'm building R devel on Ubuntu 16.04.3 LTS (64-bit), with the following flags:
CC="gcc -std=gnu99 -fsanitize=address -fno-omit-frame-pointer"
CFLAGS="-fno-omit-frame-pointer -g -O2 -Wall -pedantic -mtune=native"
and using
2010 Jan 02
3
R-devel Digest, Vol 83, Issue 2
[Disclaimer: what is below reflects my understanding from reading the R
source, others will correct where deemed necessary]
On 1/2/10 12:00 PM, r-devel-request at r-project.org wrote:
>
> Hello,
>
> We are currently making lots of changes to Rcpp (see the open Rcpp
> mailing list if interested [1] in the details).
>
> We are now using [2] R_PreserveObject and R_ReleaseObject
2009 Sep 03
1
Running an expression 1MN times using embedded R
Hello,
I'm evaluating this expression
expression({ for(x in 1:5){ .Call('rh_status','x') }})
a million times from a program with R embedded in it. I have attached
reproducible code that crashes with
Program received signal SIGSEGV, Segmentation fault.
0x00002b499ca40a6e in R_gc_internal (size_needed=0) at memory.c:1309
1309 FORWARD_NODE(R_PPStack[i]);
Current language:
2009 Mar 03
1
profiler and loops
Hello,
(This is follow up from this thread:
http://www.nabble.com/execution-time-of-.packages-td22304833.html but
with a different focus)
I am often confused by the result of the profiler, when a loop is
involved. Consider these two scripts:
script1:
Rprof( )
x <- numeric( )
for( i in 1:10000){
x <- c( x, rnorm(10) )
}
Rprof( NULL )
print( summaryRprof( ) )
script2:
2007 Jan 18
0
Emulating a REPL in frontends
A common need in R frontends is to provide some sort of read, (parse),
evaluate, print loop. However, there are also a number of points where
frontends may want to differ from the standard REPL as available e.g. in
R_ReplDLLdo1().
First some thoughts on what is needed, and what is already there, or missing.
If you want to skip over this, a short summary is provided in the second
half, below
2006 Jun 29
3
Continuation and parse
Hi gurus,
After an unsuccessful scrabble through the documentation and Jon's
excellent search facility, I am no wiser as to how R recognizes an
incomplete command line and politely raises its hand for more. The help
page for parse gives no indication that it does anything more than spit
the dummy when fed an incomplete command line, but something in there
must recognize such ellipsis.
2006 Jun 29
3
Continuation and parse
Hi gurus,
After an unsuccessful scrabble through the documentation and Jon's
excellent search facility, I am no wiser as to how R recognizes an
incomplete command line and politely raises its hand for more. The help
page for parse gives no indication that it does anything more than spit
the dummy when fed an incomplete command line, but something in there
must recognize such ellipsis.
2003 Jun 03
2
tftp problems with VIA EPIA-M board
I'm trying to boot linux on a VIA EPIA-M board (a Nehemiah-based
M10000), and I'm having some trouble with it. I'm watching the network
transactions with ethereal, and I'm seeing a failure at what appears
to be the tftp stage.
The M10000 picks up its IP address from the dhcp server (ISC
DHCP3), and reports it correctly on the screen. Then the tftp session
starts, and I get the
2007 Oct 31
0
5 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_audio.c libswfdec/swfdec_sound.c libswfdec/swfdec_xml.c
libswfdec/swfdec_as_object.c | 20 +++++++++++++-------
libswfdec/swfdec_audio.c | 2 +-
libswfdec/swfdec_sound.c | 20 +++++++-------------
libswfdec/swfdec_xml.c | 2 +-
4 files changed, 22 insertions(+), 22 deletions(-)
New commits:
commit cd8a1b3eb4192c51b5787f53071e17270b5d2cca
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Wed Oct 31 12:08:50 2007
2013 Nov 26
0
QEMU dies on any attempt to load a Linux kernel module when using a 9P rootfs
Christopher,
It sounds like you disabled zero-copy entirely, which is not necessary.
As far as I recall, loading kernel modules is the only case in which
valloc() allocated buffers are used. In the worst case, we only need to
disable zero-copy on such buffers. I have been using a small patch to do
precisely that since yesterday. I have attached it to this email since
it sounds like the first
2003 Sep 03
0
TOAD Trial License Key
Thank you for downloading TOAD® from Quest Software. We're confident you'll find that it doubles your productivity and makes developing and managing your databases easier than ever before.
FREE WEEKLY WALK THROUGH
Jump start your use of TOAD and get a free TOAD T-shirt! Every Tuesday morning at 8 a.m. PT, a member of the TOAD technical team walks you through the product. To register -
2004 Feb 01
0
Ext3 and undeletion - A way how it could work.
Hello.
After reading some mails from mailing list archives and other sources,
ext3 seems to having troubles in deleting files w/o destroying the data
neccessary to undelete them. Ok, I know what journaling means, and in any
way, the ext3 fs driver needs to keep track of which blocks have actually
been marked as being free. But now my question: Who say, that this
information must be stored in
2006 Aug 20
1
omindex patch
Attached is my rather largish omindex.cc patch with ChangeLog.
It needs autoreconf to update configure and the Makefiles.
Note that unrar is not patent infected, only rar, the compressor.
I've put some AC_PATH_PROG checks into configure for all helpers.
The patch is not yet complete.
2006-08-18 15:13:32 Reini Urban <reinhard.urban at avl.com>
omega-0.9.6b:
* omindex.cc: last_mod as