sdsykes / slim_scrooge

SlimScrooge heavily optimises your database interactions
313 stars 25 forks source link

Segmentation Fault #9

Closed makuchaku closed 13 years ago

makuchaku commented 14 years ago

KeywordCache.find_all_by_keyword_category_id(815).each {|kc| kc.update_attributes(:keyword_category_id => 0, :is_processed => false)}

/usr/lib/ruby/gems/1.8/gems/slim_scrooge-1.0.7/lib/slim_scrooge/callsites.rb:38: [BUG] Segmentation fault ruby 1.8.6 (2008-08-11) [i686-linux]

Aborted

I think Its mainly because of the fact that I used foreign key ID as 0. Have changed my code since then... but thought - will file a bug as well.

Thanks.

sdsykes commented 14 years ago

Thanks for the report!

It's most likely that the segfault was in the code that generates the hash for the place in the code that your find call was at. (The 'callsite_hash'.)

The question is what causes it. What would really help would be any way we could reproduce the problem - anything more you can tell us about your environment, or a simple test case?

sdsykes commented 13 years ago

Closed due to inactivity