search for: do_for

Displaying 20 results from an estimated 29 matches for "do_for".

Did you mean: do_foo
2019 Feb 27
2
Intermittent crashes with inset `[<-` command
...by 0x501A40F: VectorAssign (subassign.c:658) ==4711== by 0x501CDFE: do_subassign_dflt (subassign.c:1641) ==4711== by 0x5020100: do_subassign (subassign.c:1571) ==4711== by 0x4F66398: bcEval (eval.c:6795) ==4711== by 0x4F7D86D: R_compileAndExecute (eval.c:1407) ==4711== by 0x4F7DA70: do_for (eval.c:2185) ==4711== by 0x4F7741C: Rf_eval (eval.c:691) ==4711== by 0x4FA7181: Rf_ReplIteration (main.c:258) ==4711== by 0x4FA7570: R_ReplConsole (main.c:308) ==4711== by 0x4FA760E: run_Rmainloop (main.c:1082) ==4711== by 0x40075A: main (Rmain.c:29) ==4711== Address 0x19b3ab90 is...
2019 Feb 27
0
Intermittent crashes with inset `[<-` command
...gn (subassign.c:658) > ==4711== by 0x501CDFE: do_subassign_dflt (subassign.c:1641) > ==4711== by 0x5020100: do_subassign (subassign.c:1571) > ==4711== by 0x4F66398: bcEval (eval.c:6795) > ==4711== by 0x4F7D86D: R_compileAndExecute (eval.c:1407) > ==4711== by 0x4F7DA70: do_for (eval.c:2185) > ==4711== by 0x4F7741C: Rf_eval (eval.c:691) > ==4711== by 0x4FA7181: Rf_ReplIteration (main.c:258) > ==4711== by 0x4FA7570: R_ReplConsole (main.c:308) > ==4711== by 0x4FA760E: run_Rmainloop (main.c:1082) > ==4711== by 0x40075A: main (Rmain.c:29) > ==...
2019 Feb 26
8
Intermittent crashes with inset `[<-` command
The following code crashes after about 300 iterations on my?x86_64-w64-mingw32?machine on R 3.5.2 --vanilla.?? Others have duplicated this (see?https://github.com/tidyverse/magrittr/issues/190?if necessary), but I don't know how machine/OS-dependent it may be.?? If it doesn't crash for you, please try increasing the length of the x vector. Substituting the commented-out line for the one
2005 Jun 27
2
R v2.1.1 for Windows and "non-reproducible" crashes
...100846E0 R.dll:100846E0 Rf_eval 10086305 R.dll:10086305 do_set 1008494A R.dll:1008494A Rf_eval 100863D5 R.dll:100863D5 do_begin 1008494A R.dll:1008494A Rf_eval 1008494A R.dll:1008494A Rf_eval 100863D5 R.dll:100863D5 do_begin 1008494A R.dll:1008494A Rf_eval 10086A18 R.dll:10086A18 do_for 1008494A R.dll:1008494A Rf_eval 100863D5 R.dll:100863D5 do_begin 1008494A R.dll:1008494A Rf_eval 100875AB R.dll:100875AB Rf_applyClosure 100A9361 R.dll:100A9361 do_internal 100A99A5 R.dll:100A99A5 Rf_usemethod 100A9E1A R.dll:100A9E1A do_usemethod 1008494A R.dll:1008494A Rf_eval 1008...
2004 Aug 24
1
Need help debugging R.
...8fcb in Rf_allocVector () #6 0x080a9f7f in Rf_duplicate () #7 0x080aa18c in Rf_duplicate () #8 0x080b7b28 in R_execMethod () #9 0x080b8a0f in do_function () #10 0x080b8bf9 in do_function () #11 0x080b70b7 in Rf_eval () #12 0x080b87a5 in do_begin () #13 0x080b70b7 in Rf_eval () #14 0x080b80b1 in do_for () #15 0x080b70b7 in Rf_eval () #16 0x080b87a5 in do_begin () #17 0x080b70b7 in Rf_eval () #18 0x080b70b7 in Rf_eval () #19 0x080b87a5 in do_begin () #20 0x080b70b7 in Rf_eval () #21 0x080b73c3 in Rf_applyClosure () #22 0x080e03b4 in do_internal () #23 0x080e0b37 in Rf_usemethod () #24 0x080b9f34 i...
2003 Apr 21
0
sweave provoked segfault (PR#2809)
...9b778, rho=0x8f37ed4) at eval.c:418 #25 0x080a3b28 in Rf_eval (e=0x879b970, rho=0x8f37ed4) at eval.c:418 #26 0x080a4f62 in do_begin (call=0x879b98c, op=0x81fba7c, args=0x879b9e0, rho=0x8f37ed4) at eval.c:1072 #27 0x080a3b28 in Rf_eval (e=0x879b98c, rho=0x8f37ed4) at eval.c:418 #28 0x080a495c in do_for (call=0x879ba6c, op=0x81f5f80, args=0x879ba50, rho=0x8f37ed4) at eval.c:968 #29 0x080a3b28 in Rf_eval (e=0x879ba6c, rho=0x8f37ed4) at eval.c:418 #30 0x080a4f62 in do_begin (call=0x87a8554, op=0x81fba7c, args=0x879baa4, rho=0x8f37ed4) at eval.c:1072 #31 0x080a3b28 in Rf_eval (e=0x87a8554, rh...
2009 Oct 13
1
for loop over S4
...ass("track", representation(x="numeric", y="numeric")) [1] "track" > o <- new( "track", x = 1, y = 2 ) > for( i in o ){ + cat( "hello\n") + } Error: invalid type/length (S4/1) in vector allocation This happens at those lines of do_for: n = LENGTH(val); PROTECT_WITH_INDEX(v = allocVector(TYPEOF(val), 1), &vpi); because allocVector( S4SXP, 1) does not make sense. What about detecting S4SXP and attempt to call as.list, similarly to what lapply does ? > as.list.track <- function(x, ...){ list( x = x at x, y = x a...
2012 Feb 03
2
Hanging -- please help decipher event report
...19 main + 844 (in R) [0x100001dec] 19 -[REngine runREPL] + 102 (in R) [0x100010f86] 19 run_REngineRmainloop + 192 (in R) [0x1000194a0] 19 R_ReplDLLdo1 + 462 (in libR.dylib) [0x10016ce4e] 19 Rf_eval + 1196 (in libR.dylib) [0x10013ca1c] 19 do_for + 678 (in libR.dylib) [0x100140f66] 19 Rf_eval + 1196 (in libR.dylib) [0x10013ca1c] 19 do_begin + 308 (in libR.dylib) [0x100141724] 19 Rf_eval + 1196 (in libR.dylib) [0x10013ca1c] 19 Rf_eval + 1196 (in libR.dylib) [...
2002 Nov 11
2
R 1.6.1: help with debugging error in RunGenCollect(), R_gc_internal
...=0x8346e90) at eval.c:404 #9 0x080a12e6 in do_begin (call=0x89f94f0, op=0x8218514, args=0x89f950c, rho=0x8346e90) at eval.c:891 #10 0x080a01e1 in Rf_eval (e=0x89f94f0, rho=0x8346e90) at eval.c:404 [... The whole backtrace in this case goes to #64 frames, with many calls to Rf_eval, do_begin, do_for, cut here for space...] #59 0x080a03d5 in Rf_eval (e=0x8ba4b6c, rho=0x8228498) at eval.c:439 #60 0x080b8b56 in Rf_ReplIteration (rho=0x8228498, savestack=0, browselevel=0, state=0xbfffefe0) at main.c:232 #61 0x080b8c95 in R_ReplConsole (rho=0x8228498, savestack=0, browselevel=0) at main.c...
2009 Mar 03
1
profiler and loops
...Outfile, "\"%s\" ", TYPEOF(fun) == SYMSXP ? CHAR(PRINTNAME(fun)) : "<Anonymous>"); } } so we can see it only cares about context CTXT_FUNCTION and CTXT_BUILTIN, when for loops play with CTXT_LOOP (this is again in eval.c within the do_for function) begincontext(&cntxt, CTXT_LOOP, R_NilValue, rho, R_BaseEnv, R_NilValue, R_NilValue); which as the name implies, begins the context of the for loop. The begincontext function looks like this : void begincontext(RCNTXT * cptr, int flags, SEXP syscall, SEXP env, SEX...
2003 Apr 22
3
zip.unpack() crashes R (PR#2818)
...do_internal # 0052A3C8 R.dll:0052A3C8 Rf_eval # 0052A6B5 R.dll:0052A6B5 Rf_applyClosure # 0052A1D7 R.dll:0052A1D7 Rf_eval # 0052C2D5 R.dll:0052C2D5 do_set # 0052A3C8 R.dll:0052A3C8 Rf_eval # 0052BA52 R.dll:0052BA52 do_begin # 0052A3C8 R.dll:0052A3C8 Rf_eval # 0052B427 R.dll:0052B427 do_for # 0052A3C8 R.dll:0052A3C8 Rf_eval # 0052BA52 R.dll:0052BA52 do_begin # 0052A3C8 R.dll:0052A3C8 Rf_eval # 0052A6B5 R.dll:0052A6B5 Rf_applyClosure # 0052A1D7 R.dll:0052A1D7 Rf_eval # 0054996E R.dll:0054996E Rf_ReplIteration # 00549F72 R.dll:00549F72 Rf_ReplIteration # 0054AA76 R.dll:00...
2009 Sep 03
1
Running an expression 1MN times using embedded R
...9 #3 0x00002b499ca1de4d in Rf_eval (e=0x4cd1010, rho=0x488ca48) at eval.c:480 #4 0x00002b499ca1ea82 in do_begin (call=0x4cd1048, op=0x486a830, args=0x4cd1080, rho=0x488ca48) at eval.c:1174 #5 0x00002b499ca1dda6 in Rf_eval (e=0x4cd1048, rho=0x488ca48) at eval.c:461 #6 0x00002b499ca21720 in do_for (call=0x4cd1160, op=0x4868540, args=0x4cd1128, rho=0x488ca48) at eval.c:1073 #7 0x00002b499ca1dda6 in Rf_eval (e=0x4cd1160, rho=0x488ca48) at eval.c:461 #8 0x00002b499ca1ea82 in do_begin (call=0x4cd1198, op=0x486a830, args=0x4cd11d0, rho=0x488ca48) at eval.c:1174 #9 0x00002b499ca1dda6 in R...
2000 Dec 18
1
1.2.0 segfault
...x1c6304, args=0x9d1a10, rho=0x2d36ec) at eval.c:1041 #37 0x5a114 in Rf_eval (e=0x9d19f4, rho=0x2d36ec) at eval.c:317 #38 0x5b300 in do_begin (call=0x9d1644, op=0x1c6294, args=0x9d19d8, rho=0x2d36ec) at eval.c:803 #39 0x5a114 in Rf_eval (e=0x9d1644, rho=0x2d36ec) at eval.c:317 #40 0x5ae3c in do_for (call=0x9d194c, op=0x1b4cc4, args=0x9d1968, rho=0x2d36ec) at eval.c:678 #41 0x5a114 in Rf_eval (e=0x9d194c, rho=0x2d36ec) at eval.c:317 #42 0x5b300 in do_begin (call=0x9d1820, op=0x1c6294, args=0x9d1930, rho=0x2d36ec) at eval.c:803 #43 0x5a114 in Rf_eval (e=0x9d1820, rho=0x2d36ec) at eval.c...
2008 Sep 27
1
seg.fault from nlme::gnls() {was "[R-sig-ME] GNLS Crash"}
.../../R/src/main/eval.c:461 #13 0x00000000005780c7 in applydefine (call=0x1a81d748, op=0x1a3617a8, args=0x6, rho=0xffffffffffffffff) at ../../../R/src/main/eval.c:1318 #14 0x0000000000575a42 in Rf_eval (e=0x1a81d748, rho=0x1b690298) at ../../../R/src/main/eval.c:461 #15 0x00000000005775de in do_for (call=0x1a81d668, op=0x1a360180, args=0x1a81d6a0, rho=0x1b690298) at ../../../R/src/main/eval.c:1073 ..... and more (downto #155 for R's main(...) This is a bug, probably in the C code of package nlme which I guess corrupts memory somehere earlier, and we are seeing the effect only late...
2012 Feb 21
0
Help with debugging message
...0x4CDBEB6: do_set (eval.c:1724) ==5420== by 0x4CD940D: Rf_eval (eval.c:469) ==5420== by 0x4CDB91B: applydefine (eval.c:1680) ==5420== by 0x4CD940D: Rf_eval (eval.c:469) ==5420== by 0x4CDAC21: do_begin (eval.c:1420) ==5420== by 0x4CD940D: Rf_eval (eval.c:469) ==5420== by 0x4CDCA27: do_for (eval.c:1294) ==5420== ==5420== HEAP SUMMARY: ==5420== in use at exit: 16,030,517,919 bytes in 13,235 blocks ==5420== total heap usage: 32,358 allocs, 19,123 frees, 16,057,325,344 bytes al This error appears to be repeatable. Terry T
1997 Nov 07
0
R-alpha: "invisible" : R_INVISIBLE .. -- repeat{} gives BOMB
On 06-Nov-97 maechler@stat.math.ethz.ch wrote: >I investigated some more: > R_VISIBLE is set to 0 ``R_Visible = 0;'' > also in other places in eval.c : > > line C function > > 344: do_if > 436: do_for > 480: do_while > 515: do_repeat > 720: \ > 727: > do_set > 738: / > ^^^ >(line numbers from current 0.60) > >In my opinion, only the three cases in do_set ("<-" things) should have >the invisibility flag... In S-PLUS, for, while an...
2003 Apr 16
0
vignette segfault bt
..., rho=0x8e5d4d0) at eval.c:1283 #36 0x080a3b28 in Rf_eval (e=0x8721088, rho=0x8e5d4d0) at eval.c:418 #37 0x080a4f62 in do_begin (call=0x87210a4, op=0x81fba9c, args=0x87210c0, rho=0x8e5d4d0) at eval.c:1072 #38 0x080a3b28 in Rf_eval (e=0x87210a4, rho=0x8e5d4d0) at eval.c:418 #39 0x080a495c in do_for (call=0x872089c, op=0x81f5fa0, args=0x8720810, rho=0x8e5d4d0) at eval.c:968 #40 0x080a3b28 in Rf_eval (e=0x872089c, rho=0x8e5d4d0) at eval.c:418 #41 0x080a4f62 in do_begin (call=0x8720d40, op=0x81fba9c, args=0x87208b8, rho=0x8e5d4d0) at eval.c:1072 #42 0x080a3b28 in Rf_eval (e=0x8720d40, rh...
2010 Aug 25
0
Correction to section 1.1.2 of R Internals doc, on NAMED
...nt NAMED when a variable ceases to refer to a value. So the end result is that a copy needs to be made when changing a variable whose value has NAMED of 2, since it's possible that some other variable references the same value. There seems to be some confusion in the R source on this. In the do_for procedure, the value for the for loop variable is set up with NAMED being 0, though according to my explanation above, it ought to be set up with NAMED of 1. A bug is avoided here only because the procedures for getting values from variables check if NAMED is 0, and if so fix it up to being 1, whi...
2003 Mar 18
0
all.rda again
...eval.c:418) #17 0x00057614 in Rf_applyClosure (eval.c:609) #18 0x00057200 in Rf_eval (eval.c:453) #19 0x00058bcc in applydefine (eval.c:1178) #20 0x00056fcc in Rf_eval (eval.c:418) #21 0x00058810 in do_begin (eval.c:1055) #22 0x00056fcc in Rf_eval (eval.c:418) #23 0x0005832c in do_for (eval.c:950) #24 0x00056fcc in Rf_eval (eval.c:418) #25 0x00058810 in do_begin (eval.c:1055) #26 0x00056fcc in Rf_eval (eval.c:418) #27 0x00057614 in Rf_applyClosure (eval.c:609) #28 0x00057200 in Rf_eval (eval.c:453) #29 0x00058f40 in do_set (eval.c:1281) #30 0x00056fcc in Rf_...
2003 Apr 22
0
zip.unpack() crashes R (PR#2820)
...do_internal # 0052A3C8 R.dll:0052A3C8 Rf_eval # 0052A6B5 R.dll:0052A6B5 Rf_applyClosure # 0052A1D7 R.dll:0052A1D7 Rf_eval # 0052C2D5 R.dll:0052C2D5 do_set # 0052A3C8 R.dll:0052A3C8 Rf_eval # 0052BA52 R.dll:0052BA52 do_begin # 0052A3C8 R.dll:0052A3C8 Rf_eval # 0052B427 R.dll:0052B427 do_for # 0052A3C8 R.dll:0052A3C8 Rf_eval # 0052BA52 R.dll:0052BA52 do_begin # 0052A3C8 R.dll:0052A3C8 Rf_eval # 0052A6B5 R.dll:0052A6B5 Rf_applyClosure # 0052A1D7 R.dll:0052A1D7 Rf_eval # 0054996E R.dll:0054996E Rf_ReplIteration # 00549F72 R.dll:00549F72 Rf_ReplIteration # 0054AA76 R.dll:00...