Skip to content

Strange segfault on M1 Mac...? #477

Closed
@ioquatix

Description

@ioquatix
> irb
irb(main):001:0> require 'openssl'
=> true
irb(main):002:0> certificate = OpenSSL::X509::Certificate.new
=> #<OpenSSL::X509::Certificate subject=#<OpenSSL::X509::Name >, issuer=#<OpenSSL::X509::Name >, serial=#<OpenSSL::BN 0>, not_before=nil, not_after=nil>
irb(main):003:0> certificate_authority_key = OpenSSL::PKey::RSA.new(2048)
=> #<OpenSSL::PKey::RSA:0x000000010bafc358 oid=rsaEncryption>
irb(main):004:0> certificate.public_key = certificate_authority_key.public_key
(irb):4: [BUG] Segmentation fault at 0x0000000000000028
ruby 3.1.0dev (2021-12-10T10:09:55Z master 0e60bc118b) [arm64-darwin21]    

Am I doing something wrong? Running on latest Ruby head.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions