[R-pkg-team] Bug#947004: S4Vectors Segmentation fault after r-base-core update (Was: Bug#947004: Tests segfaults (since the r-base-core update?))

Pages, Herve hpages at fredhutch.org
Thu Jan 9 23:26:48 GMT 2020


Taking a closer look at this it seems that the segfault occurs in the 
following test (S4Vectors/inst/unitTests/test_Rle-utils.R, line 121):

  line 118:  y <- (-20:20)^2
  line 119:  y[c(1,10,21,41)] <- c(100L, 30L, 400L, 470L)
  line 120: checkEqualsNumeric(smoothEnds(y), as.vector(smoothEnds(Rle(y))))
  line 121: checkEqualsNumeric(runmed(y, 7), as.vector(runmed(Rle(y), 7)))

Based on the traceback the error happens during evaluation of the 1st 
argument ('target') passed to checkEqualsNumeric(), that is, during 
evaluation of 'runmed(y, 7)'. Since this involves base R code only 
(runmed() is implemented in the stats package) I would say that it's not 
immediately obvious that the problem is in my court.

H.


More information about the R-pkg-team mailing list