From: Benoit Daloze Date: 2011-07-25T01:11:09+09:00 Subject: [ruby-core:38458] Re: [Ruby 1.9 - Bug #5090] Segfault using Enumerator On 24 July 2011 16:30, Robert Syme wrote: > I notice that gdb reports "no debugging symbols found". Do I need to recompile ruby for this to work? Do I need to provide a particular flag to configure, and if so, what flag? Sorry for my ignorance, this is my first ruby bug report. On 24 July 2011 16:37, Yusuke Endoh wrote: > I'm not sure if rvm might tweak build option. �I'm not familiar with rvm. > Can anyone who is familiar with rvm, answer? http://beginrescueend.com/rubies/installing/ says to use: export optflags="-O0 -ggdb"; rvm install ruby-name However I see recent rvm always use the "-g" flag, but not -O0, so you might not see some values in gdb as they are optimized. https://github.com/wayneeseguin/rvm/blob/master/scripts/functions/build#L13-15 So yes, you need to recompile with: export optflags="-O0 -ggdb"; rvm install ruby-1.9.2-p180 Sorry, I can not test myself at the moment, but that should work.