Skip to content
Prev 8405 / 21307 Next

[Bioc-devel] segfault when using RleList in DataFrames

Hi Leonard,

Thanks for the report. This segfault was due to a long-standing bug
in the "window" method for Rle objects when the object has length 0:

   > window(Rle(), 1, 0)  # you might need to try many times before
                          # you get the segfault
    *** caught segfault ***
   address 0x12f69d74, cause 'memory not mapped'

   Traceback:
    1: .Call(.NAME, ..., PACKAGE = PACKAGE)
    2: .Call2("Rle_getStartEndRunAndOffset", x, start, end, PACKAGE = 
"IRanges")
    3: getStartEndRunAndOffset(x, start(solved_SEW), end(solved_SEW))
    4: .local(x, ...)
    5: window(Rle(), 1, 0)
    6: window(Rle(), 1, 0)

   Possible actions:
   1: abort (with core dump, if enabled)
   2: normal R exit
   3: exit R without saving workspace
   4: exit R saving workspace
   Selection: 2
   Save workspace image? [y/n/c]:

It is now fixed in release (S4Vectors 0.8.4 and IRanges 2.4.5) and
devel (S4Vectors 0.9.12 and IRanges 2.5.10).

Cheers,
H.
On 12/05/2015 03:29 PM, Leonard Goldstein wrote: