Skip to content
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

Fix SEGV on 32-bit architectures #2

Merged
merged 1 commit into from
Jan 21, 2013

Conversation

namelessjon
Copy link
Contributor

Fixes #1

Previously lengths were passed to functions as int but the function prototype requires long long.  64-bit ruby was fine with this, but 32 bit barfed.

Lets see if Travis is happy ...

Fixes RubyCrypto#1

Previously lengths were passed to functions as `int` but the function prototype requires `long long`.  64-bit ruby was fine with this, but 32 bit barfed.
@namelessjon
Copy link
Contributor Author

That's working now, except for on rbx. I'm assuming specifying the correct type as per the prototype won't break on 64-bit. The rbx error is somewhere in ffi, before it even reaches any code I wrote. But tracking that down is a task for later.

@namelessjon
Copy link
Contributor Author

This shouldn't be an issue, as it was closed over a year ago. But there it is. ffi/ffi#127

@namelessjon
Copy link
Contributor Author

Checked this patch also runs fine locally. Could the rbx failure be a bundler issue, where the bundler paths override the internal FFI implementation?

@tarcieri
Copy link
Contributor

rbx failure is an out-of-date build on Travis, from what I understand. I get this same failure on other projects using FFI.

tarcieri added a commit that referenced this pull request Jan 21, 2013
Fix SEGV on 32-bit architectures
@tarcieri tarcieri merged commit a67b718 into RubyCrypto:master Jan 21, 2013
@namelessjon namelessjon deleted the bugfix/segv branch January 21, 2013 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

segvs on Travis
2 participants