rails-sqlserver / tiny_tds

TinyTDS - Simple and fast FreeTDS bindings for Ruby using DB-Library.
Other
607 stars 189 forks source link

WSAENOBUFS failure and subsequent crash #70

Closed ghost closed 12 years ago

ghost commented 12 years ago

OS: Windows 7 DBMS: SQL Server 2008 R2 default installation on localhost

Code: require 'tiny_tds' client = TinyTds::Client.new(:username => 'da', :password => '123456', :host => 'localhost', :port => 1433)

Related link: http://stackoverflow.com/questions/3528243/using-microsoft-sql-through-python-on-a-webserver

Crash output: tds_init_winsock: WSAEnumProtocols failed with 10055 (WSAENOBUFS: No buffer spac e available.) C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/tiny_tds-0.5.1.rc1-x86-ming w32/lib/tiny_tds/client.rb:67: [BUG] Segmentation fault ruby 1.9.2p290 (2011-07-09) [i386-mingw32]

-- control frame ---------- c:0007 p:---- s:0021 b:0021 l:000020 d:000020 CFUNC :connect c:0006 p:0397 s:0017 b:0017 l:000016 d:000016 METHOD C:/RailsInstaller/Ruby1.9.2 /lib/ruby/gems/1.9.1/gems/tiny_tds-0.5.1.rc1-x86-mingw32/lib/tiny_tds/client.rb: 67 c:0005 p:---- s:0013 b:0013 l:000012 d:000012 FINISH c:0004 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC :new c:0003 p:0047 s:0007 b:0007 l:001f5c d:001e48 EVAL mssqltest.rb:4 c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH

c:0001 p:0000 s:0002 b:0002 l:001f5c d:001f5c TOP

-- Ruby level backtrace information ---------------------------------------- mssqltest.rb:4:in <main>' mssqltest.rb:4:innew' C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/tiny_tds-0.5.1.rc1-x86-ming w32/lib/tiny_tds/client.rb:67:in initialize' C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/tiny_tds-0.5.1.rc1-x86-ming w32/lib/tiny_tds/client.rb:67:inconnect'

[NOTE] You may have encountered a bug in the Ruby interpreter or extension libraries. Bug reports are welcome. For details: http://www.ruby-lang.org/bugreport.html

This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.

metaskills commented 12 years ago

Closed, parent ticket is #79, please comment in that ticket now.