similar to: R_alloc problem (Mac OSX)

Displaying 20 results from an estimated 1000 matches similar to: "R_alloc problem (Mac OSX)"

2006 Mar 15
1
R_alloc problem on Mac OSX (PR#8683)
Full_Name: Dan Kelley Version: 2.2.1 OS: Mac OSX Submission from: (NULL) (129.173.23.36) I'm having difficulties getting R_alloc() to work on a 64-bit Mac running R 2.2.1 installed via a .dmg file obtained from the R site. Details are given below, in a level of detail that I hope is appropriate. My eye was particularly drawn to line #2 in the gdb 'where' output, but line #1 seems
2010 Jan 07
1
Segfault in GetNewPage, memory.c.
Hello. I'm still working on my OCaml-R binding and I get a segfault in the GetNewPage() function of memory.c. For the record, the OCaml-R binding seems to work fine with OCaml bytecode. The segfault here is the main issue I have with OCaml native code. OCaml-R can be found on the following links. Source code: http://yziquel.homelinux.org/gitweb/?p=ocaml-r.git;a=summary
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
2008 Jan 19
1
R_alloc segfaults
I want to write a little stand-alone C program that calls R_alloc, but I get a segmentation fault: int main(int argc, char** argv){ double* d = (double *)R_alloc(2, sizeof(double)); // <- segmentation fault! return 0; } gdb reveals that sizeof(double) evaluated to 0: > R_alloc (nelem=2, eltsize=0) at memory.c:1649 so it results in the segfault later. This is how I compile my
2011 Aug 14
0
Improved version of Rprofmem
The Rprofmem facility is currently enabled only if the configuration option --enable-memory-profiling is used. However, the overhead of having it enabled is negligible when profiling is not actually being done, and can easily be made even smaller. So I think it ought to be enabled all the time. I've attached a patch doing this, which also makes a number of other improvements to Rprofmem,
2008 Mar 05
1
R_alloc with structures with "flexible array members"
Dear All, In a package, I want to use some C code where I am using a structure (as the basic element of a linked list) with flexible array members. Basically, this is a structure where the last component is an incomplete array type (e.g., Harbison & Steel, "C, a reference manual, 5th ed.", p. 159) such as: struct Sequence { struct Sequence *next; int len; unsigned int
2005 Mar 10
1
R_alloc with more than 2GB (PR#7721)
Full_Name: Wolfgang Huber Version: R-devel_2005-03-10 OS: alphaev68-dec-osf4.0f Submission from: (NULL) (62.253.128.15) This report concerns allocation of large (>2^31 byte) chunks of memory with R_alloc. I suspect it is a bug/typo but please don't hate me if it's actually a feature: In R, I can happily create large matrices: > a= matrix(0, nrow=191481, ncol=3063) > dim(a) [1]
2011 Dec 21
1
When exactly do I need R_alloc when using the .Call() interface?
Hi, I am trying to implement an algorithm in C which will be called via the .Call() interface. While reading the 'Writing R Extension' manual, I stumbled upon the R_alloc() function for allocating storage for C objects. The manual says it should be used to allocate storage if an C object is needed/created while manipulating R objects within a function called via the .Call() interface.
2004 Dec 30
1
optim/vmmin and R_alloc
I am calling 'vmmin' several times from a C function (which is called via .C). It works very well, except for memory consumption. The cause is that vmmin allocates memory via R_alloc, and this memory is not freed as vmmin exits. Instead all the allocated memory is freed on return of the .C call. In one application, I have 2000 functions of 500 variables each to minimize. In each call to
2006 Feb 26
0
R2.2.1 source compile problem in MacOS10.3
Dear R-list, Realising the importance of updating the R base, I tried to compile the source file of R2.2.1 in my machine, but failed. According to "R for Mac OS X FAQ", i've got the basic dependencies which are gcc 3.3 and g77 3.4. ./configure is fine Here are the errors I got from make: >make ... gcc -I../../src/extra/zlib -I../../src/extra/bzip2 -I../../src/extra/pcre
2008 Apr 11
1
R_alloc vs. malloc
Dear list I have two (trivial) memory-questions related to a call with .C: If I allocate memory with R_alloc in a C-program (called with .C), will that memory "be taken from" the "available memory pool" (of a maximum of 4gb?) which R can allocate? (This is the impression I get from "Writing R extensions".) If instead I use malloc; will that memory then be taken
2011 Jun 10
0
Rails 3.1 RC4 with jruby-1.6.2 and stream-renderer missing constant Fiber
I just followed the railscast http://asciicasts.com/episodes/266-http-streaming to have streaming. calling the http://localhost:3000/users ends up with following error: [INFO] NameError (uninitialized constant ActionView::StreamingTemplateRenderer::Fiber): [INFO] /home/kristian/projects/sandbox/rails3.1/rails3.1-test5/ target/rubygems/gems/actionpack-3.1.0.rc4/lib/action_view/renderer/
2008 Oct 16
0
(no subject)
Hello everybody. I have a strange problem with cifs and Samba share. I have a Qnap NAS server (TS-109) and I would like to have a private share where I could keep my stuff and access them through Windows and Linux. But I have an odd problem and I can't tell what's wrong. I can write new files on a share, I can update them but I can't write on special occasions. And because of this
2004 Mar 19
0
Fwd: osx/fink: cannot do "R INSTALL" (library mixup)
Begin forwarded message: > From: Dan Kelley <Dan.Kelley at Dal.Ca> > Date: March 19, 2004 12:00:01 PM AST > To: Don MacQueen <macq at llnl.gov> > Subject: Re: [R] osx/fink: cannot do "R INSTALL" (library mixup) > > That works perfectly! THanks. I did > 524 export PKG_LIBS="-L/usr/local/lib -L/sw/lib" > 525 R INSTALL pspline > and
2012 May 11
0
[patch] Behavior of .C() and .Fortran() when given double(0) or integer(0) (repost).
Dear R-devel, Duncan Murdoch suggested that I repost this if I don't get a response in a week, so here it is. The tests and the patches were on/against revision 59314, but I don't think that any of the commits since then affected the code in question. While tracking down some hard-to-reproduce bugs in a package I maintain, I stumbled on a behavior change between R 2.15.0 and the current
2009 Jul 17
0
Rsync problem : stops unexpectedly
Hello. My problem is Rsync stops when I use it between 2 of my servers (2 NAS Synology) ( named "*.22*" and "*.6*" ). The problem continue... For example : _ Rsync run correctly between my server "*.22*" and ".6" ( in the 2 directions ) _ Rsync run correctly between my server ".6" and "*.8*" ( in the 2 directions ) _ Rsync *doesn't
2009 Jul 15
0
Rsync stops in the middle of a transfer
Hello. My problem is Rsync stops when I use it between 2 of my servers (2 NAS Synology) ( named "*.22*" and "*.6*" ). For example : _ Rsync run correctly between my server "*.22*" and ".6" ( in the 2 directions ) _ Rsync run correctly between my server ".6" and "*.8*" ( in the 2 directions ) _ Rsync *doesn't run* correctly between my
2005 Jun 13
1
memory allocation problem under linux
I have some compiled code that works under winXp but not under linux (kernel 2.6.10-5). I'm also using R 2.1.0 After debugging, I've discovered that in this code: #define NMAX 256 long **box; ... box = (long **)R_alloc(NMAX, sizeof(long *)); //<---HERE THE SIGSEGV for (i=0; i<NMAX; i++) box[i] = (long *) R_alloc(NMAX, sizeof(long)); inside the *first* call to the
2005 Jun 12
1
memory allocation problem under linux
I have some compiled code that works under winXp but not under linux (kernel 2.6.10-5). I'm also using R 2.1.0 After debugging, I've discovered that this code: #define NMAX 256 long **box; ... box = (long **)R_alloc(NMAX, sizeof(long *)); gives a null pointer, so subsequent line: for (i=0; i<NMAX; i++) box[i] = (long *) R_alloc(NMAX, sizeof(long)); gives a SIGSEGV signal.
2012 May 04
4
[patch] Behavior of .C() and .Fortran() when given double(0) or integer(0).
Dear R-devel, While tracking down some hard-to-reproduce bugs in a package I maintain, I stumbled on a behavior change between R 2.15.0 and the current R-devel (or SVN trunk). In 2.15.0 and earlier, if you passed an 0-length vector of the right mode (e.g., double(0) or integer(0)) as one of the arguments in a .C() call with DUP=TRUE (the default), the C routine would be passed NULL (the C