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

Segmentation fault on ruby 2.0.0p195 #6

Open
ghost opened this issue May 30, 2013 · 2 comments
Open

Segmentation fault on ruby 2.0.0p195 #6

ghost opened this issue May 30, 2013 · 2 comments

Comments

@ghost
Copy link

ghost commented May 30, 2013

/Users/patrick/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/bundler/gems/geohash-03d655d5bf92/lib/geohash.rb:22: [BUG] Segmentation fault
ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin12.3.0]

-- Crash Report log information --------------------------------------------
   See Crash Report log file under the one of following:
     * ~/Library/Logs/CrashReporter
     * /Library/Logs/CrashReporter
     * ~/Library/Logs/DiagnosticReports
     * /Library/Logs/DiagnosticReports
   the more detail of.

-- Control frame information -----------------------------------------------
c:0029 p:---- s:0135 e:000134 CFUNC  :encode_base
c:0028 p:0017 s:0129 e:000128 METHOD /Users/patrick/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/bundler/gems/geohash-03d655d5bf92/lib/geohash.rb:22
@tryba
Copy link
Contributor

tryba commented Jun 10, 2014

Can you see if this patch fixes your issue? #7

@ghost
Copy link
Author

ghost commented Jul 18, 2014

@tryba damn, I don’t remember what actual parameters I was passing and if they mattered of if i was having the crash on any encode operation. I still installed your version of the gem and tried an encode and a decode and it worked.

I actually can’t get the current version of the gem (1.0.1) to build on my mac, but your fork builds.

➜ mbp ~  gem install geohash
Building native extensions.  This could take a while...
ERROR:  Error installing geohash:
    ERROR: Failed to build gem native extension.

    /Users/patrick/.rubies/ruby-2.1.2/bin/ruby extconf.rb
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling geohash_native.c
geohash_native.c: In function ‘decode_geohash_bbox’:
geohash_native.c:51: warning: implicit conversion shortens 64-bit value into a 32-bit value
geohash_native.c: In function ‘encode’:
geohash_native.c:130: error: ‘struct RFloat’ has no member named ‘value’
geohash_native.c:130: error: ‘struct RFloat’ has no member named ‘value’
geohash_native.c: In function ‘decode_bbox’:
geohash_native.c:142: error: ‘struct RString’ has no member named ‘ptr’
geohash_native.c: In function ‘decode’:
geohash_native.c:165: error: ‘struct RString’ has no member named ‘ptr’
make: *** [geohash_native.o] Error 1

make failed, exit code 2

Gem files will remain installed in /Users/patrick/.gem/ruby/2.1.2/gems/geohash-1.0.1 for inspection.
Results logged to /Users/patrick/.gem/ruby/2.1.2/extensions/x86_64-darwin-13/2.1.0-static/geohash-1.0.1/gem_make.out

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

No branches or pull requests

1 participant