On Feb 26, 2:11 pm, Clive Crous <[email protected]> wrote: > Hi, > > I'm trying to do some changes to sequel, but am unable to run the unit > tests (master on github just after perf branch merge), > When I try run `rake spec` I get the following: > > % rake spec > (in /home/clive/repositories/github.com/jeremyevans/sequel) > /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/gempackagetask.rb:13:Warning: > Gem::manage_gems is deprecated and will be removed on or after March > 2009. > ......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... > /spec/sequel_model/associations_spec.rb:207: > [BUG] Segmentation fault > ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
IIRC, the problem is the result of http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18485. I know OpenBSD originally backported that patch to their ruby 1.8.6 port, and the ruby port maintainer removed that patch from the port after discovering that it causes instability. You should be able to use gdb to see what C function is causing the problem. If it is inside the function changed by the patch, I'm guessing that is the issue. All bets are off when I comes it ruby 1.8.7. I do not test Sequel on 1.8.7, nor do I plan to. I recommend 1.8.6 if you want to to use ruby 1.8. You may want to compile 1.8.6p287 from source. Just to be clear, the sequel main specs (not the adapter specs and integration specs) do not require any non-pure ruby code other than what is included in ruby itself. Therefore, if there is a segmentation fault when running the main specs, it must be related to an interpreter bug (since pure ruby code should never crash the interpreter). Jeremy > > rake aborted! > Command /usr/bin/ruby1.8 > -I"/usr/lib/ruby/gems/1.8/gems/rspec-1.1.12/lib" > "/usr/lib/ruby/gems/1.8/gems/rspec-1.1.12/bin/spec" > "spec/sequel_core/database_spec.rb" > "spec/sequel_core/object_graph_spec.rb" > "spec/sequel_core/schema_spec.rb" "spec/sequel_core/dataset_spec.rb" > "spec/sequel_core/migration_spec.rb" > "spec/sequel_core/expression_filters_spec.rb" > "spec/sequel_core/version_spec.rb" > "spec/sequel_core/connection_pool_spec.rb" > "spec/sequel_core/core_ext_spec.rb" > "spec/sequel_core/pretty_table_spec.rb" > "spec/sequel_core/core_sql_spec.rb" > "spec/sequel_core/schema_generator_spec.rb" > "spec/sequel_model/base_spec.rb" "spec/sequel_model/hooks_spec.rb" > "spec/sequel_model/plugins_spec.rb" > "spec/sequel_model/associations_spec.rb" > "spec/sequel_model/schema_spec.rb" > "spec/sequel_model/dataset_methods_spec.rb" > "spec/sequel_model/model_spec.rb" > "spec/sequel_model/eager_loading_spec.rb" > "spec/sequel_model/caching_spec.rb" > "spec/sequel_model/inflector_spec.rb" > "spec/sequel_model/record_spec.rb" > "spec/sequel_model/association_reflection_spec.rb" > "spec/sequel_model/validations_spec.rb" failed > > (See full trace by running task with --trace) > > Clive --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en -~----------~----~----~----~------~----~------~--~---
