[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

OpenSSL bus error if no args to PKey::RSA.new, bug?

Sam Roberts

12/4/2004 4:46:00 PM

uname -a

Darwin ensemble.local. 6.8 Darwin Kernel Version 6.8: Wed Sep 10 15:20:55 PDT 2003; root:xnu/xnu-344.49.obj~2/RELEASE_PPC Power Macintosh powerpc

$ ruby18 exossl.rb
/usr/local/lib/ruby/1.8/pp.rb:290: [BUG] Bus Error
ruby 1.8.2 (2004-11-12) [powerpc-darwin6.8]

Abort trap

$ cat exossl.rb
require 'openssl'
require 'pp'

include OpenSSL

pp PKey::RSA.new


Thanks,
Sam



4 Answers

Eric Hodel

12/4/2004 11:41:00 PM

0


On 04 Dec 2004, at 08:46, Sam Roberts wrote:

> uname -a
>
> Darwin ensemble.local. 6.8 Darwin Kernel Version 6.8: Wed Sep 10
> 15:20:55 PDT 2003; root:xnu/xnu-344.49.obj~2/RELEASE_PPC Power
> Macintosh powerpc
>
> $ ruby18 exossl.rb
> /usr/local/lib/ruby/1.8/pp.rb:290: [BUG] Bus Error
> ruby 1.8.2 (2004-11-12) [powerpc-darwin6.8]
>
> Abort trap
>
> $ cat exossl.rb
> require 'openssl'
> require 'pp'
>
> include OpenSSL
>
> pp PKey::RSA.new

I think I have 1.8-p3 installed, but I'm not sure because yours is 6
days newer. Oh, and I'm on 10.3.

$ ruby
require 'openssl'
require 'pp'
include OpenSSL
pp PKey::RSA.new
-----BEGIN RSA PUBLIC KEY-----
MAA=
-----END RSA PUBLIC KEY-----

$ ruby -v
ruby 1.8.2 (2004-11-06) [powerpc-darwin7.6.0]



ts

12/5/2004 11:23:00 AM

0

>>>>> "E" == Eric Hodel <drbrain@segment7.net> writes:

E> I think I have 1.8-p3 installed, but I'm not sure because yours is 6
E> days newer. Oh, and I'm on 10.3.

Probably a problem with the version of openssl

uln% cat b.rb
#!/usr/local/bin/ruby
require 'openssl'
require 'pp'
include OpenSSL
p OPENSSL_VERSION
pp PKey::RSA.new
uln%

uln% b.rb
"OpenSSL 0.9.6g [engine] 9 Aug 2002"
/usr/local/lib/ruby/1.8/pp.rb:290: [BUG] Segmentation fault
ruby 1.8.2 (2004-11-06) [x86_64-linux]

Aborted
uln%

uln% ruby -v b.rb
ruby 1.8.2 (2004-11-06) [x86_64-linux]
"OpenSSL 0.9.7e 25 Oct 2004"
-----BEGIN RSA PUBLIC KEY-----
MAA=
-----END RSA PUBLIC KEY-----

uln%





Guy Decoux


Sam Roberts

12/5/2004 3:41:00 PM

0

Quoteing decoux@moulon.inra.fr, on Sun, Dec 05, 2004 at 08:23:04PM +0900:
> >>>>> "E" == Eric Hodel <drbrain@segment7.net> writes:
>
> E> I think I have 1.8-p3 installed, but I'm not sure because yours is 6
> E> days newer. Oh, and I'm on 10.3.
>
> Probably a problem with the version of openssl
>
> uln% cat b.rb
> #!/usr/local/bin/ruby
> require 'openssl'
> require 'pp'
> include OpenSSL
> p OPENSSL_VERSION
> pp PKey::RSA.new
> uln%
>
> uln% b.rb
> "OpenSSL 0.9.6g [engine] 9 Aug 2002"
> /usr/local/lib/ruby/1.8/pp.rb:290: [BUG] Segmentation fault
> ruby 1.8.2 (2004-11-06) [x86_64-linux]
>
> Aborted


Apple's OS X 10.2 has 0.9.6.e, so I'm seeing the SEGV.

Thanks,
Sam

> uln%
>
> uln% ruby -v b.rb
> ruby 1.8.2 (2004-11-06) [x86_64-linux]
> "OpenSSL 0.9.7e 25 Oct 2004"
> -----BEGIN RSA PUBLIC KEY-----
> MAA=
> -----END RSA PUBLIC KEY-----
>
> uln%
>
>
>
>
>
> Guy Decoux
>


Eric Hodel

12/6/2004 7:55:00 PM

0

On 05 Dec 2004, at 03:23, ts wrote:

>>>>>> "E" == Eric Hodel <drbrain@segment7.net> writes:
>
> E> I think I have 1.8-p3 installed, but I'm not sure because yours is 6
> E> days newer. Oh, and I'm on 10.3.
>
> Probably a problem with the version of openssl
>
> uln% b.rb
> "OpenSSL 0.9.6g [engine] 9 Aug 2002"
> /usr/local/lib/ruby/1.8/pp.rb:290: [BUG] Segmentation fault
> ruby 1.8.2 (2004-11-06) [x86_64-linux]

"OpenSSL 0.9.7b 10 Apr 2003"
-----BEGIN RSA PUBLIC KEY-----
MAA=
-----END RSA PUBLIC KEY-----

Yep.