From: ts Date: 2003-09-01T23:20:37+09:00 Subject: Re: Bug in mmap or ruby with ruby-1.8.0 >>>>> "H" == Han Holl writes: H> Searching for a non-existing string in a mmapped region produces a H> segfault. bug in ruby :-)) re.c (line 142) while (s < e) { if (hx == hy && memcmp(x, s, m) == 0) { return s-y; } hy = KR_REHASH(*s, *(s+d), hy); s++; } s+d can be > e illegal access which give with a mapped file a segfault, with a normal string it can work Guy Decoux