Re: [Rd] [R] Fwd: Help: malloc/free deadlock in unsafe signal handler 'Rf_onsigusr1'

2016-08-03 Thread Ming Li
> without doing things that really shouldn't be done in a signal handler. > That is all these handlers are intended for. If you are using them > programatically you should rethink what you are doing. If you explain > what you are trying to do you might get some help with tha

[Rd] Help: malloc/free deadlock in unsafe signal handler 'Rf_onsigusr1'

2016-07-28 Thread Ming Li
Hi all, I am working on a bug, which running PLR on HAWQ. The process hung and can't be terminated. >From my investigation, it seems signal handler 'Rf_onsigusr1' trigger a malloc/free deadlock. The calling stack is below. Thread 1 (Thread 0x7f4c93af48e0 (LWP 431263)): #0 0x7f4c9015805e i

[Rd] R external pointer and GPU memory leak problem

2016-05-14 Thread Yuan Li
My question is based on a project I have partially done, but there is still something I'm not clear. My goal is to create a R package contains GPU functions (some are from Nividia cuda library, some are my self-defined CUDA functions) My design is quite different from current R's GPU package, I

[Rd] 2 questions about signal & broken connection in R

2013-08-14 Thread Rong lI Li
t;); Error in writeBin(as.integer(1), con, endian = "big") : ignoring SIGPIPE signal > writeBin(as.integer(1), con, endian="big"); - hanging = Rong "Jessica", Li Platform Symphony TET, CSTL, IBM Systems &Technology Group, Develo

Re: [Rd] Ctrl+C in R will terminate the child process which is spawned by using "pipe"

2013-07-04 Thread Rong lI Li
Unix/Linux platform and windows platform, I choose to use block signals in the child process. Thanks again for all your help! ===== Rong "Jessica", Li Platform Symphony TET, CSTL, IBM Systems &Technology Group, Development Tel:86-10-82451010 Email:rong...@cn.

[Rd] Ctrl+C in R will terminate the child process which is spawned by using "pipe"

2013-07-02 Thread Rong lI Li
+" "text""opened" "yes" can write "no" 2. When I press "Ctrl+C" in the current R shell, I found the forked child process was also terminated. Are there any way to work around it? = Rong "J

Re: [Rd] How can C++ read the R object written into socket with saveRDS or save

2013-06-28 Thread Rong lI Li
ree to correct me. = Rong "Jessica", Li Platform Symphony TET, CSTL, IBM Systems &Technology Group, Development Email:rong...@cn.ibm.com [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

[Rd] How can C++ read the R object written into socket with saveRDS or save

2013-06-26 Thread Rong lI Li
to do the function execution. = Rong "Jessica", Li (ÀîÈÙ) Platform Symphony TET, CSTL, IBM Systems &Technology Group, Development Tel:86-10-82451010 Email:rong...@cn.ibm.com [[alternative HTML version deleted]]

Re: [Rd] rpvm arch check

2013-01-17 Thread Michael Li
external library (libpvm.a) and use the correct architecture automatically when compiling rpvm code? Thanks, Michael On Tue, Jan 15, 2013 at 8:53 PM, Simon Urbanek wrote: > On Jan 15, 2013, at 2:24 PM, Michael Li wrote: > > > I've trying to fix the check error in rpvm package. Ri

[Rd] rpvm arch check

2013-01-15 Thread Michael Li
I've trying to fix the check error in rpvm package. Right now on my Mac, I use darwinport to install PVM and I can get rpvm to pass the check using 'R -arch x86_64 CMD check'. However the default 'R CMD check' uses i386 which fails since PVM is built for x86_64 only. So is there a way to ensure pr

Re: [Rd] enableJIT() prohibits usual R debugging

2012-03-21 Thread Feng Li
stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] tools_2.14.2 -- Feng Li Department of Statistics Stockholm University SE-106 91 Stockholm, Sweden http://feng.li/ __ R-devel@r

Re: [Rd] R-2.11.1 build and 'so' libraries withouth the 'lib' prefix//update

2010-07-12 Thread lI
On Monday 12 July 2010 23:51:55 Simon Urbanek wrote: > On Jul 12, 2010, at 5:59 PM, lI wrote: > > On Monday 12 July 2010 20:52:15 Simon Urbanek wrote: > >> On Jul 12, 2010, at 2:50 PM, lI wrote: > >>> On Monday 12 July 2010 11:07:23 lI wrote: > >>>

Re: [Rd] R-2.11.1 build and 'so' libraries withouth the 'lib' prefix//update

2010-07-12 Thread lI
On Monday 12 July 2010 20:52:15 Simon Urbanek wrote: > On Jul 12, 2010, at 2:50 PM, lI wrote: > > On Monday 12 July 2010 11:07:23 lI wrote: > >> On Monday 12 July 2010 10:29:30 lI wrote: > >>> Greetings, > >>> > >>> I have a computer with

Re: [Rd] R-2.11.1 build and 'so' libraries withouth the 'lib' prefix//update

2010-07-12 Thread lI
On Monday 12 July 2010 11:07:23 lI wrote: > On Monday 12 July 2010 10:29:30 lI wrote: > > Greetings, > > > > I have a computer with the following setup: > > 1)cblfs (pure 64-bit (amd64) linux), kernel2.6.34 gcc4.4.2 > > 2)R-2.11.1 > > > > I compil

Re: [Rd] R-2.11.1 build and 'so' libraries withouth the 'lib' prefix//update

2010-07-12 Thread lI
On Monday 12 July 2010 10:29:30 lI wrote: > Greetings, > > I have a computer with the following setup: > 1)cblfs (pure 64-bit (amd64) linux), kernel2.6.34 gcc4.4.2 > 2)R-2.11.1 > > I compiled R with BLAS and lapack using the switched ( --with-blas="- > lpthread -l

[Rd] R-2.11.1 build and 'so' libraries withouth the 'lib' prefix

2010-07-12 Thread lI
Greetings, I have a computer with the following setup: 1)cblfs (pure 64-bit (amd64) linux), kernel2.6.34 gcc4.4.2 2)R-2.11.1 I compiled R with BLAS and lapack using the switched ( --with-blas="- lpthread -latlas -lfptf77blas" --with-lapack="-llapack -lcblas" ). (( http://cran.r-project

Re: [Rd] [R] RNG Cycle and Duplication (PR#12540)

2008-08-16 Thread Shengqiao Li
uses modulus 2^30. Therefore there are only 2^30 distinct numbers, which is confirmed by my previous test in R. If someday Knuth's double version is also included in R, it will be great. Shengqiao Li On Fri, 15 Aug 2008, Duncan Murdoch wrote: On 15/08/2008 10:28 AM, Shengqiao Li wrote:

Re: [Rd] [R] RNG Cycle and Duplication (PR#12540)

2008-08-15 Thread Shengqiao Li
d.edu/~knuth/programs.html instead of the integer versions in R. I'm a R user. So why not also include the double verion in R implementation? Thanks again, Shengqiao Li Research Associate The Department of Statistics PO Box 6330 West Virginia

Re: [Rd] [R] RNG Cycle and Duplication (PR#12540)

2008-08-15 Thread Shengqiao Li
Professor Ripley, Thank you for your solution. So the last paragraph of the Note in RNG help page will be updated since Wichmann-Hill is different from other supplied uniform generators in the number of distinct values? Shengqiao Li On Fri, 15 Aug 2008, Prof Brian Ripley wrote: Remember

Re: [Rd] Buggy Kinderman-Ramage (PR#2846)

2008-03-15 Thread Shengqiao Li
08 svn rev44383 language R version.string R version 2.6.2 (2008-02-08) Shengqiao Li Research Associate The Department of Statistics PO Box 6330 West Virginia University Morgantown, WV 26506-6330 On Fri, 14 Mar 2008, Prof Brian Ripley

Re: [Rd] Buggy Kinderman-Ramage (PR#2846)

2008-03-14 Thread Shengqiao Li
Unfortunately, RNGkind is buggy. It will not generate warnings except the full name "Buggy Kinderman-Ramage" is supplied for normal.kind. match.arg is supposed to be called before "==" comparison. ======== Shengqiao Li Research Associa

[Rd] problem in linking to libR.so with R 2.5.0

2007-11-06 Thread Jiangtian Li
Dear All, I tried to write a C++ program that uses R internals and I encounter "undefined reference" error when linking to libR.so. Here is an small example of the program test.cpp: extern "C" { #include #include int main(int argc, char** argv) { R_IoBufferInit(&R_ConsoleIob); return 0; }

[Rd] free variable, built-in R functions

2007-03-19 Thread Jiangtian Li
Hi, I have one question about built-in R functions. I am looking into interprocedural analysis and since R supports "free variable", it would become complicated if free variable is read inside a function. It is uncommon and probably not good to read free variables when implementing R functions. I

[Rd] matrix/array types, extending R API?

2006-10-30 Thread Na Li
In writing R packages, I need some rudimentary support for matrix/array in C code and I would also like to use Blas/Lapack functions. Previously I just rolled out my own (simple) C++ classes. But it becomes troublesome for multiple packages (having duplicated files and needing to keep them in sy

[Rd] C API to R connections?

2006-06-26 Thread Na Li
Is it a public C API to R connection? I couldn't find any. Can I use the *Rconnection in user C code? Instead of straight fopen, I would like the ability to read in compressed file (gz, bz2), remote file, etc, using the implementation that R already has, with a uniformed interface. Also it wou

[Rd] unexported symbols in libR.so of r-devel

2006-01-24 Thread Na Li
Thanks to Matthias Burger, I came to know that in r-devel, a lot of symbols are no longer exported in libR.so, which breaks the package rpvm since it calls these functions in serialize.c. R_InitInPStream R_InitOutPStream Since the change is fairly recent (earlier this month), I guess the core te

[Rd] Help: A application error and failed just-in-debugging.

2005-09-27 Thread Li, Jia
Hello all, When I ran my R program in R version 2.1.1 in windows XP and 2000, and I downloaded a package call "MIX", I got an application error: RGui:Rgui.exe - Application Error: The instruction at "0x1009d8a1" referenced memory at "0xbde48f58". The memory could not be "read". Click on ok to