Izit Izit wrote: > Hi, > > I have a Rails app that keeps on segfaulting if I request a very > intensive task. The task involves reading a lot of DB records and > parsing each record in hashes and arrays. > > If I limit the DB record scope the segfault does not happen but with a > larger set it happens every time. Strange thing is it only happens on my > linux system not on my OS X dev system. Both run ruby 1.8.7 latest > version compiled from source. The process eats a lot of memory, keeps > growing and then the fault occurs. > > I ran gdb on the faulty process, here is some output: > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 48005413886848 (LWP 29060)] > ruby_re_compile_pattern (pattern=0x10f3070 ":", size=<value optimized > out>, > bufp=0x96f51f0) at regex.c:2730 > 2730 skip[c] = m; Have you tried recompiling with less optimization? -- Posted via http://www.ruby-forum.com/.