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

S

Sam Roberts

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
 
E

Eric Hodel

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]
 
T

ts

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
 
S

Sam Roberts

Quoteing (e-mail address removed), on Sun, Dec 05, 2004 at 08:23:04PM +0900:
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
 
E

Eric Hodel

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top