ruby - Rspec and Cucumber are causing segmentation dumps on my C extension -
i have part of project heavily using c extensions. @ first 3 self contained extensions, call them
- foo
- bar
- baz
when case run rspec , cucumber tests , not have issues. converted 1 of ruby files c extension have c extension creates , holds instances of foo, bar, , baz , calls methods on them. problem when run rspec or cucumber, seg faults in unpredictable places.
so ran debugger , stepped through rspec see seg fault being initiated, , wasn't in place referencing code bit lost happened. ended rewriting rspec file in shoulda, , tests run fine. i've gone cucumber, , having similar problem except rewriting cucumber file bigger commitment.
note c extensions not interact outside of themselves, there no database calls, database cleaning strategies aren't issue. environment settings not issue.
are there gotchas missing regarding how rspec (since i've narrowed problem down rspec specifically) regard loading , testing c extensions refer other instances of c extensions?
Comments
Post a Comment