proc extension problems

Hi guys,

has anyone had problems with this bit of code: ?

if i run my application for long enough time i start getting errors like this:

RuntimeError: symbol table overflow (symbol __bind_1328993330_18…)

apparently it’s because symbols are never GCed and rails generates one every time this proc extension is used because method names are implicitly converted to symbols

Best Regards,


This seems like a known problem with ruby.

I found this old discussion of the issue back from 2008.


yeah, i saw that. i actually found why exactly this problem happens - new symbol is generated every time a named scope is called which was defined on ActiveRecord::Base