-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ruby 2.0.0(x64) Segmentation fault #70
Comments
The architecture of your Ruby interpreter and your Firebird library must agree. If you are successful connecting from an x86 Ruby, then your fbclient.dll must also be for x86. In order to connect from an x64 Ruby, you will need an x64 fbclient.dll. |
Right. However I did the installation of Firebird (x64) and used its dll. I am wrong? @rowland |
__fb.rb:7: [BUG] Segmentation fault -- Control frame information ----------------------------------------------- __fb.rb:7:in -- C level backtrace information ------------------------------------------- -- Other runtime information -----------------------------------------------
[NOTE] WITH THE OTHER DLL:% 1 is not a valid Win32 application. - C: /Users/Filipe/Desktop/ECM/ScanDesigner/Ruby/lib/ruby/gems/2.0.0/gems/fb-0.9.2/fb.so (LoadError) |
Unfortunately, compiling is not a sure sign of anything, save that ibase.h was present. You might try version 0.9.1. Version 0.9.2 accommodated some BigDecimal deprecations in 2.6.3. 0.9.2 still works on older Rubies on Unix, but Windows was not tested for regressions. |
Thanks for the answer, however I tested on 0.9.1 through 0.7.0 and it doesn't work on x64 :(... |
I have an application that runs under Ruby 2.0.0-p648 (x64).
After configuring Devkit (x64), installing Firebird 2.5 (x64):
I successfully install the gem.
But by running the simple test:
require 'fb' include Fb db = Database.new( :database => "localhost:d:/readme.fdb", :username => 'sysdba', :password => 'masterkey') conn = db.connect rescue db.create.connect
I get the following generic error:
conn = db.connect ... [BUG] Segmentation fault
#38The error also happens in a clean install of the measured versions.
If I do the same steps however everything on x86 (Ruby 2.0.0-p648 (x86), Devkit (x86), Firebird 2.5 (x86)) the code runs normally.
I've checked in many ways for the correct DLL installed on each version of Firebird.
Today I can't upgrade Ruby as there is a large application running with this specific version.
Any suggestions on how to make it work?
Thank you.
The text was updated successfully, but these errors were encountered: