search for: rf_mainloop

Displaying 20 results from an estimated 38 matches for "rf_mainloop".

2007 Apr 03
2
R callbacks
...lt;Rinterface.h> extern int R_running_as_main_program; static void my_R_WriteConsole(char *buf, int len) { printf("R<< %s", buf); } int main(int ac, char **av) { R_running_as_main_program = 1; ptr_R_WriteConsole = my_R_WriteConsole; Rf_initialize_R(ac, av); Rf_mainloop(); return 0; } --------------- I compile and run this in bash with RPROG=R INC=`${RPROG} CMD config --cppflags` LDF=`${RPROG} CMD config --ldflags` export LD_LIBRARY_PATH=`${RPROG} RHOME`/lib gcc -o altr ${INC} ${LDF} altr.c ${RPROG} CMD ./altr However, my customized version seems not to...
2013 May 25
0
segfault when using browser() in Rprofile.site
...sole (main.c:307) ==31314== by 0x4D4353: do_browser (main.c:1137) ==31314== by 0x4B1E86: Rf_eval (eval.c:639) ==31314== by 0x4D22F0: R_ReplFile (main.c:101) ==31314== by 0x4D23FF: R_LoadProfile (main.c:663) ==31314== by 0x4D2965: setup_Rmainloop (main.c:892) ==31314== by 0x4D4558: Rf_mainloop (main.c:992) ==31314== by 0x41A4D7: main (Rmain.c:32) ==31314== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==31314== *** caught segfault *** address (nil), cause 'memory not mapped' And here is the gdb backtrace: #0 R_IoBufferPutc (c=c at entry=108, iob=i...
2003 Apr 14
3
ctl-D, cancel, ctl-D yields seg fault (PR#2773)
...Robert Dodier Version: 1.2.0 (2000-12-15) OS: RH Linux 7.1 Submission from: (NULL) (128.138.88.127) If I start up R and just do: > <ctl-D> Save workspace image? [y/n/c]: c > <ctl-D> then R segfaults. "gdb `locate R.bin` core" reports: (gdb) where #0 0x080a2282 in Rf_mainloop () at eval.c:41 However, if I use q() then there is no segfault: > q() Save workspace image? [y/n/c]: c > q() Save workspace image? [y/n/c]: n and it exits without further ado. Also, <ctl-D> followed by 'y' or 'n' exits without segfault. I searched the bug archive bu...
2006 Oct 19
1
Segmentation fault/buffer overflow with fix() in Fedora Core 5 from Extras repository
...R.so(Rf_eval+0x483)[0x1b0973] /usr/lib/R/lib/libR.so(Rf_applyClosure+0x2a7)[0x1b2f67] /usr/lib/R/lib/libR.so(Rf_eval+0x2f4)[0x1b07e4] /usr/lib/R/lib/libR.so(Rf_ReplIteration+0x311)[0x1d01b1] /usr/lib/R/lib/libR.so[0x1d03c1] /usr/lib/R/lib/libR.so(run_Rmainloop+0x60)[0x1d0710] /usr/lib/R/lib/libR.so(Rf_mainloop+0x1c)[0x1d073c] /usr/lib/R/bin/exec/R(main+0x46)[0x8048696] /lib/libc.so.6(__libc_start_main+0xc6)[0x9c41fe] /usr/lib/R/bin/exec/R[0x8048591] ======= Memory map: ======== 00110000-00329000 r-xp 00000000 08:05 553625 /usr/lib/R/lib/libR.so 00329000-00336000 rwxp 00219000 08:05 553625 /usr/li...
2000 Jul 11
1
Help: R seg faults
...=0xbfffeedc "", len=1024, addtohistory=1) at ../../../R-1.1.0/src/unix/system.c:66 #6 0x8097d78 in R_ReplConsole (rho=0x40296338, savestack=0, browselevel=0) at ../../../R-1.1.0/src/main/main.c:128 #7 0x80985e2 in run_Rmainloop () at ../../../R-1.1.0/src/main/main.c:454 #8 0x8098620 in Rf_mainloop () at ../../../R-1.1.0/src/main/main.c:468 #9 0x80e715a in main (ac=0, av=0xbffff7f4) at ../../../R-1.1.0/src/unix/system.c:222 Cheers, Jan. Jan Kreft Phone +44 (0)29 20875278 Cardiff School of Biosciences Fax +44 (0)29 20874305 Cardiff University...
2008 Apr 18
1
swig 1.3.35 & R - is the R wrapper still maintained and of interest?
...rho=0x9a9a720, suppliedenv=0x9a9a73c) at eval.c:669 #14 0xb7e0de19 in Rf_eval (e=0xa60d74c, rho=0x9a9a720) at eval.c:507 #15 0xb7e31a00 in Rf_ReplIteration (rho=0x9a9a720, savestack=0, browselevel=0, state=0xbfa589a8) at main.c:257 #16 0xb7e31ddc in run_Rmainloop () at main.c:306 #17 0xb7e31e1c in Rf_mainloop () at main.c:974 #18 0x08048776 in main (ac=1, av=0xb805b668) at Rmain.c:35 #19 0xb7be8450 in __libc_start_main () from /lib/i686/cmov/libc.so.6 #20 0x08048691 in _start () To reproduce ?wget http://nn7.de/debugging/shogun-0.6.1+svn2882.tar.bz2 tar xjf shogun-0.6.1+svn2882.tar.bz2 cd shogun-0.6.1...
2018 Aug 06
2
SIGSEGV in R_RunWeakRefFinalizer, object allocated with Rcpp
...3370) at eval.c:747 #11 0x6ca11170 in Rf_ReplIteration (rho=0x15a3370, savestack=0, browselevel=0, state=0x142edec) at main.c:258 #12 0x6ca11567 in R_ReplConsole (rho=<optimized out>, savestack=0, browselevel=0) at main.c:308 #13 0x6ca11604 in run_Rmainloop () at main.c:1082 #14 0x6ca11700 in Rf_mainloop () at main.c:1089 #15 0x00401836 in AppMain (argc=1, argv=0x15c16f8) at rterm.c:86 #16 0x00401649 in WinMain at 16 (Instance=0x400000, PrevInstance=0x0, CmdLine=0x1904797 "", CmdShow=10) at graphappmain.c:23 #17 0x00402a8d in main () Any ideas? I?aki
2017 Oct 06
1
SIGSEGV during startup
...4 0x654a49 in Rf_allocVector ../../../R-svn/src/include/Rinlinedfuns.h:514 #5 0x654a49 in Rf_mkTrue ../../../R-svn/src/main/gram.c:4164 #6 0x6b616c in Rf_InitMemory ../../../R-svn/src/main/memory.c:2137 #7 0x69186a in setup_Rmainloop ../../../R-svn/src/main/main.c:842 #8 0x694488 in Rf_mainloop ../../../R-svn/src/main/main.c:1088 #9 0x41e398 in main ../../../R-svn/src/main/Rmain.c:29 #10 0x7f9d71f4182f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f) #11 0x41fbe8 in _start (/home/josh/R/R-build/bin/exec/R+0x41fbe8) AddressSanitizer can not provide additional inf...
2007 Apr 13
2
R on Solaris 10 x64
...val.c" [18] Rf_ReplIteration(rho = 0x8379b1c, savestack = 0, browselevel = 0, state = 0x8047328), line 256 in "main.c" [19] R_ReplConsole(rho = 0x8379b1c, savestack = 0, browselevel = 0), line 305 in "main.c" [20] run_Rmainloop(), line 944 in "main.c" [21] Rf_mainloop(), line 951 in "main.c" [22] main(ac = 4, av = 0x80477ac), line 33 in "Rmain.c" (dbx) p curr_len curr_len = 24960U (dbx) p curr_seq curr_seq = 0 (dbx) p of dbx: "of" is not defined in the scope `libhdf5.so.0.0.0`H5Dselect.c`H5D_select_mgath:347` dbx: see `help scope&...
2006 Oct 17
1
crush in edit()
...R.so(Rf_eval+0x483)[0x925b23] /usr/lib/R/lib/libR.so(Rf_applyClosure+0x2a7)[0x928117] /usr/lib/R/lib/libR.so(Rf_eval+0x2f4)[0x925994] /usr/lib/R/lib/libR.so(Rf_ReplIteration+0x311)[0x945361] /usr/lib/R/lib/libR.so[0x945571] /usr/lib/R/lib/libR.so(run_Rmainloop+0x60)[0x9458c0] /usr/lib/R/lib/libR.so(Rf_mainloop+0x1c)[0x9458ec] /usr/lib/R/bin/exec/R(main+0x46)[0x80486f6] /lib/libc.so.6(__libc_start_main+0xdc)[0x49c3b4e4] /usr/lib/R/bin/exec/R[0x80485f1] ======= Memory map: ======== 00111000-0012f000 r-xp 00000000 fd:00 16943095 /usr/lib/R/library/grDevices/libs/grDevices.so 0012f000-00130000 rwxp 0001d000...
2006 Oct 17
1
crush in edit()
...R.so(Rf_eval+0x483)[0x925b23] /usr/lib/R/lib/libR.so(Rf_applyClosure+0x2a7)[0x928117] /usr/lib/R/lib/libR.so(Rf_eval+0x2f4)[0x925994] /usr/lib/R/lib/libR.so(Rf_ReplIteration+0x311)[0x945361] /usr/lib/R/lib/libR.so[0x945571] /usr/lib/R/lib/libR.so(run_Rmainloop+0x60)[0x9458c0] /usr/lib/R/lib/libR.so(Rf_mainloop+0x1c)[0x9458ec] /usr/lib/R/bin/exec/R(main+0x46)[0x80486f6] /lib/libc.so.6(__libc_start_main+0xdc)[0x49c3b4e4] /usr/lib/R/bin/exec/R[0x80485f1] ======= Memory map: ======== 00111000-0012f000 r-xp 00000000 fd:00 16943095 /usr/lib/R/library/grDevices/libs/grDevices.so 0012f000-00130000 rwxp 0001d000...
2001 Jul 03
0
(PR#1008) SIGSEGV under 1.1.1 too
...uf=0xbffff038 "for (i in 1:100) an1 <- ann(cbind(runif(1000), runif(1000)), k = 4)\n", len=1024, addtohistory=1) at system.c:66 #7 0x8093618 in R_ReplConsole (rho=0x402dc338, savestack=0, browselevel=0) at main.c:128 #8 0x8093e86 in run_Rmainloop () at main.c:454 #9 0x8093ec4 in Rf_mainloop () at main.c:468 #10 0x80e319a in main (ac=0, av=0xbffff934) at system.c:222 The first 100 calls went OK (as did 100 prior to that), but increasing the number of points by one triggered the fault. It looks like memory allocation on the C++ side, to which R >= 1.2.0 is more sensitive than before...
2008 Aug 06
1
RGtk2 on linux: "stack smashing detected"
.../R/lib/libR.so(R_runHandlers+0x46)[0xb7db9586] > /usr/lib/R/lib/libR.so[0xb7dba98f] > /usr/lib/R/lib/libR.so(R_ReadConsole+0x35)[0xb7db7945] > /usr/lib/R/lib/libR.so(Rf_ReplIteration+0x42b)[0xb7cea63b] > /usr/lib/R/lib/libR.so(run_Rmainloop+0x102)[0xb7cea7b2] > /usr/lib/R/lib/libR.so(Rf_mainloop+0x1c)[0xb7cea80c] > /usr/lib/R/bin/exec/R(main+0x46)[0x8048776] > /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb7ac1450] > ======= Memory map: ======== > 08048000-08049000 r-xp 00000000 08:02 288844 /usr/lib/R/bin/exec/R > 08049000-0804a000 rw-p 00000000 08:02 288844...
2010 Jul 21
1
Plot window does not update in embedded code
...in ../unix/system.c */ } int main(int ac, char **av) { R_running_as_main_program = 1; Rf_initialize_R(ac, av); ptr_R_WriteConsoleEx = &R_WriteConsoleEx; ptr_R_WriteConsole = &R_WriteConsole; ptr_R_ReadConsole = &R_ReadConsole; R_Outputfile = NULL; R_Consolefile = NULL; Rf_mainloop(); /* does not return */ return 0; }
2010 Mar 14
1
Segfault Problem c++ R interface (detailed)
...0x00291974 in ?? () from /usr/lib/R/lib/libR.so #2 0x002929b3 in ?? () from /usr/lib/R/lib/libR.so #3 0x00229b32 in Rf_ReplIteration () from /usr/lib/R/lib/libR.so #4 0x00229db0 in ?? () from /usr/lib/R/lib/libR.so #5 0x00229e65 in run_Rmainloop () from /usr/lib/R/lib/libR.so #6 0x00229e8c in Rf_mainloop () from /usr/lib/R/lib/libR.so #7 0x080487d8 in main () #8 0x00461b56 in __libc_start_main (main=0x80487a0 <main>, argc=2, ubp_av=0xbffff654, init=0x8048800 <__libc_csu_init>, fini=0x80487f0 <__libc_csu_fini>, rtld_fini=0x11dd20 <_dl_fini>, stack_end=0xbffff64c) at...
2018 Aug 09
0
SIGSEGV in R_RunWeakRefFinalizer, object allocated with Rcpp
...x6ca11170 in Rf_ReplIteration (rho=0x15a3370, savestack=0, > browselevel=0, state=0x142edec) at main.c:258 > #12 0x6ca11567 in R_ReplConsole (rho=<optimized out>, savestack=0, > browselevel=0) at main.c:308 > #13 0x6ca11604 in run_Rmainloop () at main.c:1082 > #14 0x6ca11700 in Rf_mainloop () at main.c:1089 > #15 0x00401836 in AppMain (argc=1, argv=0x15c16f8) at rterm.c:86 > #16 0x00401649 in WinMain at 16 (Instance=0x400000, PrevInstance=0x0, > CmdLine=0x1904797 "", CmdShow=10) > at graphappmain.c:23 > #17 0x00402a8d in main () > > Any ideas? >...
2012 Nov 30
3
segfault debugging
Hello everybody, I have written a script with two inline cfunctions. The script crashes from time to time with: ? ?*** caught segfault *** ? address 0x10, cause 'memory not mapped' The crashs happen within R code after the cfunctions were executed. Nevertheless I think that the pointers in my cfunctions are not used correctly. I tried to find some examples for debugging tools. I found
2003 Mar 17
1
R-devel on Darwin
...l.c:950) #54 0x00056fcc in Rf_eval (eval.c:418) #55 0x00058810 in do_begin (eval.c:1055) #56 0x00056fcc in Rf_eval (eval.c:418) #57 0x00057614 in Rf_applyClosure (eval.c:609) #58 0x00057200 in Rf_eval (eval.c:453) #59 0x000736e4 in setup_Rmainloop (main.c:577) #60 0x00073850 in Rf_mainloop (main.c:622) #61 0x000dc520 in main (system.c:102) #62 0x00001a40 in _start (crt.c:267) #63 0x000018c0 in start PPC Thread State: srr0: 0x0149995c srr1: 0x0200f030 vrsave: 0x00000000 xer: 0x00000000 lr: 0x0149990c ctr: 0x01468fdc mq: 0x00000000 r0: 0x00000a...
2001 Dec 21
0
{R} 1.4.0 compiling failed on sun sparc solaris 2.6
...bc, suppliedenv = 0x30a888), line 591 in "eval.c" [30] Rf_eval(e = 0xb54b04, rho = 0x32a4bc), line 435 in "eval.c" [31] R_ReplConsole(rho = 0x32a4bc, savestack = 0, browselevel = 0), line 187 in "main.c" [32] run_Rmainloop(), line 499 in "main.c" [33] Rf_mainloop(), line 506 in "main.c" [34] main(ac = 3, av = 0xeffff51c), line 90 in "system.c" (dbx) ------------------------------------------------------------------------------------------------- same settings (in config.site) configures and compiles without problems fo...
2007 Jun 13
0
Reported invalid memory references
....2) ==30906== by 0x420D34A: (within /usr/lib/R/lib/libR.so) ==30906== by 0x420E8F4: R_ReadConsole (in /usr/lib/R/lib/libR.so) ==30906== by 0x40FAB8A: Rf_ReplIteration (in /usr/lib/R/lib/libR.so) ==30906== by 0x40FACFD: run_Rmainloop (in /usr/lib/R/lib/libR.so) ==30906== by 0x40FAD4B: Rf_mainloop (in /usr/lib/R/lib/libR.so) ==30906== by 0x80486C5: main (in /usr/lib/R/bin/exec/R) ==30906== ==30906== ==30906== 35 bytes in 1 blocks are definitely lost in loss record 11 of 53 ==30906== at 0x40234B0: malloc (vg_replace_malloc.c:149) ==30906== by 0x41B8F55: (within /usr/lib/R/lib/libR....