Bugs: Browse | Submit New | Admin

[#29312] core dump when options to Database.new() is a string

Date:
2011-07-07 20:09
Priority:
3
Submitted By:
Sam Roberts (sam)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
core dump when options to Database.new() is a string

Detailed description
I can't find the docs on what the options hash should include, but passing a string causes a core dump.

Demo:

irb(main):002:0> require "sqlite3"
=> true
irb(main):003:0> SQLite3::Database.new("some.db", "w+")
(irb):3: [BUG] Segmentation fault
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]

zsh: abort (core dumped)  irb
~/w/wiki/burndown % dpkg -l | grep sqlite3 | grep ruby
ii  libsqlite3-ruby                       1.3.1-2                                    SQLite3 interface for Ruby
ii  libsqlite3-ruby1.8                    1.3.1-2                                    SQLite3 interface for Ruby 1.8

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item