similar to: R unstable and crashes after executing .C

Displaying 20 results from an estimated 7000 matches similar to: "R unstable and crashes after executing .C"

2007 Feb 21
2
R unstable and crashes after executing .C
Dear R listers, I have developed a C function to be executed from R through the ".C" interface. After doing dyn.load, the function executes properly and I get the results. However, after executing my function, R seems to get unstable and crashes (giving a segmentation fault and exiting) whenever I try to do ANYTHING with a relatively large object (creating a new one or even just
2010 Nov 15
1
SEXP and slots
Hello, Since people have whisperred about Rcpp, I'd like to play too. > On 11/15/2010 07:45 AM, Patrick Leyshock wrote: >> Very helpful, thank you. >> >> A couple other questions, please: >> >> 1. I've got a function written in C, named "my_c_function". In my R >> code I call this function, passing to it an INTSXP and a STRSXP, >>
2007 Mar 07
3
Garbage collector crashes after calling a C function
Dear listers, a few days ago I asked a question about a problem I had with a C function programmed by myself to be called from R. Thanks to your help, I have been able to look a bit further into it, so now I can be a bit more specific when telling what happens. The fact is that, when my C function finishes its execution (after calling it via the ".C" interface), R seems ok but
2011 Dec 28
1
external pointers
I have an external pointer object that I'd like to pass from my R code to some C code. Per Section 5.13 of "Writing R Extensions", I've noted that "external pointers should only be used as part of an object with normal semantics, for example an attribute or an element of a list." So I've written up a workable C function as such: SEXP my_c_function(SEXP param)
2010 Oct 27
2
must .Call C functions return SEXP?
For using R's .Call interface to C functions, all the examples I've seen have the C function return type SEXP. Why? What does R actually do with this return type? What happens if I *don't* return a SEXP? Reason I ask, is I've written some R code which allocates two long lists, and then calls a C function with .Call. My C code writes to those two pre-allocated lists, thus, I
2011 Jun 07
0
Curso de Introducción a R (6ª Edición) - Barcelona, 19-22 Septiembre 2011
Apreciados miembros de lista, nos complace anunciaros la realización de la 6ª Edición del CURSO DE INTRODUCCIÓN A R, organizado por la Unidad de Biomarcadores y Susceptibilidad del Institut Català d''Oncologia. El curso tendrá lugar en Barcelona, los días 19, 20, 21 y 22 de Septiembre de 2011. El curso está abierto a toda persona interesada, sin necesidad de conocimientos de
2012 May 30
1
Automatically install package dependencies
Hi, I have a R Package. It is working, but I can't that it install the dependencies automatically. When I try to install I receive this message: > install.packages("./RT4Bio_1.0.tar.gz",dependencies=TRUE) Installing package(s) into '/usr/local/lib/R/site-library' (as 'lib' is unspecified) inferring 'repos = NULL' from the file name ERROR: dependency
2008 Jan 27
2
problems building and installing some packages in 'unstable'
Hi, I'm keeping a Debian unstable system, and recently found 2 problems: 1) building a package (R CMD build diveMove, available from CRAN) depending on KernSmooth fails with: ---<---------------cut here---------------start-------------->--- Loading required package: KernSmooth Error in dyn.load(file, ...) : unable to load shared library
2008 Jun 06
3
Problem in executing R on server
Hi R-listers, I have problem in executing my R on server. It returns me Error: cannot allocate vector of size 15.8 Mb each time when i execute R on the server. But it doesnt give me any problem when i try executing on my own Pc (except it runs extremely slow). Any pointers to this? I tried to read the FAQ on this issue before in the archive but it seems there is no one solution to this. I
2018 Feb 02
1
R-gui sessions end when executing C-code
Hi I'm trying to develop some C code to find the fixpoint of a contraction mapping, the code compiles and gives the right results when executed in R. However R-gui session is frequently terminated. I'm suspecting some access violation error due to the exception code 0xc0000005 In the error report windows 10 gives me. It is the first time I'm writing any C-code so I'm guessing I
2006 Oct 06
2
Bug#391448: xen-hypervisor-3.0-unstable-1-i386: dom0 crashes when starting the 3rd domU
Package: xen-hypervisor-3.0-unstable-1-i386 Version: 3.0-unstable+hg11561-1 Severity: important I've installed xen-linux-system-2.6.17-2-xen-k7 (version 2.6.17-9) on a server, and planned to run 3 Xen domUs on it. Creating the domUs was no problem, and running two of them works well. Starting the third one however will crash the dom0 and forces it to reboot. The machine is a Athlon64 3800+
2019 May 13
1
[Bug 110669] New: iMac with GK107M unstable - hangs with xorg / crashes with xwayland
https://bugs.freedesktop.org/show_bug.cgi?id=110669 Bug ID: 110669 Summary: iMac with GK107M unstable - hangs with xorg / crashes with xwayland Product: Mesa Version: 19.0 Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium
2017 Dec 09
2
Reducing code size of Position Independent Executables (PIE) by shrinking the size of dynamic relocations section
> We've taken the '.relr.dyn' section from Cary's prototype, and implemented a > custom encoding to compactly represent the list of offsets. We're calling the > new compressed section '.relrz.dyn' (for relocations-relative-compressed). I'd suggest just using .relr.dyn -- your encoding is straightforward enough that I'd just make that the standard
2017 Dec 07
0
Reducing code size of Position Independent Executables (PIE) by shrinking the size of dynamic relocations section
Sri and I have been working on this over the past few months, and we've made some good progress that we'd like to share and get feedback on. Our work is based on the 'experimental-relr' prototype from Cary that is available at 'users/ccoutant/experimental-relr' branch in the binutils repository [1], and was described earlier in this thread:
2017 May 08
4
Reducing code size of Position Independent Executables (PIE) by shrinking the size of dynamic relocations section
+llvm-dev Discussion here: https://sourceware.org/ml/gnu-gabi/2017-q2/msg00000.html On Tue, May 2, 2017 at 10:17 AM, Suprateeka R Hegde <hegdesmailbox at gmail.com> wrote: > On 02-May-2017 12:05 AM, Florian Weimer wrote: >> On 05/01/2017 08:28 PM, Suprateeka R Hegde wrote: >>> So the ratio shows ~96% is RELATIVE reloc. And only ~4% others. This is >>> not the
2004 Feb 11
3
RGui (Windows) crashes after use of a Salford Fortran DLL
Anybody out there successfully using the Salford Fortran compilers with R? I have created a DLL using the Salford FTN95 compiler and it works in as far I can dyn.load it, run the routines and get the right answers back. Unfortunately subsequently, sometime later, the Rgui crashes (access violation I think from the DrWatson log). The crashes depend on whether or not I paste the code as one
2017 Dec 11
2
Reducing code size of Position Independent Executables (PIE) by shrinking the size of dynamic relocations section
A simple combination of delta-encoding and run_length-encoding is one of the first schemes we experimented with (32-bit entries with 24-bit 'delta' and an 8-bit 'count'). This gave really good results, but as Sri mentions, we observed several cases where the relative relocations were not on consecutive offsets. There were common cases where the relocations applied to alternate
2012 Sep 20
1
R/C++ interfaces: crashes when using .c(), followed by correct results when R restarted
Dear all I have written a function in C++ , equil_distC, that I am calling from an R script. In the last few days, R has repeatedly crashed when calling this function, or delivered obviously wrong outputs. However, when I restarted R after the crash, the results turned out to be OK most of the time although I had not modified the C++ code. Although the code runs correctly now, I am not sure
2006 Jun 29
1
using "rbinom" in C code gives me erroneous results... random variable is not random (always zero)...
Dear Listers, I am trying to use "rbinom" in my C code, but i always get zeros as output no matter the probability. Am not sure what I am doing wrong because the function has worked before. Attached in an example. Noticed that "rbinom" expects 'n' to be REAL. Regards, Vumani R 2.3.1 (2006-06-01) Windows XP Gcc /* Called this file binom.c and then ran rcmd shlib on it
2003 Sep 29
0
Calling C fn crashes (PR#4281)
Full_Name: Ben K. Version: 1.7.1 OS: Win 2000 Submission from: (NULL) (208.243.20.222) This C code doesn't crash: void init(SEXP rho, int *o){ SEXP vars = findVar(install("vars"), rho); } It's called using: vars <-as.data.frame(NULL) vars$delta <-7 dyn.load("c_fns.dll") print(.C("init",.GlobalEnv,o=as.integer(3))$o) However, this