ruby - Segmentation fault on Lion creating NSData from RubyCocoa with any bytes > 127 -
the following rubycocoa fine on max os x 10.6, segfaults on 10.7
require 'osx/cocoa' include osx bytes = [128].pack('i1') nsdata.alloc.initwithbytes_length(bytes, bytes.length)
in cases works when top bit not set. in fact nsdata.alloc seems fail when passed buffer of bytes have top bit set.
the version of ruby 1.8.7 on both os's, i'm @ loss diagnose why nsdata interpreting buffer differently. can shed light?
you should go macruby replace rubycocoa. it's possible rubycocoa not (and never) work on lion.
i don't have macruby experience lion yet, chances work.
Comments
Post a Comment