tenderlove / mmap

A wrapper around mmap
61 stars 14 forks source link

Mmap segfaults on GC #5

Open eqv opened 7 years ago

eqv commented 7 years ago
require 'tempfile'
require 'mmap'

t = Tempfile.new("mmap")
File.open(t,"w"){|f| f.print("abcd")}
m = Mmap.new(t)

m[0..1]
GC.start

triggers a segfault in ruby 2.1.2p95 (2014-05-08 revision 45877)

lzap commented 6 years ago

Does not here with

ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]

Which version was it?

dmagliola commented 5 years ago

As an update... This still happens on 2.1.10 Doesn't happen in 2.2.10, 2.3.5, 2.4.2 or 2.5.1 (these are just the versions I have installed) So it seems to be a Ruby 2.1 problem.

This is just my 2 cents, in case it helps.