From |uc@r @end|ng |rom |edor@project@org  Wed Feb 27 10:43:10 2019
From: |uc@r @end|ng |rom |edor@project@org (=?UTF-8?Q?I=C3=B1aki_Ucar?=)
Date: Wed, 27 Feb 2019 10:43:10 +0100
Subject: [Rd] Intermittent crashes with inset `[<-` command
In-Reply-To: <deca7295-aaa9-59fd-30e1-c7361a7d254e@insa-toulouse.fr>
References: <1345861204.5109355.1551154699341.ref@mail.yahoo.com>
 <1345861204.5109355.1551154699341@mail.yahoo.com>
 <deca7295-aaa9-59fd-30e1-c7361a7d254e@insa-toulouse.fr>
Message-ID: <CALEXWq1ZcfuK0TswrhpZeZiXeFKb2oqQYzuPnj3GdQ2cTm04Tw@mail.gmail.com>

On Wed, 27 Feb 2019 at 09:51, Serguei Sokol <sokol at insa-toulouse.fr> wrote:
>
> On 26/02/2019 05:18, Brian Montgomery via R-devel wrote:
> > 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.
> It crashes too on my Mageia6 (RPM based Linux distribution):
>   184 185 186 187
>   *** caught segfault ***
> address 0x700000002, cause 'memory not mapped'

I can reproduce it too. This is the output from valgrind (sessionInfo below):

==3296== Invalid read of size 1
==3296==    at 0x4A2D7F7: UnknownInlinedFun (Rinlinedfuns.h:542)
==3296==    by 0x4A2D7F7: VectorAssign (subassign.c:658)
==3296==    by 0x4A30540: do_subassign_dflt (subassign.c:1641)
==3296==    by 0x4A338F2: do_subassign (subassign.c:1571)
==3296==    by 0x49769A1: bcEval (eval.c:6795)
==3296==    by 0x498B415: R_compileAndExecute (eval.c:1407)
==3296==    by 0x498B985: do_for (eval.c:2185)
==3296==    by 0x49848A8: Rf_eval (eval.c:691)
==3296==    by 0x49B5131: Rf_ReplIteration (main.c:258)
==3296==    by 0x49B5131: Rf_ReplIteration (main.c:198)
==3296==    by 0x49B54F0: R_ReplConsole (main.c:308)
==3296==    by 0x49B55AF: run_Rmainloop (main.c:1082)
==3296==    by 0x1090AE: main (Rmain.c:29)
==3296==  Address 0x1dafab90 is 0 bytes inside a block of size 160,048 free'd
==3296==    at 0x4839A0C: free (vg_replace_malloc.c:540)
==3296==    by 0x49BCA56: ReleaseLargeFreeVectors (memory.c:1055)
==3296==    by 0x49BCA56: RunGenCollect (memory.c:1825)
==3296==    by 0x49BCA56: R_gc_internal (memory.c:2998)
==3296==    by 0x49BCA56: R_gc_internal (memory.c:2964)
==3296==    by 0x49BFB2C: Rf_allocVector3 (memory.c:2682)
==3296==    by 0x49C09FC: UnknownInlinedFun (Rinlinedfuns.h:577)
==3296==    by 0x49C09FC: R_alloc (memory.c:2197)
==3296==    by 0x4A377F5: logicalSubscript (subscript.c:575)
==3296==    by 0x4A377F5: logicalSubscript (subscript.c:503)
==3296==    by 0x4A3A8D3: Rf_makeSubscript (subscript.c:994)
==3296==    by 0x4A2D63D: VectorAssign (subassign.c:656)
==3296==    by 0x4A30540: do_subassign_dflt (subassign.c:1641)
==3296==    by 0x4A338F2: do_subassign (subassign.c:1571)
==3296==    by 0x49769A1: bcEval (eval.c:6795)
==3296==    by 0x498B415: R_compileAndExecute (eval.c:1407)
==3296==    by 0x498B985: do_for (eval.c:2185)
==3296==  Block was alloc'd at
==3296==    at 0x483880B: malloc (vg_replace_malloc.c:309)
==3296==    by 0x49C0031: Rf_allocVector3 (memory.c:2713)
==3296==    by 0x4A3B041: UnknownInlinedFun (Rinlinedfuns.h:577)
==3296==    by 0x4A3B041: Rf_ExtractSubset (subset.c:115)
==3296==    by 0x4A3DA8A: VectorSubset (subset.c:198)
==3296==    by 0x4A3DA8A: do_subset_dflt (subset.c:823)
==3296==    by 0x4A3FCAA: do_subset (subset.c:661)
==3296==    by 0x49848A8: Rf_eval (eval.c:691)
==3296==    by 0x4989600: Rf_evalListKeepMissing (eval.c:2955)
==3296==    by 0x4A3390B: R_DispatchOrEvalSP (subassign.c:1535)
==3296==    by 0x4A3390B: do_subassign (subassign.c:1567)
==3296==    by 0x49769A1: bcEval (eval.c:6795)
==3296==    by 0x498B415: R_compileAndExecute (eval.c:1407)
==3296==    by 0x498B985: do_for (eval.c:2185)
==3296==    by 0x49848A8: Rf_eval (eval.c:691)
==3296==
==3296== Invalid read of size 1
==3296==    at 0x4A2E2C0: UnknownInlinedFun (Rinlinedfuns.h:189)
==3296==    by 0x4A2E2C0: UnknownInlinedFun (Rinlinedfuns.h:554)
==3296==    by 0x4A2E2C0: VectorAssign (subassign.c:658)
==3296==    by 0x4A30540: do_subassign_dflt (subassign.c:1641)
==3296==    by 0x4A338F2: do_subassign (subassign.c:1571)
==3296==    by 0x49769A1: bcEval (eval.c:6795)
==3296==    by 0x498B415: R_compileAndExecute (eval.c:1407)
==3296==    by 0x498B985: do_for (eval.c:2185)
==3296==    by 0x49848A8: Rf_eval (eval.c:691)
==3296==    by 0x49B5131: Rf_ReplIteration (main.c:258)
==3296==    by 0x49B5131: Rf_ReplIteration (main.c:198)
==3296==    by 0x49B54F0: R_ReplConsole (main.c:308)
==3296==    by 0x49B55AF: run_Rmainloop (main.c:1082)
==3296==    by 0x1090AE: main (Rmain.c:29)
==3296==  Address 0x1dafab90 is 0 bytes inside a block of size 160,048 free'd
==3296==    at 0x4839A0C: free (vg_replace_malloc.c:540)
==3296==    by 0x49BCA56: ReleaseLargeFreeVectors (memory.c:1055)
==3296==    by 0x49BCA56: RunGenCollect (memory.c:1825)
==3296==    by 0x49BCA56: R_gc_internal (memory.c:2998)
==3296==    by 0x49BCA56: R_gc_internal (memory.c:2964)
==3296==    by 0x49BFB2C: Rf_allocVector3 (memory.c:2682)
==3296==    by 0x49C09FC: UnknownInlinedFun (Rinlinedfuns.h:577)
==3296==    by 0x49C09FC: R_alloc (memory.c:2197)
==3296==    by 0x4A377F5: logicalSubscript (subscript.c:575)
==3296==    by 0x4A377F5: logicalSubscript (subscript.c:503)
==3296==    by 0x4A3A8D3: Rf_makeSubscript (subscript.c:994)
==3296==    by 0x4A2D63D: VectorAssign (subassign.c:656)
==3296==    by 0x4A30540: do_subassign_dflt (subassign.c:1641)
==3296==    by 0x4A338F2: do_subassign (subassign.c:1571)
==3296==    by 0x49769A1: bcEval (eval.c:6795)
==3296==    by 0x498B415: R_compileAndExecute (eval.c:1407)
==3296==    by 0x498B985: do_for (eval.c:2185)
==3296==  Block was alloc'd at
==3296==    at 0x483880B: malloc (vg_replace_malloc.c:309)
==3296==    by 0x49C0031: Rf_allocVector3 (memory.c:2713)
==3296==    by 0x4A3B041: UnknownInlinedFun (Rinlinedfuns.h:577)
==3296==    by 0x4A3B041: Rf_ExtractSubset (subset.c:115)
==3296==    by 0x4A3DA8A: VectorSubset (subset.c:198)
==3296==    by 0x4A3DA8A: do_subset_dflt (subset.c:823)
==3296==    by 0x4A3FCAA: do_subset (subset.c:661)
==3296==    by 0x49848A8: Rf_eval (eval.c:691)
==3296==    by 0x4989600: Rf_evalListKeepMissing (eval.c:2955)
==3296==    by 0x4A3390B: R_DispatchOrEvalSP (subassign.c:1535)
==3296==    by 0x4A3390B: do_subassign (subassign.c:1567)
==3296==    by 0x49769A1: bcEval (eval.c:6795)
==3296==    by 0x498B415: R_compileAndExecute (eval.c:1407)
==3296==    by 0x498B985: do_for (eval.c:2185)
==3296==    by 0x49848A8: Rf_eval (eval.c:691)
==3296==
==3296== Invalid read of size 8
==3296==    at 0x4A2E2C9: UnknownInlinedFun (Rinlinedfuns.h:189)
==3296==    by 0x4A2E2C9: UnknownInlinedFun (Rinlinedfuns.h:554)
==3296==    by 0x4A2E2C9: VectorAssign (subassign.c:658)
==3296==    by 0x4A30540: do_subassign_dflt (subassign.c:1641)
==3296==    by 0x4A338F2: do_subassign (subassign.c:1571)
==3296==    by 0x49769A1: bcEval (eval.c:6795)
==3296==    by 0x498B415: R_compileAndExecute (eval.c:1407)
==3296==    by 0x498B985: do_for (eval.c:2185)
==3296==    by 0x49848A8: Rf_eval (eval.c:691)
==3296==    by 0x49B5131: Rf_ReplIteration (main.c:258)
==3296==    by 0x49B5131: Rf_ReplIteration (main.c:198)
==3296==    by 0x49B54F0: R_ReplConsole (main.c:308)
==3296==    by 0x49B55AF: run_Rmainloop (main.c:1082)
==3296==    by 0x1090AE: main (Rmain.c:29)
==3296==  Address 0x1dafabb0 is 32 bytes inside a block of size 160,048 free'd
==3296==    at 0x4839A0C: free (vg_replace_malloc.c:540)
==3296==    by 0x49BCA56: ReleaseLargeFreeVectors (memory.c:1055)
==3296==    by 0x49BCA56: RunGenCollect (memory.c:1825)
==3296==    by 0x49BCA56: R_gc_internal (memory.c:2998)
==3296==    by 0x49BCA56: R_gc_internal (memory.c:2964)
==3296==    by 0x49BFB2C: Rf_allocVector3 (memory.c:2682)
==3296==    by 0x49C09FC: UnknownInlinedFun (Rinlinedfuns.h:577)
==3296==    by 0x49C09FC: R_alloc (memory.c:2197)
==3296==    by 0x4A377F5: logicalSubscript (subscript.c:575)
==3296==    by 0x4A377F5: logicalSubscript (subscript.c:503)
==3296==    by 0x4A3A8D3: Rf_makeSubscript (subscript.c:994)
==3296==    by 0x4A2D63D: VectorAssign (subassign.c:656)
==3296==    by 0x4A30540: do_subassign_dflt (subassign.c:1641)
==3296==    by 0x4A338F2: do_subassign (subassign.c:1571)
==3296==    by 0x49769A1: bcEval (eval.c:6795)
==3296==    by 0x498B415: R_compileAndExecute (eval.c:1407)
==3296==    by 0x498B985: do_for (eval.c:2185)
==3296==  Block was alloc'd at
==3296==    at 0x483880B: malloc (vg_replace_malloc.c:309)
==3296==    by 0x49C0031: Rf_allocVector3 (memory.c:2713)
==3296==    by 0x4A3B041: UnknownInlinedFun (Rinlinedfuns.h:577)
==3296==    by 0x4A3B041: Rf_ExtractSubset (subset.c:115)
==3296==    by 0x4A3DA8A: VectorSubset (subset.c:198)
==3296==    by 0x4A3DA8A: do_subset_dflt (subset.c:823)
==3296==    by 0x4A3FCAA: do_subset (subset.c:661)
==3296==    by 0x49848A8: Rf_eval (eval.c:691)
==3296==    by 0x4989600: Rf_evalListKeepMissing (eval.c:2955)
==3296==    by 0x4A3390B: R_DispatchOrEvalSP (subassign.c:1535)
==3296==    by 0x4A3390B: do_subassign (subassign.c:1567)
==3296==    by 0x49769A1: bcEval (eval.c:6795)
==3296==    by 0x498B415: R_compileAndExecute (eval.c:1407)
==3296==    by 0x498B985: do_for (eval.c:2185)
==3296==    by 0x49848A8: Rf_eval (eval.c:691)
==3296==
==3296== Invalid read of size 1
==3296==    at 0x4A2CCC0: SubassignTypeFix (subassign.c:318)
==3296==    by 0x4A2D8F8: VectorAssign (subassign.c:666)
==3296==    by 0x4A30540: do_subassign_dflt (subassign.c:1641)
==3296==    by 0x4A338F2: do_subassign (subassign.c:1571)
==3296==    by 0x49769A1: bcEval (eval.c:6795)
==3296==    by 0x498B415: R_compileAndExecute (eval.c:1407)
==3296==    by 0x498B985: do_for (eval.c:2185)
==3296==    by 0x49848A8: Rf_eval (eval.c:691)
==3296==    by 0x49B5131: Rf_ReplIteration (main.c:258)
==3296==    by 0x49B5131: Rf_ReplIteration (main.c:198)
==3296==    by 0x49B54F0: R_ReplConsole (main.c:308)
==3296==    by 0x49B55AF: run_Rmainloop (main.c:1082)
==3296==    by 0x1090AE: main (Rmain.c:29)
==3296==  Address 0x1dafab90 is 0 bytes inside a block of size 160,048 free'd
==3296==    at 0x4839A0C: free (vg_replace_malloc.c:540)
==3296==    by 0x49BCA56: ReleaseLargeFreeVectors (memory.c:1055)
==3296==    by 0x49BCA56: RunGenCollect (memory.c:1825)
==3296==    by 0x49BCA56: R_gc_internal (memory.c:2998)
==3296==    by 0x49BCA56: R_gc_internal (memory.c:2964)
==3296==    by 0x49BFB2C: Rf_allocVector3 (memory.c:2682)
==3296==    by 0x49C09FC: UnknownInlinedFun (Rinlinedfuns.h:577)
==3296==    by 0x49C09FC: R_alloc (memory.c:2197)
==3296==    by 0x4A377F5: logicalSubscript (subscript.c:575)
==3296==    by 0x4A377F5: logicalSubscript (subscript.c:503)
==3296==    by 0x4A3A8D3: Rf_makeSubscript (subscript.c:994)
==3296==    by 0x4A2D63D: VectorAssign (subassign.c:656)
==3296==    by 0x4A30540: do_subassign_dflt (subassign.c:1641)
==3296==    by 0x4A338F2: do_subassign (subassign.c:1571)
==3296==    by 0x49769A1: bcEval (eval.c:6795)
==3296==    by 0x498B415: R_compileAndExecute (eval.c:1407)
==3296==    by 0x498B985: do_for (eval.c:2185)
==3296==  Block was alloc'd at
==3296==    at 0x483880B: malloc (vg_replace_malloc.c:309)
==3296==    by 0x49C0031: Rf_allocVector3 (memory.c:2713)
==3296==    by 0x4A3B041: UnknownInlinedFun (Rinlinedfuns.h:577)
==3296==    by 0x4A3B041: Rf_ExtractSubset (subset.c:115)
==3296==    by 0x4A3DA8A: VectorSubset (subset.c:198)
==3296==    by 0x4A3DA8A: do_subset_dflt (subset.c:823)
==3296==    by 0x4A3FCAA: do_subset (subset.c:661)
==3296==    by 0x49848A8: Rf_eval (eval.c:691)
==3296==    by 0x4989600: Rf_evalListKeepMissing (eval.c:2955)
==3296==    by 0x4A3390B: R_DispatchOrEvalSP (subassign.c:1535)
==3296==    by 0x4A3390B: do_subassign (subassign.c:1567)
==3296==    by 0x49769A1: bcEval (eval.c:6795)
==3296==    by 0x498B415: R_compileAndExecute (eval.c:1407)
==3296==    by 0x498B985: do_for (eval.c:2185)
==3296==    by 0x49848A8: Rf_eval (eval.c:691)
==3296==
==3296== Invalid read of size 1
==3296==    at 0x4A2D858: UnknownInlinedFun (Rinlinedfuns.h:542)
==3296==    by 0x4A2D858: VectorAssign (subassign.c:672)
==3296==    by 0x4A30540: do_subassign_dflt (subassign.c:1641)
==3296==    by 0x4A338F2: do_subassign (subassign.c:1571)
==3296==    by 0x49769A1: bcEval (eval.c:6795)
==3296==    by 0x498B415: R_compileAndExecute (eval.c:1407)
==3296==    by 0x498B985: do_for (eval.c:2185)
==3296==    by 0x49848A8: Rf_eval (eval.c:691)
==3296==    by 0x49B5131: Rf_ReplIteration (main.c:258)
==3296==    by 0x49B5131: Rf_ReplIteration (main.c:198)
==3296==    by 0x49B54F0: R_ReplConsole (main.c:308)
==3296==    by 0x49B55AF: run_Rmainloop (main.c:1082)
==3296==    by 0x1090AE: main (Rmain.c:29)
==3296==  Address 0x1dafab90 is 0 bytes inside a block of size 160,048 free'd
==3296==    at 0x4839A0C: free (vg_replace_malloc.c:540)
==3296==    by 0x49BCA56: ReleaseLargeFreeVectors (memory.c:1055)
==3296==    by 0x49BCA56: RunGenCollect (memory.c:1825)
==3296==    by 0x49BCA56: R_gc_internal (memory.c:2998)
==3296==    by 0x49BCA56: R_gc_internal (memory.c:2964)
==3296==    by 0x49BFB2C: Rf_allocVector3 (memory.c:2682)
==3296==    by 0x49C09FC: UnknownInlinedFun (Rinlinedfuns.h:577)
==3296==    by 0x49C09FC: R_alloc (memory.c:2197)
==3296==    by 0x4A377F5: logicalSubscript (subscript.c:575)
==3296==    by 0x4A377F5: logicalSubscript (subscript.c:503)
==3296==    by 0x4A3A8D3: Rf_makeSubscript (subscript.c:994)
==3296==    by 0x4A2D63D: VectorAssign (subassign.c:656)
==3296==    by 0x4A30540: do_subassign_dflt (subassign.c:1641)
==3296==    by 0x4A338F2: do_subassign (subassign.c:1571)
==3296==    by 0x49769A1: bcEval (eval.c:6795)
==3296==    by 0x498B415: R_compileAndExecute (eval.c:1407)
==3296==    by 0x498B985: do_for (eval.c:2185)
==3296==  Block was alloc'd at
==3296==    at 0x483880B: malloc (vg_replace_malloc.c:309)
==3296==    by 0x49C0031: Rf_allocVector3 (memory.c:2713)
==3296==    by 0x4A3B041: UnknownInlinedFun (Rinlinedfuns.h:577)
==3296==    by 0x4A3B041: Rf_ExtractSubset (subset.c:115)
==3296==    by 0x4A3DA8A: VectorSubset (subset.c:198)
==3296==    by 0x4A3DA8A: do_subset_dflt (subset.c:823)
==3296==    by 0x4A3FCAA: do_subset (subset.c:661)
==3296==    by 0x49848A8: Rf_eval (eval.c:691)
==3296==    by 0x4989600: Rf_evalListKeepMissing (eval.c:2955)
==3296==    by 0x4A3390B: R_DispatchOrEvalSP (subassign.c:1535)
==3296==    by 0x4A3390B: do_subassign (subassign.c:1567)
==3296==    by 0x49769A1: bcEval (eval.c:6795)
==3296==    by 0x498B415: R_compileAndExecute (eval.c:1407)
==3296==    by 0x498B985: do_for (eval.c:2185)
==3296==    by 0x49848A8: Rf_eval (eval.c:691)
==3296==
==3296== Invalid read of size 1
==3296==    at 0x4A2DBA0: UnknownInlinedFun (Rinlinedfuns.h:189)
==3296==    by 0x4A2DBA0: UnknownInlinedFun (Rinlinedfuns.h:554)
==3296==    by 0x4A2DBA0: VectorAssign (subassign.c:672)
==3296==    by 0x4A30540: do_subassign_dflt (subassign.c:1641)
==3296==    by 0x4A338F2: do_subassign (subassign.c:1571)
==3296==    by 0x49769A1: bcEval (eval.c:6795)
==3296==    by 0x498B415: R_compileAndExecute (eval.c:1407)
==3296==    by 0x498B985: do_for (eval.c:2185)
==3296==    by 0x49848A8: Rf_eval (eval.c:691)
==3296==    by 0x49B5131: Rf_ReplIteration (main.c:258)
==3296==    by 0x49B5131: Rf_ReplIteration (main.c:198)
==3296==    by 0x49B54F0: R_ReplConsole (main.c:308)
==3296==    by 0x49B55AF: run_Rmainloop (main.c:1082)
==3296==    by 0x1090AE: main (Rmain.c:29)
==3296==  Address 0x1dafab90 is 0 bytes inside a block of size 160,048 free'd
==3296==    at 0x4839A0C: free (vg_replace_malloc.c:540)
==3296==    by 0x49BCA56: ReleaseLargeFreeVectors (memory.c:1055)
==3296==    by 0x49BCA56: RunGenCollect (memory.c:1825)
==3296==    by 0x49BCA56: R_gc_internal (memory.c:2998)
==3296==    by 0x49BCA56: R_gc_internal (memory.c:2964)
==3296==    by 0x49BFB2C: Rf_allocVector3 (memory.c:2682)
==3296==    by 0x49C09FC: UnknownInlinedFun (Rinlinedfuns.h:577)
==3296==    by 0x49C09FC: R_alloc (memory.c:2197)
==3296==    by 0x4A377F5: logicalSubscript (subscript.c:575)
==3296==    by 0x4A377F5: logicalSubscript (subscript.c:503)
==3296==    by 0x4A3A8D3: Rf_makeSubscript (subscript.c:994)
==3296==    by 0x4A2D63D: VectorAssign (subassign.c:656)
==3296==    by 0x4A30540: do_subassign_dflt (subassign.c:1641)
==3296==    by 0x4A338F2: do_subassign (subassign.c:1571)
==3296==    by 0x49769A1: bcEval (eval.c:6795)
==3296==    by 0x498B415: R_compileAndExecute (eval.c:1407)
==3296==    by 0x498B985: do_for (eval.c:2185)
==3296==  Block was alloc'd at
==3296==    at 0x483880B: malloc (vg_replace_malloc.c:309)
==3296==    by 0x49C0031: Rf_allocVector3 (memory.c:2713)
==3296==    by 0x4A3B041: UnknownInlinedFun (Rinlinedfuns.h:577)
==3296==    by 0x4A3B041: Rf_ExtractSubset (subset.c:115)
==3296==    by 0x4A3DA8A: VectorSubset (subset.c:198)
==3296==    by 0x4A3DA8A: do_subset_dflt (subset.c:823)
==3296==    by 0x4A3FCAA: do_subset (subset.c:661)
==3296==    by 0x49848A8: Rf_eval (eval.c:691)
==3296==    by 0x4989600: Rf_evalListKeepMissing (eval.c:2955)
==3296==    by 0x4A3390B: R_DispatchOrEvalSP (subassign.c:1535)
==3296==    by 0x4A3390B: do_subassign (subassign.c:1567)
==3296==    by 0x49769A1: bcEval (eval.c:6795)
==3296==    by 0x498B415: R_compileAndExecute (eval.c:1407)
==3296==    by 0x498B985: do_for (eval.c:2185)
==3296==    by 0x49848A8: Rf_eval (eval.c:691)
==3296==
==3296== Invalid read of size 8
==3296==    at 0x4A2DBA9: UnknownInlinedFun (Rinlinedfuns.h:189)
==3296==    by 0x4A2DBA9: UnknownInlinedFun (Rinlinedfuns.h:554)
==3296==    by 0x4A2DBA9: VectorAssign (subassign.c:672)
==3296==    by 0x4A30540: do_subassign_dflt (subassign.c:1641)
==3296==    by 0x4A338F2: do_subassign (subassign.c:1571)
==3296==    by 0x49769A1: bcEval (eval.c:6795)
==3296==    by 0x498B415: R_compileAndExecute (eval.c:1407)
==3296==    by 0x498B985: do_for (eval.c:2185)
==3296==    by 0x49848A8: Rf_eval (eval.c:691)
==3296==    by 0x49B5131: Rf_ReplIteration (main.c:258)
==3296==    by 0x49B5131: Rf_ReplIteration (main.c:198)
==3296==    by 0x49B54F0: R_ReplConsole (main.c:308)
==3296==    by 0x49B55AF: run_Rmainloop (main.c:1082)
==3296==    by 0x1090AE: main (Rmain.c:29)
==3296==  Address 0x1dafabb0 is 32 bytes inside a block of size 160,048 free'd
==3296==    at 0x4839A0C: free (vg_replace_malloc.c:540)
==3296==    by 0x49BCA56: ReleaseLargeFreeVectors (memory.c:1055)
==3296==    by 0x49BCA56: RunGenCollect (memory.c:1825)
==3296==    by 0x49BCA56: R_gc_internal (memory.c:2998)
==3296==    by 0x49BCA56: R_gc_internal (memory.c:2964)
==3296==    by 0x49BFB2C: Rf_allocVector3 (memory.c:2682)
==3296==    by 0x49C09FC: UnknownInlinedFun (Rinlinedfuns.h:577)
==3296==    by 0x49C09FC: R_alloc (memory.c:2197)
==3296==    by 0x4A377F5: logicalSubscript (subscript.c:575)
==3296==    by 0x4A377F5: logicalSubscript (subscript.c:503)
==3296==    by 0x4A3A8D3: Rf_makeSubscript (subscript.c:994)
==3296==    by 0x4A2D63D: VectorAssign (subassign.c:656)
==3296==    by 0x4A30540: do_subassign_dflt (subassign.c:1641)
==3296==    by 0x4A338F2: do_subassign (subassign.c:1571)
==3296==    by 0x49769A1: bcEval (eval.c:6795)
==3296==    by 0x498B415: R_compileAndExecute (eval.c:1407)
==3296==    by 0x498B985: do_for (eval.c:2185)
==3296==  Block was alloc'd at
==3296==    at 0x483880B: malloc (vg_replace_malloc.c:309)
==3296==    by 0x49C0031: Rf_allocVector3 (memory.c:2713)
==3296==    by 0x4A3B041: UnknownInlinedFun (Rinlinedfuns.h:577)
==3296==    by 0x4A3B041: Rf_ExtractSubset (subset.c:115)
==3296==    by 0x4A3DA8A: VectorSubset (subset.c:198)
==3296==    by 0x4A3DA8A: do_subset_dflt (subset.c:823)
==3296==    by 0x4A3FCAA: do_subset (subset.c:661)
==3296==    by 0x49848A8: Rf_eval (eval.c:691)
==3296==    by 0x4989600: Rf_evalListKeepMissing (eval.c:2955)
==3296==    by 0x4A3390B: R_DispatchOrEvalSP (subassign.c:1535)
==3296==    by 0x4A3390B: do_subassign (subassign.c:1567)
==3296==    by 0x49769A1: bcEval (eval.c:6795)
==3296==    by 0x498B415: R_compileAndExecute (eval.c:1407)
==3296==    by 0x498B985: do_for (eval.c:2185)
==3296==    by 0x49848A8: Rf_eval (eval.c:691)
==3296==
==3296== Invalid read of size 1
==3296==    at 0x4A2F9C2: UnknownInlinedFun (Rinlinedfuns.h:381)
==3296==    by 0x4A2F9C2: VectorAssign (subassign.c:710)
==3296==    by 0x4A30540: do_subassign_dflt (subassign.c:1641)
==3296==    by 0x4A338F2: do_subassign (subassign.c:1571)
==3296==    by 0x49769A1: bcEval (eval.c:6795)
==3296==    by 0x498B415: R_compileAndExecute (eval.c:1407)
==3296==    by 0x498B985: do_for (eval.c:2185)
==3296==    by 0x49848A8: Rf_eval (eval.c:691)
==3296==    by 0x49B5131: Rf_ReplIteration (main.c:258)
==3296==    by 0x49B5131: Rf_ReplIteration (main.c:198)
==3296==    by 0x49B54F0: R_ReplConsole (main.c:308)
==3296==    by 0x49B55AF: run_Rmainloop (main.c:1082)
==3296==    by 0x1090AE: main (Rmain.c:29)
==3296==  Address 0x1dafab90 is 0 bytes inside a block of size 160,048 free'd
==3296==    at 0x4839A0C: free (vg_replace_malloc.c:540)
==3296==    by 0x49BCA56: ReleaseLargeFreeVectors (memory.c:1055)
==3296==    by 0x49BCA56: RunGenCollect (memory.c:1825)
==3296==    by 0x49BCA56: R_gc_internal (memory.c:2998)
==3296==    by 0x49BCA56: R_gc_internal (memory.c:2964)
==3296==    by 0x49BFB2C: Rf_allocVector3 (memory.c:2682)
==3296==    by 0x49C09FC: UnknownInlinedFun (Rinlinedfuns.h:577)
==3296==    by 0x49C09FC: R_alloc (memory.c:2197)
==3296==    by 0x4A377F5: logicalSubscript (subscript.c:575)
==3296==    by 0x4A377F5: logicalSubscript (subscript.c:503)
==3296==    by 0x4A3A8D3: Rf_makeSubscript (subscript.c:994)
==3296==    by 0x4A2D63D: VectorAssign (subassign.c:656)
==3296==    by 0x4A30540: do_subassign_dflt (subassign.c:1641)
==3296==    by 0x4A338F2: do_subassign (subassign.c:1571)
==3296==    by 0x49769A1: bcEval (eval.c:6795)
==3296==    by 0x498B415: R_compileAndExecute (eval.c:1407)
==3296==    by 0x498B985: do_for (eval.c:2185)
==3296==  Block was alloc'd at
==3296==    at 0x483880B: malloc (vg_replace_malloc.c:309)
==3296==    by 0x49C0031: Rf_allocVector3 (memory.c:2713)
==3296==    by 0x4A3B041: UnknownInlinedFun (Rinlinedfuns.h:577)
==3296==    by 0x4A3B041: Rf_ExtractSubset (subset.c:115)
==3296==    by 0x4A3DA8A: VectorSubset (subset.c:198)
==3296==    by 0x4A3DA8A: do_subset_dflt (subset.c:823)
==3296==    by 0x4A3FCAA: do_subset (subset.c:661)
==3296==    by 0x49848A8: Rf_eval (eval.c:691)
==3296==    by 0x4989600: Rf_evalListKeepMissing (eval.c:2955)
==3296==    by 0x4A3390B: R_DispatchOrEvalSP (subassign.c:1535)
==3296==    by 0x4A3390B: do_subassign (subassign.c:1567)
==3296==    by 0x49769A1: bcEval (eval.c:6795)
==3296==    by 0x498B415: R_compileAndExecute (eval.c:1407)
==3296==    by 0x498B985: do_for (eval.c:2185)
==3296==    by 0x49848A8: Rf_eval (eval.c:691)
==3296==
==3296== Invalid read of size 4
==3296==    at 0x4A2F9C7: UnknownInlinedFun (Rinlinedfuns.h:381)
==3296==    by 0x4A2F9C7: VectorAssign (subassign.c:710)
==3296==    by 0x4A30540: do_subassign_dflt (subassign.c:1641)
==3296==    by 0x4A338F2: do_subassign (subassign.c:1571)
==3296==    by 0x49769A1: bcEval (eval.c:6795)
==3296==    by 0x498B415: R_compileAndExecute (eval.c:1407)
==3296==    by 0x498B985: do_for (eval.c:2185)
==3296==    by 0x49848A8: Rf_eval (eval.c:691)
==3296==    by 0x49B5131: Rf_ReplIteration (main.c:258)
==3296==    by 0x49B5131: Rf_ReplIteration (main.c:198)
==3296==    by 0x49B54F0: R_ReplConsole (main.c:308)
==3296==    by 0x49B55AF: run_Rmainloop (main.c:1082)
==3296==    by 0x1090AE: main (Rmain.c:29)
==3296==  Address 0x1dafabc0 is 48 bytes inside a block of size 160,048 free'd
==3296==    at 0x4839A0C: free (vg_replace_malloc.c:540)
==3296==    by 0x49BCA56: ReleaseLargeFreeVectors (memory.c:1055)
==3296==    by 0x49BCA56: RunGenCollect (memory.c:1825)
==3296==    by 0x49BCA56: R_gc_internal (memory.c:2998)
==3296==    by 0x49BCA56: R_gc_internal (memory.c:2964)
==3296==    by 0x49BFB2C: Rf_allocVector3 (memory.c:2682)
==3296==    by 0x49C09FC: UnknownInlinedFun (Rinlinedfuns.h:577)
==3296==    by 0x49C09FC: R_alloc (memory.c:2197)
==3296==    by 0x4A377F5: logicalSubscript (subscript.c:575)
==3296==    by 0x4A377F5: logicalSubscript (subscript.c:503)
==3296==    by 0x4A3A8D3: Rf_makeSubscript (subscript.c:994)
==3296==    by 0x4A2D63D: VectorAssign (subassign.c:656)
==3296==    by 0x4A30540: do_subassign_dflt (subassign.c:1641)
==3296==    by 0x4A338F2: do_subassign (subassign.c:1571)
==3296==    by 0x49769A1: bcEval (eval.c:6795)
==3296==    by 0x498B415: R_compileAndExecute (eval.c:1407)
==3296==    by 0x498B985: do_for (eval.c:2185)
==3296==  Block was alloc'd at
==3296==    at 0x483880B: malloc (vg_replace_malloc.c:309)
==3296==    by 0x49C0031: Rf_allocVector3 (memory.c:2713)
==3296==    by 0x4A3B041: UnknownInlinedFun (Rinlinedfuns.h:577)
==3296==    by 0x4A3B041: Rf_ExtractSubset (subset.c:115)
==3296==    by 0x4A3DA8A: VectorSubset (subset.c:198)
==3296==    by 0x4A3DA8A: do_subset_dflt (subset.c:823)
==3296==    by 0x4A3FCAA: do_subset (subset.c:661)
==3296==    by 0x49848A8: Rf_eval (eval.c:691)
==3296==    by 0x4989600: Rf_evalListKeepMissing (eval.c:2955)
==3296==    by 0x4A3390B: R_DispatchOrEvalSP (subassign.c:1535)
==3296==    by 0x4A3390B: do_subassign (subassign.c:1567)
==3296==    by 0x49769A1: bcEval (eval.c:6795)
==3296==    by 0x498B415: R_compileAndExecute (eval.c:1407)
==3296==    by 0x498B985: do_for (eval.c:2185)
==3296==    by 0x49848A8: Rf_eval (eval.c:691)

> sessionInfo()
R version 3.5.2 (2018-12-20)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: Fedora 29 (Twenty Nine)

Matrix products: default
BLAS/LAPACK: /usr/lib64/R/lib/libRblas.so

locale:
[1] LC_CTYPE=es_ES.UTF-8       LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8        LC_COLLATE=es_ES.UTF-8
[5] LC_MONETARY=es_ES.UTF-8    LC_MESSAGES=es_ES.UTF-8
[7] LC_PAPER=es_ES.UTF-8       LC_NAME=C
[9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=es_ES.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] compiler_3.5.2

--
I?aki



[Rd] Intermittent crashes with inset `[<-` command
=?UTF-8?Q?I=C3=B1aki_Ucar?=