rsim/ruby-plsql — Issue #21: Segmentation fault when "should execute function with cursor parameter and return record"
Author: yahonda
Created: 2012-01-02 21:07:18+00:00
State: open

Always got a segmentation fault when "should execute function with cursor parameter and return record" executed.

```ruby
$ ruby -I"lib:lib:spec" "/home/yahonda/Dropbox/git/ruby-plsql/ruby-oci8/ruby/1.8/gems/rspec-1.3.2/bin/spec" "spec/plsql/procedure_spec.rb:1546"
Segmentation fault

$ bundle update
Fetching source index for http://rubygems.org/
Using rake (0.9.2.2)
Using activesupport (2.3.8)
Using activerecord (2.3.8)
Using activerecord-oracle_enhanced-adapter (1.3.1)
Using bundler (1.0.21)
Using git (1.2.5)
Using jeweler (1.5.2)
Using rspec (1.3.2)
Using ruby-oci8 (2.0.4)
Your bundle is updated! Use `bundle show [gemname]` to see where a bundled gem is installed.
[1.8.7@rubyplsql238] yahonda@myoel5 ~/Dropbox/git/ruby-plsql (address_rake_aborted)

```

```ruby

1546 it "should execute function with cursor parameter and return record" do
1547 pending "not possible from JDBC" if defined?(JRUBY_VERSION)
1548 plsql.test_cursor do |cursor|
1549 plsql.test_cursor_fetch(cursor).should == @employees[0]
1550 end
1551 end
```

Actually, I'm not sure how to find the cause of this segmentation fault yet.